Re: How to get the average/max process scheduling latency

2014-06-20 Thread Valdis . Kletnieks
On Fri, 20 Jun 2014 15:36:47 +0200, Teto said: > Do you know any tool/software to retrieve the average latency for a > specific program on a specific platform. This is to modelize the > application rate for data processing. You need to add "while running under a specific application load", because

Re: issues dealing with kobjects

2014-06-20 Thread Greg KH
On Fri, Jun 20, 2014 at 11:31:03AM +0530, Raghavendra wrote: > Hello all, > > I am facing a small issue dealing with kobjects. > I am writing a simple i2c driver for which I would like to export a few > sysfs attributes(files). Please don't, unless these attributes are something that all other i

Re: Understanding #ifdef in .h files

2014-06-20 Thread Harold André
Le Fri, 20 Jun 2014 18:44:35 +0530, Pranay Srivastava a écrit : > On Fri, Jun 20, 2014 at 6:29 PM, Harold André > wrote: > > Le Fri, 20 Jun 2014 16:36:58 +0530, > > Pranay Srivastava a écrit : > > > > > >> You say here you will define the function else where if > >> TEST_FUNCTION is defined > >

Re: How to get the average/max process scheduling latency

2014-06-20 Thread Teto
Thanks for the answer. Do you know any tool/software to retrieve the average latency for a specific program on a specific platform. This is to modelize the application rate for data processing. 2014-06-19 22:16 GMT+02:00 : > On Mon, 16 Jun 2014 18:23:56 +0200, Teto said: > >> I could not find

Re: Understanding #ifdef in .h files

2014-06-20 Thread Harold André
Le Fri, 20 Jun 2014 16:36:58 +0530, Pranay Srivastava a écrit : > You say here you will define the function else where if TEST_FUNCTION > is defined > > > #ifdef TEST_FUNCTION > > void test(int *value); > > #else > > static inline void test(int *value) { } > > #endif > > > >

Re: Understanding #ifdef in .h files

2014-06-20 Thread Pranay Srivastava
On Fri, Jun 20, 2014 at 6:29 PM, Harold André wrote: > Le Fri, 20 Jun 2014 16:36:58 +0530, > Pranay Srivastava a écrit : > > >> You say here you will define the function else where if TEST_FUNCTION >> is defined >> >> > #ifdef TEST_FUNCTION >> > void test(int *value); >> > #else >> >

Re: TASK05

2014-06-20 Thread parinay
So I can read and understand and write my own code. I think I already mentioned it, "write my own code" . I take this as, "I was vague in the email and will correct myself next time" Thanks Fernando, that’s conducive. Thanks all. PS BTW My name is AKAM. On Fri, Jun 20, 2014 at 5:44 PM, Su

Re: TASK05

2014-06-20 Thread Sudip Mukherjee
On Fri, Jun 20, 2014 at 5:41 PM, Sudip Mukherjee wrote: > On Fri, Jun 20, 2014 at 5:32 PM, Akam wrote: >> Hello, >> >> I am stuck on Task05. Can you help me with more pointers for this task ? So >> I can read and understand and write my own code. >> >> I am sorry, I am lazy. I tried following LDD

Re: TASK05

2014-06-20 Thread karthik nayak
Hello, Even i found it difficult at first, read online , search a bit. it's better when you do it yourself :D Regards, Karthik On Fri, Jun 20, 2014 at 5:32 PM, Akam wrote: > Hello, > > I am stuck on Task05. Can you help me with more pointers for this task ? > So I can read and understand and wr

Re: TASK05

2014-06-20 Thread Fernando Apesteguía
El 20/06/2014 14:02, "Akam" escribió: > > Hello, > > I am stuck on Task05. Can you help me with more pointers for this task ? So I can read and understand and write my own code. > > I am sorry, I am lazy. I tried following LDD chapter mentioned but I am not able to get it into the code, so as to g

Re: TASK05

2014-06-20 Thread Sudip Mukherjee
On Fri, Jun 20, 2014 at 5:32 PM, Akam wrote: > Hello, > > I am stuck on Task05. Can you help me with more pointers for this task ? So > I can read and understand and write my own code. > > I am sorry, I am lazy. I tried following LDD chapter mentioned but I am not > able to get it into the code, s

TASK05

2014-06-20 Thread Akam
Hello, I am stuck on Task05. Can you help me with more pointers for this task ? So I can read and understand and write my own code. I am sorry, I am lazy. I tried following LDD chapter mentioned but I am not able to get it into the code, so as to get it working. Either I am not trying hard enough

Re: Understanding #ifdef in .h files

2014-06-20 Thread Pranay Srivastava
Hi Harold On 6/20/14, Harold André wrote: > Hi, > > I try to understand how #ifdef in .h files works. > > I read Greg Kroah-Hartman's Coding style paper > http://www.kroah.com/linux/talks/ols_2002_kernel_codingstyle_talk/html/mgp00031.html > > And as he says, i try to do a simple example but it d

Understanding #ifdef in .h files

2014-06-20 Thread Harold André
Hi, I try to understand how #ifdef in .h files works. I read Greg Kroah-Hartman's Coding style paper http://www.kroah.com/linux/talks/ols_2002_kernel_codingstyle_talk/html/mgp00031.html And as he says, i try to do a simple example but it does not work. I try with a small piece of C outside the k

Re: issues dealing with kobjects

2014-06-20 Thread Raghavendra
On Friday 20 June 2014 11:31 AM, Raghavendra wrote: > Hello all, > > I am facing a small issue dealing with kobjects. > I am writing a simple i2c driver for which I would like to export a few > sysfs attributes(files). > The files are many, so I've decided to pack them into a directory in > sysfs (