<div class="gmail_extra">Hello guys,<br>I am writing a user space code for pwm controller in beaglebone, but the drivers are in the form of files, so when I am writing the code I got a doubt that, if we keep access the files it may take more processor time so any other way is there to access or this is the best way ?<br>
<br><div class="gmail_quote">On Thu, Apr 26, 2012 at 9:30 PM, <span dir="ltr"><<a href="mailto:kernelnewbies-request@kernelnewbies.org" target="_blank">kernelnewbies-request@kernelnewbies.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send Kernelnewbies mailing list submissions to<br>
<a href="mailto:kernelnewbies@kernelnewbies.org">kernelnewbies@kernelnewbies.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:kernelnewbies-request@kernelnewbies.org">kernelnewbies-request@kernelnewbies.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:kernelnewbies-owner@kernelnewbies.org">kernelnewbies-owner@kernelnewbies.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Kernelnewbies digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: Profiling my Modules (Daniel Baluta)<br>
2. Re: Linux Driver Project (Bj?rn Mork)<br>
3. Re: Profiling my Modules (Rishi Agrawal)<br>
4. Re: Linux Driver Project (Bj?rn Mork)<br>
5. freelance kernel work (Christopher Harvey)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Thu, 26 Apr 2012 15:42:57 +0300<br>
From: Daniel Baluta <<a href="mailto:daniel.baluta@gmail.com">daniel.baluta@gmail.com</a>><br>
Subject: Re: Profiling my Modules<br>
To: Rishi Agrawal <<a href="mailto:rishi.b.agrawal@gmail.com">rishi.b.agrawal@gmail.com</a>><br>
Cc: <a href="mailto:kernelnewbies@kernelnewbies.org">kernelnewbies@kernelnewbies.org</a><br>
Message-ID:<br>
<<a href="mailto:CAEnQRZCf1zjMAQSe8uuYTr7px6-K51fLpB%2BvwY3SMkDXimcpxw@mail.gmail.com">CAEnQRZCf1zjMAQSe8uuYTr7px6-K51fLpB+vwY3SMkDXimcpxw@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1<br>
<br>
On Thu, Apr 26, 2012 at 10:33 AM, Rishi Agrawal<br>
<<a href="mailto:rishi.b.agrawal@gmail.com">rishi.b.agrawal@gmail.com</a>> wrote:<br>
> Hi All,<br>
><br>
> I have a kernel module which has functions which take a lot of time in<br>
> execution. I am curious to know how can I profile it, and find out the<br>
> functions taking most of the time.<br>
><br>
> I saw Oprofile, but it seems that I will have to build the whole kernel, and<br>
> also that it will be difficult to profile my module through it.<br>
><br>
> Any trick or tool will do.<br>
<br>
Hello,<br>
<br>
Have a look at perf [1].<br>
<br>
thanks,<br>
Daniel.<br>
<br>
[1] <a href="https://perf.wiki.kernel.org/" target="_blank">https://perf.wiki.kernel.org/</a><br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Thu, 26 Apr 2012 15:16:59 +0200<br>
From: Bj?rn Mork <<a href="mailto:bjorn@mork.no">bjorn@mork.no</a>><br>
Subject: Re: Linux Driver Project<br>
To: Rabee Al-Maqabi <<a href="mailto:rabee.almaqabi@gmail.com">rabee.almaqabi@gmail.com</a>><br>
Cc: Javier Martinez Canillas <<a href="mailto:martinez.javier@gmail.com">martinez.javier@gmail.com</a>>,<br>
<a href="mailto:kernelnewbies@kernelnewbies.org">kernelnewbies@kernelnewbies.org</a><br>
Message-ID: <<a href="mailto:87fwbqeipg.fsf@nemi.mork.no">87fwbqeipg.fsf@nemi.mork.no</a>><br>
Content-Type: text/plain; charset=utf-8<br>
<br>
Rabee Al-Maqabi <<a href="mailto:rabee.almaqabi@gmail.com">rabee.almaqabi@gmail.com</a>> writes:<br>
<br>
> Thank you for your reply. Linux Device Drivers is indeed a great book. I<br>
> have read it in addition to Understanding the Linux Kernel and I have<br>
> experimented with my Linux box. At this point, I would like to have a<br>
> real-world experience and write a driver for a piece of hardware not yet<br>
> supported.<br>
<br>
How about a fingerprint scanner? If you've got a modern laptop then<br>
chances are good that you already own such a device. And it's<br>
most likely unsupported. Some might say that's because it's useless :-)<br>
<br>
Otherwise I'd recommend looking through your box of unused devices. No<br>
need to go out and buy anything if all you want is to write some<br>
driver.<br>
<br>
Or see<br>
<a href="http://www.linuxdriverproject.org/foswiki/bin/view/Main/DriversNeeded" target="_blank">http://www.linuxdriverproject.org/foswiki/bin/view/Main/DriversNeeded</a><br>
if you are open to buying some new device for this project.<br>
<br>
You won't find any datasheets or any other documentation, though...<br>
Manufacturers smart enough to provide documentation usually get drivers<br>
written for their devices in no time. But some still hold it to<br>
themselves. Go figure.<br>
<br>
<br>
Bj?rn<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Thu, 26 Apr 2012 19:01:00 +0530<br>
From: Rishi Agrawal <<a href="mailto:rishi.b.agrawal@gmail.com">rishi.b.agrawal@gmail.com</a>><br>
Subject: Re: Profiling my Modules<br>
To: Daniel Baluta <<a href="mailto:daniel.baluta@gmail.com">daniel.baluta@gmail.com</a>><br>
Cc: <a href="mailto:kernelnewbies@kernelnewbies.org">kernelnewbies@kernelnewbies.org</a><br>
Message-ID:<br>
<CADDndfPtRis6CuXJN7D0v=<a href="mailto:snCJ8b_hS0eW2cQoBekXE3UtyXSw@mail.gmail.com">snCJ8b_hS0eW2cQoBekXE3UtyXSw@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Thanks a lot, I will have a look at it and see if it helps.<br>
<br>
On Thu, Apr 26, 2012 at 6:12 PM, Daniel Baluta <<a href="mailto:daniel.baluta@gmail.com">daniel.baluta@gmail.com</a>>wrote:<br>
<br>
> On Thu, Apr 26, 2012 at 10:33 AM, Rishi Agrawal<br>
> <<a href="mailto:rishi.b.agrawal@gmail.com">rishi.b.agrawal@gmail.com</a>> wrote:<br>
> > Hi All,<br>
> ><br>
> > I have a kernel module which has functions which take a lot of time in<br>
> > execution. I am curious to know how can I profile it, and find out the<br>
> > functions taking most of the time.<br>
> ><br>
> > I saw Oprofile, but it seems that I will have to build the whole kernel,<br>
> and<br>
> > also that it will be difficult to profile my module through it.<br>
> ><br>
> > Any trick or tool will do.<br>
><br>
> Hello,<br>
><br>
> Have a look at perf [1].<br>
><br>
> thanks,<br>
> Daniel.<br>
><br>
> [1] <a href="https://perf.wiki.kernel.org/" target="_blank">https://perf.wiki.kernel.org/</a><br>
><br>
<br>
<br>
<br>
--<br>
Regards,<br>
Rishi Agrawal<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120426/213b0716/attachment-0001.html" target="_blank">http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120426/213b0716/attachment-0001.html</a><br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Thu, 26 Apr 2012 15:51:10 +0200<br>
From: Bj?rn Mork <<a href="mailto:bjorn@mork.no">bjorn@mork.no</a>><br>
Subject: Re: Linux Driver Project<br>
To: Rabee Al-Maqabi <<a href="mailto:rabee.almaqabi@gmail.com">rabee.almaqabi@gmail.com</a>><br>
Cc: Javier Martinez Canillas <<a href="mailto:martinez.javier@gmail.com">martinez.javier@gmail.com</a>>,<br>
<a href="mailto:kernelnewbies@kernelnewbies.org">kernelnewbies@kernelnewbies.org</a><br>
Message-ID: <<a href="mailto:877gx2eh4h.fsf@nemi.mork.no">877gx2eh4h.fsf@nemi.mork.no</a>><br>
Content-Type: text/plain; charset=utf-8<br>
<br>
Bj?rn Mork <<a href="mailto:bjorn@mork.no">bjorn@mork.no</a>> writes:<br>
<br>
> How about a fingerprint scanner? If you've got a modern laptop then<br>
> chances are good that you already own such a device. And it's<br>
> most likely unsupported. Some might say that's because it's useless :-)<br>
<br>
Sorry, please ignore this. I should have read<br>
<a href="http://www.linuxdriverproject.org/foswiki/bin/view/Main/NoLinuxDriverNeeded" target="_blank">http://www.linuxdriverproject.org/foswiki/bin/view/Main/NoLinuxDriverNeeded</a><br>
first.<br>
<br>
<br>
Bj?rn<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Thu, 26 Apr 2012 10:39:41 -0500<br>
From: Christopher Harvey <<a href="mailto:chris@basementcode.com">chris@basementcode.com</a>><br>
Subject: freelance kernel work<br>
To: <<a href="mailto:kernelnewbies@kernelnewbies.org">kernelnewbies@kernelnewbies.org</a>><br>
Message-ID: <<a href="mailto:8acfa9e97f0b3bca53f505c1aca01aed@basementcode.com">8acfa9e97f0b3bca53f505c1aca01aed@basementcode.com</a>><br>
Content-Type: text/plain; charset=UTF-8; format=flowed<br>
<br>
I'm not looking for work, nor do I have any work for others. I'm just<br>
curious if there is a central location where freelance kernel<br>
developers hang out. I've never seen any email on mailing lists like<br>
"I have some hardware and want somebody to write a kernel module for<br>
it". I thought that sort of request would have been common.<br>
<br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
<br>
<br>
End of Kernelnewbies Digest, Vol 17, Issue 44<br>
*********************************************<br>
</blockquote></div><br><br clear="all"><br>-- <br>Regards<br>Jeshwanth Kumar N K<br>+91-7411483498<br><br>
</div>