Re: regarding do_irq

2010-09-10 Thread Dave Hylands
Hi Sri, Replying to the list this time... On Thu, Sep 9, 2010 at 9:58 PM, Sri Ram Vemulpali sri.ram.gm...@gmail.com wrote: Hi Dave, Thanks for explanation, but is there any delay between interrupt handler and softirq execution. Suppose say INT7 triggered and its handler got executed. Now

Re: knowledge sharing

2010-09-10 Thread John Mahoney
These are great reads, especially if you are having trouble sleeping. But seriously, if you can make it though them they are very useful. - If you are interested in some low-level x86 details, go to developer.amd.com  , Docs Articles, Developer Guides Manuals, Manuals and look at  AMD64

Re: knowledge sharing

2010-09-10 Thread Bond
On Fri, Sep 10, 2010 at 10:34 AM, Michael Blizek mic...@michaelblizek.twilightparadox.com wrote: I would recommend to make yourself familiar with some topics (non exhaustive): - in Documentation/ read CodingStyle, ManagementStyle, SubmittingPatches - locking: spinlock, mutex, atomic ops -

Re: Integer Division on 32 Bit Machines

2010-09-10 Thread Bond
On Fri, Sep 10, 2010 at 10:08 AM, arshad hussain arshad.su...@gmail.comwrote: I agree with Silesh 100% here. Thanks. Rather than agreeing with Silesh show some real suggestion to original posters question. I have a habit of understanding what other people ask and try to understand what they

Re: regarding do_irq

2010-09-10 Thread John Mahoney
On Fri, Sep 10, 2010 at 12:58 AM, Sri Ram Vemulpali sri.ram.gm...@gmail.com wrote: Hi Dave,  Thanks for explanation, but is there any delay between interrupt handler and softirq execution. Suppose say INT7 triggered and its handler got executed. Now this handler raised the softirq and finished

Re: debugging a process

2010-09-10 Thread John Mahoney
On Thu, Sep 9, 2010 at 9:01 AM, Tapas Mishra mightydre...@gmail.com wrote: 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.

the first kernel code written by torvalds

2010-09-10 Thread Tapas Mishra
Hi, just Googled http://www.google.com/search?client=ubuntuchannel=fsq=Linuses+kernels+first+codeie=utf-8oe=utf-8 want to know if some one can point out the first version of kernel code which Torvalds wrote. -- Tapas http://mightydreams.blogspot.com

Re: the first kernel code written by torvalds

2010-09-10 Thread pieter.heremans
hey * http://lxr.linux.no/linux-old is very nice site -- all code of versions 0.01 - 2.4.31 is linked/browseable/searchable * little article on it (also has code in attachment) http://kerneltrap.org/node/14002 ptr_ On Fri, Sep 10, 2010 at 10:46 AM, Tapas Mishra mightydre...@gmail.com wrote:

Re: Integer Division on 32 Bit Machines

2010-09-10 Thread arshad hussain
On 9/10/2010 12:22 PM, Bond wrote: On Fri, Sep 10, 2010 at 10:08 AM, arshad hussain arshad.su...@gmail.com mailto:arshad.su...@gmail.com wrote: I agree with Silesh 100% here. Thanks. Rather than agreeing with Silesh show some real suggestion to original posters question. Do

Re: the first kernel code written by torvalds

2010-09-10 Thread Tapas Mishra
On Fri, Sep 10, 2010 at 2:57 PM, Manohar Vanga manohar.va...@gmail.com wrote: This is probably what you're looking for: http://www.kernel.org/pub/linux/kernel/Historic/ Yeah right.But some other people have also given some links which are useful. -- Tapas http://mightydreams.blogspot.com

Re: the first kernel code written by torvalds

2010-09-10 Thread Mulyadi Santosa
On Fri, Sep 10, 2010 at 15:46, Tapas Mishra mightydre...@gmail.com wrote: Hi,  just Googled http://www.google.com/search?client=ubuntuchannel=fsq=Linuses+kernels+first+codeie=utf-8oe=utf-8 want to know if some one can point out the first version of kernel code which Torvalds wrote. If you

Re: the first kernel code written by torvalds

2010-09-10 Thread Tapas Mishra
On Fri, Sep 10, 2010 at 3:33 PM, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: If that's really what you need, try to head on to: http://www.ibiblio.org/pub/historic-linux/distributions/yggdrasil/ That was great. -- Tapas http://mightydreams.blogspot.com

Re: debugging a process

2010-09-10 Thread Tapas Mishra
On Fri, Sep 10, 2010 at 12:46 PM, John Mahoney jmaho...@waav.com wrote: Actually, it is an executable, but not the actual firefox binary one would expect.  Instead it is a symbolic link to a  wrapper script which executes the first line of the file /bin/sh(a link to dash in Ubuntu) which

Re: Integer Division on 32 Bit Machines

2010-09-10 Thread Andreas Leppert
Hi Dave, On Thu, Sep 09, 2010 at 06:16:07PM -0700, Dave Hylands wrote: I've understood so far your explanations. But one thing I am missing: I claim that I do not do an 64-bit division, but an 32-bit division. Why? I have run make tags to create an architecture dependent tags file.

Re: regarding do_irq

2010-09-10 Thread mohit verma
hi guys, this may be out of the topic but it stuck me at this stage so i am asking. i read that interrupt handler names start from do_X but what about __do _X. i mean, what do they show?

Re: debugging a process

2010-09-10 Thread Daniel Baluta
On Fri, Sep 10, 2010 at 6:03 PM, mohit verma mohit89m...@gmail.com wrote: On Thu, Sep 9, 2010 at 8:44 PM, mohit verma mohit89m...@gmail.com wrote: hi, i am debugging the same firefox program. it is showing 33 threads running in my system .i switch to each  thread and type the command bt to

simple character device driver

2010-09-10 Thread fabio de francesco
Hi all, I have modified a simple character device driver as an exercise from the Cooperstein's Linux Device Drivers book. It seems to work fine except that when I cat /dev/mycdrv it provides garbage. This is a trimmed down version of the code: #include linux/module.h /* for modules */

Re: simple character device driver

2010-09-10 Thread fabio de francesco
On Friday 10 September 2010 18:07:03 Daniel Baluta wrote: On Fri, Sep 10, 2010 at 6:51 PM, fabio de francesco fa...@metanix.org wrote: Hi all, I have modified a simple character device driver as an exercise from the Cooperstein's Linux Device Drivers book. It seems to work fine

Re: simple character device driver

2010-09-10 Thread Daniel Baluta
On Fri, Sep 10, 2010 at 6:51 PM, fabio de francesco fa...@metanix.org wrote: Hi all, I have modified a simple character device driver as an exercise from the Cooperstein's Linux Device Drivers book. It seems to work fine except that when I cat /dev/mycdrv it provides garbage. This is a

Re: simple character device driver

2010-09-10 Thread John Mahoney
On Fri, Sep 10, 2010 at 11:51 AM, fabio de francesco fa...@metanix.org wrote: Hi all, I have modified a simple character device driver as an exercise from the Cooperstein's Linux Device Drivers book. It seems to work fine except that when I cat /dev/mycdrv it provides garbage. This is a

Re: simple character device driver

2010-09-10 Thread John Mahoney
On Fri, Sep 10, 2010 at 1:02 PM, John Mahoney jmaho...@waav.com wrote: On Fri, Sep 10, 2010 at 11:51 AM, fabio de francesco fa...@metanix.org wrote: Hi all, I have modified a simple character device driver as an exercise from the Cooperstein's Linux Device Drivers book. It seems to work

Re: Fwd: some questions about kernel debugging

2010-09-10 Thread Mulyadi Santosa
Hi... 2010/9/10 loody milo...@gmail.com: Is it the limitation of kernel source debugging? ( cannot print out the value of variable) Ehm..not sure, but one thing for sure: debugger can only see as much information as the ones that exists inside the kernel image. In this case: symbol table, a

Re: simple character device driver

2010-09-10 Thread fabio de francesco
On Friday 10 September 2010 19:16:31 John Mahoney wrote: On Fri, Sep 10, 2010 at 1:02 PM, John Mahoney jmaho...@waav.com wrote: On Fri, Sep 10, 2010 at 11:51 AM, fabio de francesco fa...@metanix.org wrote: Hi all, I have modified a simple character device driver as an exercise from the

Re: simple character device driver

2010-09-10 Thread fabio de francesco
On Friday 10 September 2010 19:02:09 John Mahoney wrote: On Fri, Sep 10, 2010 at 11:51 AM, fabio de francesco fa...@metanix.org wrote: Hi all, I have modified a simple character device driver as an exercise from the Cooperstein's Linux Device Drivers book. It seems to work fine

Re: regarding do_irq

2010-09-10 Thread Mulyadi Santosa
Hi... On Fri, Sep 10, 2010 at 21:58, mohit verma mohit89m...@gmail.com wrote: hi guys,  this may be out of the topic but it stuck me at this stage so i am asking. perhaps better if you start new thread, with subject like blah blah (was: blah blah) :)  i read that interrupt handler names

Re: Fwd: some questions about kernel debugging

2010-09-10 Thread Venkatram Tummala
On Fri, Sep 10, 2010 at 10:32 AM, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: Hi... 2010/9/10 loody milo...@gmail.com: Is it the limitation of kernel source debugging? ( cannot print out the value of variable) Ehm..not sure, but one thing for sure: debugger can only see as much

Re: Fwd: some questions about kernel debugging

2010-09-10 Thread Mulyadi Santosa
On Sat, Sep 11, 2010 at 00:55, Venkatram Tummala venkatram...@gmail.com wrote: Removing -O flag in the kernel makefile doesn't work. the kernel refuses to boot if the optimization flag is disabled for kernel compilation. Till now, nobody has been able to answer this correctly in this mailing

Re: simple character device driver

2010-09-10 Thread Josh Cartwright
On Fri, Sep 10, 2010 at 05:51:41PM +0200, fabio de francesco wrote: static ssize_t mycdrv_read (struct file *file, char __user * buf, size_t lbuf, loff_t * ppos) { int nbytes, maxbytes, bytes_to_do; maxbytes = KBUF_SIZE - *ppos; bytes_to_do = lbuf = maxbytes ? lbuf : maxbytes;

Re: simple character device driver

2010-09-10 Thread fabio de francesco
On Friday 10 September 2010 20:23:13 Josh Cartwright wrote: On Fri, Sep 10, 2010 at 05:51:41PM +0200, fabio de francesco wrote: static ssize_t mycdrv_read (struct file *file, char __user * buf, size_t lbuf, loff_t * ppos) { int nbytes, maxbytes, bytes_to_do; maxbytes =

Re: simple character device driver

2010-09-10 Thread John Mahoney
On Fri, Sep 10, 2010 at 1:30 PM, fabio de francesco fa...@metanix.org wrote: On Friday 10 September 2010 19:16:31 John Mahoney wrote: On Fri, Sep 10, 2010 at 1:02 PM, John Mahoney jmaho...@waav.com wrote: On Fri, Sep 10, 2010 at 11:51 AM, fabio de francesco fa...@metanix.org wrote: Hi all,

Re: simple character device driver

2010-09-10 Thread John Mahoney
On Fri, Sep 10, 2010 at 2:39 PM, John Mahoney jmaho...@waav.com wrote: On Fri, Sep 10, 2010 at 1:30 PM, fabio de francesco fa...@metanix.org wrote: On Friday 10 September 2010 19:16:31 John Mahoney wrote: On Fri, Sep 10, 2010 at 1:02 PM, John Mahoney jmaho...@waav.com wrote: On Fri, Sep 10,

Re: simple character device driver

2010-09-10 Thread Josh Cartwright
On Fri, Sep 10, 2010 at 08:38:34PM +0200, fabio de francesco wrote: On Friday 10 September 2010 20:23:13 Josh Cartwright wrote: On Fri, Sep 10, 2010 at 05:51:41PM +0200, fabio de francesco wrote: static ssize_t mycdrv_read (struct file *file, char __user * buf, size_t lbuf, loff_t *

Re: Fwd: some questions about kernel debugging

2010-09-10 Thread Venkatram Tummala
On Fri, Sep 10, 2010 at 11:00 AM, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: On Sat, Sep 11, 2010 at 00:55, Venkatram Tummala venkatram...@gmail.com wrote: Removing -O flag in the kernel makefile doesn't work. the kernel refuses to boot if the optimization flag is disabled for

Re: Fwd: some questions about kernel debugging

2010-09-10 Thread Mulyadi Santosa
Hi... On Sat, Sep 11, 2010 at 02:58, Venkatram Tummala venkatram...@gmail.com wrote: As far as I remember, -O0 -O1 didn't work for me. I think O2 worked but things were not radically different when GDB was attached when compared to O3 Kernel must need something that are enabled inside -O2

Re: Question on MMU

2010-09-10 Thread Mulyadi Santosa
Hi Sri... On Sat, Sep 11, 2010 at 09:19, Sri Ram Vemulpali sri.ram.gm...@gmail.com wrote: Hi all,       I have a question on MMU. Memory management is used to segregate the memory between process and make sure no process steps on each other. Also, it provides abstraction to whole available

make with argument 0 is failing some where

2010-09-10 Thread Tapas Mishra
I cloned the 2.6 latest kernel tree on my system and in my home directory made a folder named btc git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git linux-2.6 then compiled as yes ' ' | make 0=$HOME/btc/ oldconfig worked well. Then make 0=$HOME/btc this also worked

Re: Question on MMU

2010-09-10 Thread randd
On Fri, Sep 10, 2010 at 10:19:27PM -0400, Sri Ram Vemulpali wrote: Hi all, I have a question on MMU. Memory management is used to segregate the memory between process and make sure no process steps on each other. Also, it provides abstraction to whole available memory in a conceptual

Re: Question on MMU

2010-09-10 Thread Michael Blizek
Hi! On 22:19 Fri 10 Sep , Sri Ram Vemulpali wrote: Hi all, I have a question on MMU. Memory management is used to segregate the memory between process and make sure no process steps on each other. Also, it provides abstraction to whole available memory in a conceptual way called

Re: Question on MMU

2010-09-10 Thread arshad hussain
On 9/11/2010 8:04 AM, Mulyadi Santosa wrote: Hi Sri... On Sat, Sep 11, 2010 at 09:19, Sri Ram Vemulpali sri.ram.gm...@gmail.com wrote: Hi all, I have a question on MMU. Memory management is used to segregate the memory between process and make sure no process steps on each other. Also,