Re: knowledge sharing

2010-09-09 Thread Anuz Pratap Singh Tomar
On Thu, Sep 9, 2010 at 11:25 AM, Bond jamesbond.2...@gmail.com wrote: On Thu, Sep 9, 2010 at 11:19 AM, Anuz Pratap Singh Tomar chambilketha...@gmail.com wrote: The best idea is to look into Robert's tutorial, they are very good and comprehensive. I had looked at them the free

Re: knowledge sharing

2010-09-09 Thread Anuz Pratap Singh Tomar
On Thu, Sep 9, 2010 at 11:39 AM, Bond jamesbond.2...@gmail.com wrote: On Thu, Sep 9, 2010 at 11:30 AM, Anuz Pratap Singh Tomar chambilketha...@gmail.com wrote: Finish all exercises of KnR. Have you yourself done that. Most of them: read the book many times Have read many C books and

Re: knowledge sharing

2010-09-09 Thread Bond
I am not asking to teach C programming or user space programming or even device driver programming. Please read the first post to understand what I asked.

Re: Integer Division on 32 Bit Machines

2010-09-09 Thread Dave Hylands
Hi Andreas, Replying to the list this time... On Tue, Sep 7, 2010 at 3:02 AM, Andreas Leppert wu...@web.de wrote: Hello, I have encountered a problem on my 32 bit machine. Here some code snippets: ...snip... optimizer/built-in.o: In function `sys_optStopMeasure':

RE: knowledge sharing

2010-09-09 Thread Tayade, Nilesh
From: kernelnewbies-bou...@nl.linux.org [mailto:kernelnewbies-bou...@nl.linux.org] On Behalf Of Bond Sent: Thursday, September 09, 2010 8:27 AM To: kernelnewbies Subject: knowledge sharing It would good if some senior members on the list share their knowledge in form of some sort of

Re: regarding do_irq

2010-09-09 Thread Dave Hylands
Hi Sri, On Wed, Sep 8, 2010 at 9:14 AM, Sri Ram Vemulpali sri.ram.gm...@gmail.com wrote: Hi All,   Can anyone help me to understand what exit_idle() function does. The kernel has the notion of going idle. This happens whenever there is nothing to do. The kernel will enter idle mode, and when

Re: knowledge sharing

2010-09-09 Thread Bond
On Thu, Sep 9, 2010 at 11:44 AM, Anuz Pratap Singh Tomar chambilketha...@gmail.com wrote: I am just trying to help,. and I understand what you are asking completely. but nevermind. Sure thanks.

Re: knowledge sharing

2010-09-09 Thread Bond
On Thu, Sep 9, 2010 at 12:01 PM, Tayade, Nilesh nilesh.tay...@netscout.comwrote: There is a lot of material available opensource. That exactly is the problem.Which one to read and which one not to read. To be able to search some thing you need to be aware of what to be searched. And then

Re: regarding do_irq

2010-09-09 Thread Bond
On Thu, Sep 9, 2010 at 12:04 PM, Dave Hylands dhyla...@gmail.com wrote: The kernel has the notion of going idle. This happens whenever there is nothing to do. Hi Dave from your message I want to ask going idle suppose I am having a Linux box on my system. Then display manager,polling and

Re: knowledge sharing

2010-09-09 Thread Bond
On Thu, Sep 9, 2010 at 11:30 AM, Anuz Pratap Singh Tomar chambilketha...@gmail.com wrote: Finish all exercises of KnR. Have you yourself done that. pick up practical C programming book learn some user space programming My question is not about C programming. using either Robert love's

RE: knowledge sharing

2010-09-09 Thread Tayade, Nilesh
From: kernelnewbies-bou...@nl.linux.org [mailto:kernelnewbies-bou...@nl.linux.org] On Behalf Of Bond Sent: Thursday, September 09, 2010 12:24 PM To: kernelnewbies Subject: Re: knowledge sharing On Thu, Sep 9, 2010 at 12:01 PM, Tayade, Nilesh nilesh.tay...@netscout.com wrote: There is

Re: regarding do_irq

2010-09-09 Thread Mulyadi Santosa
On Thu, Sep 9, 2010 at 14:00, Bond jamesbond.2...@gmail.com wrote: Hi Dave from your message I want to ask going idle suppose I am having a Linux box on my system. Then display manager,polling and other things are constantly happening which are being handled by the CPU so when does the kernel

Re: knowledge sharing

2010-09-09 Thread Mulyadi Santosa
On Thu, Sep 9, 2010 at 13:54, Bond jamesbond.2...@gmail.com wrote: Sure thanks. Try to join kernel janitor ... -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com -- To unsubscribe from this list: send an

Re: regarding do_irq

2010-09-09 Thread Dave Hylands
Hi, On Thu, Sep 9, 2010 at 12:00 AM, Bond jamesbond.2...@gmail.com wrote: On Thu, Sep 9, 2010 at 12:04 PM, Dave Hylands dhyla...@gmail.com wrote: The kernel has the notion of going idle. This happens whenever there is nothing to do. Hi Dave from your message I want to ask going idle

Re: knowledge sharing

2010-09-09 Thread Bond
On Thu, Sep 9, 2010 at 12:39 PM, Tayade, Nilesh nilesh.tay...@netscout.comwrote: I just want to know some thing kick off. Suggestion - google. Something to kick off- start from what operating system really is. No please suggest some thing I am not clear with starting to what do I start

Re: Integer Division on 32 Bit Machines

2010-09-09 Thread Andreas Leppert
Hi Dave, On Wed, Sep 08, 2010 at 11:14:30PM -0700, Dave Hylands wrote: Replying to the list this time... finally an answer to *my* problem, thanks :-D Another general rule, is that on 32-bit CPUs you can only do 32-bit arithmetic, with 64-bit addition, subtraction, and multiplications.

What is the min_vruntime variable in struct cfs_rq?

2010-09-09 Thread fabio de francesco
Hi all, As in the subject could someone explain what is and what the use is of the min_vruntime variable in struct cfs_rq? Thanks in advance. fabio -- To unsubscribe from this list: send an email with unsubscribe kernelnewbies to ecar...@nl.linux.org Please read the FAQ at

Re: knowledge sharing

2010-09-09 Thread Bond
On Thu, Sep 9, 2010 at 12:44 PM, Mulyadi Santosa mulyadi.sant...@gmail.comwrote: On Thu, Sep 9, 2010 at 13:54, Bond jamesbond.2...@gmail.com wrote: Sure thanks. Try to join kernel janitor ... Thanks for the link http://sourceforge.net/projects/kernel-janitor/

debugging a process

2010-09-09 Thread Tapas Mishra
I tried to debug a running process. I am taking firefox as an example. So I wanted to see it in detail as how is Linux kernel communicating with it. Here is my output such as which kernel symbol is used in this process what other macros it is using any thing from kernel that is affecting it like

Re: regarding do_irq

2010-09-09 Thread Bond
On Thu, Sep 9, 2010 at 1:10 PM, Dave Hylands dhyla...@gmail.com wrote: Well, check your CPU usage. It's probably less than 100%. Let's say it's at 46%. That means that the system is spending 54% of its time doing nothing or being idle. From a macroscopic level, it looks like the CPU is busy.

Re: debugging a process

2010-09-09 Thread Daniel Baluta
Hi Tapas, On Thu, Sep 9, 2010 at 3:12 PM, Tapas Mishra mightydre...@gmail.com wrote: I tried to debug a running process. I am taking firefox as an example. For debugging purposes you can start with a `lighter' program. So I wanted to see it in detail as how is Linux kernel communicating with

Re: debugging a process

2010-09-09 Thread Tapas Mishra
On Thu, Sep 9, 2010 at 6:06 PM, Daniel Baluta daniel.bal...@gmail.com wrote: Hi Daniel For debugging purposes you can start with a `lighter' program. can you suggest some thing.Which you can consider as lighter program. In order for gdb to dump meaningful results the program must be compiled

Re: debugging a process

2010-09-09 Thread Tapas Mishra
On Thu, Sep 9, 2010 at 6:28 PM, Paul-Ovidiu Dascalu paul.dasc...@gmail.com wrote: Hi Paul /usr/bin/firefox is not an executable file to begin with. Yes this thing I got in my search also it is not an executable. Also you can you 'strace' on a program to see the the system calls and signal a

Re: debugging a process

2010-09-09 Thread Daniel Baluta
On Thu, Sep 9, 2010 at 3:59 PM, Tapas Mishra mightydre...@gmail.com wrote: On Thu, Sep 9, 2010 at 6:06 PM, Daniel Baluta daniel.bal...@gmail.com wrote: Hi Daniel For debugging purposes you can start with a `lighter' program. can you suggest some thing.Which you can consider as lighter program.

Re: debugging a process

2010-09-09 Thread Paul-Ovidiu Dascalu
Hi Tapas, For that you probably need to compile Firefox or whatever other application you need to analyze with debug support (-g flag) and optimization disabled (-O0 most likely). If you want to go further down then you will also need libraries you compiled with debug support or at leas the

Re: What is the min_vruntime variable in struct cfs_rq?

2010-09-09 Thread Neependra Khare
On Thu, Sep 9, 2010 at 4:40 PM, fabio de francesco fa...@metanix.orgwrote: Hi all, As in the subject could someone explain what is and what the use is of the min_vruntime variable in struct cfs_rq? sched-design-CFS.txt file in kernel documentation explains it. Neependra Thanks in

Re: Integer Division on 32 Bit Machines

2010-09-09 Thread John Mahoney
On Wed, Sep 8, 2010 at 10:51 PM, Bond jamesbond.2...@gmail.com wrote: On Thu, Sep 9, 2010 at 8:11 AM, ptchinster ptchins...@archlinux.us wrote: What do you think? Apply what you have learned so far and come up with the pros and cons of being able to use negative numbers. I read that book

Re: regarding do_irq

2010-09-09 Thread Sri Ram Vemulpali
thanks to all On Thu, Sep 9, 2010 at 8:16 AM, Bond jamesbond.2...@gmail.com wrote: On Thu, Sep 9, 2010 at 1:10 PM, Dave Hylands dhyla...@gmail.com wrote: Well, check your CPU usage. It's probably less than 100%. Let's say it's at 46%. That means that the system is spending 54% of its time

Re: knowledge sharing

2010-09-09 Thread John Mahoney
On Thu, Sep 9, 2010 at 2:00 AM, Anuz Pratap Singh Tomar chambilketha...@gmail.com wrote: On Thu, Sep 9, 2010 at 11:25 AM, Bond jamesbond.2...@gmail.com wrote: On Thu, Sep 9, 2010 at 11:19 AM, Anuz Pratap Singh Tomar chambilketha...@gmail.com wrote: The best idea is to look into Robert's

usubscribe kernelnewbies

2010-09-09 Thread sandeep lahane
Regards, Sandeep.

Re: usage of kill_pid and family

2010-09-09 Thread Pavan Savoy
i've been away for a few days and hence the late update On Thu, Sep 2, 2010 at 11:51 AM, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: Hi Pavan... On Thu, Sep 2, 2010 at 22:09, Pavan Savoy pavan_sa...@sify.com wrote: Hi, I use kill_pid in one of our drivers to signal a user-space

Re: regarding do_irq

2010-09-09 Thread Sri Ram Vemulpali
Hi, Can any one explain, when interrupt handler schedules softirq, for bottom half work, when is that softirq is executed. Is it immediately after interrupt handler context or after some time later when scheduler was invoked. I am trying to understand execution context of BHs. I know that

Re: Integer Division on 32 Bit Machines

2010-09-09 Thread Dave Hylands
Hi Andreas, On Thu, Sep 9, 2010 at 1:28 AM, Andreas Leppert wu...@web.de wrote: Hi Dave, On Wed, Sep 08, 2010 at 11:14:30PM -0700, Dave Hylands wrote: Replying to the list this time... finally an answer to *my* problem, thanks :-D Another general rule, is that on 32-bit CPUs you can only

Re: regarding do_irq

2010-09-09 Thread Dave Hylands
Hi Sri, Replying to the list... On Thu, Sep 9, 2010 at 5:08 PM, Sri Ram Vemulpali wrote: Hi, Can any one explain, when interrupt handler schedules softirq, for bottom half work, when is that softirq is executed. Is it immediately after interrupt handler context or after some time later when

Re: knowledge sharing

2010-09-09 Thread Anuz Pratap Singh Tomar
On Fri, Sep 10, 2010 at 12:20 AM, John Mahoney jmaho...@waav.com wrote: On Thu, Sep 9, 2010 at 2:00 AM, Anuz Pratap Singh Tomar chambilketha...@gmail.com wrote: On Thu, Sep 9, 2010 at 11:25 AM, Bond jamesbond.2...@gmail.com wrote: On Thu, Sep 9, 2010 at 11:19 AM, Anuz Pratap Singh

Re: knowledge sharing

2010-09-09 Thread naren . mehra
On Fri, Sep 10, 2010 at 7:25 AM, Anuz Pratap Singh Tomar chambilketha...@gmail.com wrote: On Fri, Sep 10, 2010 at 12:20 AM, John Mahoney jmaho...@waav.com wrote: On Thu, Sep 9, 2010 at 2:00 AM, Anuz Pratap Singh Tomar chambilketha...@gmail.com wrote: On Thu, Sep 9, 2010 at 11:25 AM,

Re: knowledge sharing

2010-09-09 Thread Alison Chaiken
Anuz Pratap Singh Tomar chambilketha...@gmail.com wrote: No, but matthew and stone cover to cover: all programs. very very useful book I already have readchunks of KnR, Love's _Linux Kernel Fundamentals_, Hallinan's _Embedded Linux Primer_ and the Rubini-Corbet-K/H and Venkateswaran device

Re: knowledge sharing

2010-09-09 Thread Anuz Pratap Singh Tomar
On Fri, Sep 10, 2010 at 10:03 AM, Alison Chaiken alchai...@gmail.comwrote: Anuz Pratap Singh Tomar chambilketha...@gmail.com wrote: No, but matthew and stone cover to cover: all programs. very very useful book I already have readchunks of KnR, Love's _Linux Kernel Fundamentals_,

Re: Integer Division on 32 Bit Machines

2010-09-09 Thread arshad hussain
It would be better if you do not hijack other e-mail threads to post your own question. I agree with Silesh 100% here. Thanks. -- To unsubscribe from this list: send an email with unsubscribe kernelnewbies to ecar...@nl.linux.org Please read the FAQ at http://kernelnewbies.org/FAQ

Re: knowledge sharing

2010-09-09 Thread Michael Blizek
Hi! On 08:27 Thu 09 Sep , Bond wrote: It would good if some senior members on the list share their knowledge in form of some sort of programming exercise on this list. For example decide a topic for a week and discuss about that topic in the week. Starting from some one who is absolutely