Re: CPU usage accounting

2011-09-15 Thread Vimal
Hi Mulyadi :) On 14 September 2011 12:44, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: From what I understand: In case (1), the kernel code executes in the context of the application, so the CPU cycles are accounted directly to process that called write() (or send/sendto). excellent

Cannot read using USB Skeleton Driver

2011-09-15 Thread Felix Varghese
Hi, I have been trying to communicate with a custom usb device from a SAM9G20-EK board using the usb-skeleton.c driver example in the linux source. I modified the driver to add my device's vendor and product id. The USB device enumerates with two bulk endpoints - one IN and one OUT. The

Re: CPU usage accounting

2011-09-15 Thread Mulyadi Santosa
Hi :) On Thu, Sep 15, 2011 at 20:19, Vimal j.vi...@gmail.com wrote: Thanks.  I think it makes sense.   Let me think of a way to actually confirm this.  If you know of a way, do chip in :-) Resource Accounting is always a big problem to be done right. AFAIK there was patches from Matt

How to create some threads running tha same function

2011-09-15 Thread Parmenides
Hi, I will try to test how to create kernel threads and have write a kernel module which creates a number of kernel threads running the same function. But the results is somewhat confusing. #include linux/kernel.h #include linux/kthread.h #include linux/delay.h

CPU pinning.

2011-09-15 Thread Kernel Piddu
I have a multi processor system/machine and I would like dedicate a CPU entirely to listen on to a port. I would greatly appreciate if you could tell me how this can be done. Any documention / pointer? Thanks! ___ Kernelnewbies mailing list

CPU pinning

2011-09-15 Thread Kernel Piddu
I have a multi processor system/machine and I would like dedicate a CPU entirely to listen on to a port. I would greatly appreciate if you could tell me how this can be done. Thanks! ___ Kernelnewbies mailing list

Re: the cost of vmalloc

2011-09-15 Thread Zheng Da
Hi, On Sun, Sep 11, 2011 at 2:32 AM, Michael Blizek mic...@michaelblizek.twilightparadox.com wrote: The whole point of allocating a large chunk of memory is to avoid extra memory copy because I need to run decompression algorithms on it. In this case scatterlists solves 2 problems at

Re: Code Generator

2011-09-15 Thread Jim Cromie
On Mon, Sep 12, 2011 at 3:04 PM, mosta mosta...@googlemail.com wrote: Hey All, does somebody know of projects that use code generators to generate kernel modules? I'm thinking about using a strongly typed language like haskell with a code generator to  generate kernel C-Code. I want to

Re: How to create some threads running tha same function

2011-09-15 Thread Kaustubh Ashtekar
On Thu, Sep 15, 2011 at 7:59 PM, Kristof Provost kris...@sigsegv.be wrote: On 2011-09-15 22:20:03 (+0800), Parmenides mobile.parmeni...@gmail.com wrote: I will try to test how to create kernel threads and have write a } snip You're passing the address of a stack variable (i) as