Re: profiling functions called in interrupt context

2011-09-19 Thread Amit Nagal
On Tue, Sep 20, 2011 at 10:25 AM, rohan puri wrote: > > > On Tue, Sep 20, 2011 at 10:13 AM, Amit Nagal wrote: >> >> On Tue, Sep 20, 2011 at 10:05 AM, rohan puri >> wrote: >> > >> > >> > On Tue, Sep 20, 2011 at 9:44 AM, Amit Nagal >> > wrote: >> >> >> >> Hi , >> >> >> >> i want to measure time s

Re: regarding disable of CONFIG_DEBUG_FS

2011-09-19 Thread Amit Nagal
On Tue, Sep 20, 2011 at 10:21 AM, rohan puri wrote: > > > On Tue, Sep 20, 2011 at 10:09 AM, Amit Nagal wrote: >> >> Hi , >> >> i already tried manual editing . >> but when i call make to build image after manual edit , >> CONFIG_DEBUG_FS is turned on again . >> >> i tried manual editing in linux

Re: profiling functions called in interrupt context

2011-09-19 Thread rohan puri
On Tue, Sep 20, 2011 at 10:13 AM, Amit Nagal wrote: > On Tue, Sep 20, 2011 at 10:05 AM, rohan puri > wrote: > > > > > > On Tue, Sep 20, 2011 at 9:44 AM, Amit Nagal > wrote: > >> > >> Hi , > >> > >> i want to measure time spend in a callback function called from > >> interrupt context . > >> sin

Re: regarding disable of CONFIG_DEBUG_FS

2011-09-19 Thread rohan puri
On Tue, Sep 20, 2011 at 10:09 AM, Amit Nagal wrote: > Hi , > > i already tried manual editing . > but when i call make to build image after manual edit , > CONFIG_DEBUG_FS is turned on again . > > i tried manual editing in linux - x86 PC also . > i manually edited arch/x86/configs/i386_defconfi

Re: profiling functions called in interrupt context

2011-09-19 Thread Amit Nagal
On Tue, Sep 20, 2011 at 10:05 AM, rohan puri wrote: > > > On Tue, Sep 20, 2011 at 9:44 AM, Amit Nagal wrote: >> >> Hi , >> >> i want to measure time spend in a callback function called from >> interrupt context . >> since the time spend will be in us / ns , what kernel apis can i use >> to measur

Re: regarding disable of CONFIG_DEBUG_FS

2011-09-19 Thread Amit Nagal
Hi , i already tried manual editing . but when i call make to build image after manual edit , CONFIG_DEBUG_FS is turned on again . i tried manual editing in linux - x86 PC also . i manually edited arch/x86/configs/i386_defconfig file to disable CONFIG_DEBUG_FS , but when i call make to build im

Re: profiling functions called in interrupt context

2011-09-19 Thread rohan puri
On Tue, Sep 20, 2011 at 9:44 AM, Amit Nagal wrote: > Hi , > > i want to measure time spend in a callback function called from > interrupt context . > since the time spend will be in us / ns , what kernel apis can i use > to measure it ? > > also since i want to use it in interrupt context , kern

Re: regarding disable of CONFIG_DEBUG_FS

2011-09-19 Thread rohan puri
On Tue, Sep 20, 2011 at 9:31 AM, Amit Nagal wrote: > Hi , > > i want to disable CONFIG_DEBUG_FS in my kernel configuration . > i am using 2.6.35 kernel on a embedded arm target . > i am using usb hid driver to fetch thumbnail data on usb hid interface . > > the reason why i want to disable CONFIG

profiling functions called in interrupt context

2011-09-19 Thread Amit Nagal
Hi , i want to measure time spend in a callback function called from interrupt context . since the time spend will be in us / ns , what kernel apis can i use to measure it ? also since i want to use it in interrupt context , kernel time measurement apis should not sleep . i am using embedded arm

regarding disable of CONFIG_DEBUG_FS

2011-09-19 Thread Amit Nagal
Hi , i want to disable CONFIG_DEBUG_FS in my kernel configuration . i am using 2.6.35 kernel on a embedded arm target . i am using usb hid driver to fetch thumbnail data on usb hid interface . the reason why i want to disable CONFIG_DEBUG_FS is that in interrupt callback , i dont want to spend ti

Re: Cannot read using USB Skeleton Driver

2011-09-19 Thread Felix Varghese
> You might be right and the code might be wrong, care to send a patch for > it correcting the issue? Would be glad to do that, if I am able to resolve the issue. Meanwhile, any insights from anybody on this would be welcome! Regards, Felix. ___ Kernel

Re: Why do the CFS chase fairness?

2011-09-19 Thread Mulyadi Santosa
Hi . I am reaching my virtual limit here, so beg me pardon :) On Mon, Sep 19, 2011 at 23:26, Parmenides > Hmm..., does that mean timeslice weighting introduce unfainess? If we > think fairness relies on each task not fetching more timeslice than > other tasks, the eaiest way to achieve fairne

Re: kernel crash dump analysis using crash utility

2011-09-19 Thread Mulyadi Santosa
On Mon, Sep 19, 2011 at 13:56, amit mehta wrote: > ... > > --- --- > #19 [81a01da8] ret_from_intr at 8100bad3 >    [exception RIP: acpi_check_resource_conflict+207] < --- cou

Re: Why do the CFS chase fairness?

2011-09-19 Thread Parmenides
Hi, > 2011/9/19 Mulyadi Santosa : > Hi :) > > Seriously, what I consider "more fair" is Con Kolivas BFS scheduler > these days. No excessive "time slice weighting", just priority > stepping and very strict deadline. > Hmm..., does that mean timeslice weighting introduce unfainess? If we think fai

Re: Why do the CFS chase fairness?

2011-09-19 Thread Mulyadi Santosa
Hi :) On Mon, Sep 19, 2011 at 21:22, Parmenides wrote: >   Well, even with the CFS scheduler, tasks still can have different > processor shares according to their priorities. Correct and agree :) > Conceptually, for > examp, suppose that there are three tasks with priorities 1, 2, 3, > respecti

Re: Why do the CFS chase fairness?

2011-09-19 Thread Parmenides
2011/9/18 Mulyadi Santosa : > Hi... > > This would take us back to the days of comp science bachelor seat :) > >> >>   1. How to understand unfairness? > > IMHO, the easiest meaning is that: > one task gets proportionally more time slice than the other. Well, even with the CFS scheduler, tasks

Re: Cannot read using USB Skeleton Driver

2011-09-19 Thread Greg KH
On Mon, Sep 19, 2011 at 06:51:18PM +0530, Felix Varghese wrote: > Oh I don't think I have customized it to the point of breaking it. I > just modified the VID and PID to those of my device. And later, when I > noticed where it was getting stuck, I changed the wait_for_completion > to wait_for_compl

Re: Cannot read using USB Skeleton Driver

2011-09-19 Thread Felix Varghese
Oh I don't think I have customized it to the point of breaking it. I just modified the VID and PID to those of my device. And later, when I noticed where it was getting stuck, I changed the wait_for_completion to wait_for_completion_interruptible (in the code snippet quoted previously) so that I co

Re: kernel crash dump analysis using crash utility

2011-09-19 Thread amit mehta
On Mon, Sep 19, 2011 at 12:26 PM, amit mehta wrote: > My Linux box just crashed while performing some network related tests. > I'm trying to analyze the kernel crash dump using "Crash" utility. > Need your help in analyzing it. > > <<>> > # crash /usr/lib/debug/lib/modules/2.6.32-131.0.15.el6.x86_

Re: Cannot read using USB Skeleton Driver

2011-09-19 Thread Greg KH
On Mon, Sep 19, 2011 at 11:13:33AM +0530, Felix Varghese wrote: > > Just do: > >        modprobe usb_serial vendor=0x product=0x > > with the proper vendor and product ids for your device, then plug it in. > > > > No kernel changes needed at all, just have a pair of bulk in/out > > endpoint

Re: how to use hashmap in kernel module?

2011-09-19 Thread Daniel Baluta
On Mon, Sep 19, 2011 at 9:23 AM, Jon Zhou wrote: > Hi > > I want to hashmap to store datat in kernel module, how can I do this? Any > existed code? Hello, There are a lot of places where hashes are used. Just grep for 'hash' through the kernel sources. For example have a look at futex_queues [

kernel crash dump analysis using crash utility

2011-09-19 Thread amit mehta
My Linux box just crashed while performing some network related tests. I'm trying to analyze the kernel crash dump using "Crash" utility. Need your help in analyzing it. <<>> # crash /usr/lib/debug/lib/modules/2.6.32-131.0.15.el6.x86_64/vmlinux vmcore .versioning information here..