Re: decoding kernel oops

2009-09-02 Thread Mulyadi Santosa
On Wed, Sep 2, 2009 at 6:08 PM, Manish Katiyar wrote: > Hi, > > I was going through this post > http://kerneltrap.org/mailarchive/linux-kernel/2008/1/8/546623 and > couldn't understand the steps around the below paragraph. > > " > and run it under gdb, and then when it gets the SIGSEGV (due to the

apparently, i don't know seq_files as well as i thought

2009-09-02 Thread Robert P. J. Day
was in the midst of writing my final installment of newbie column for how to use /proc sequence files for debugging, and suddenly i'm not convinced i know every detail about them. in particular, i'm looking at the prototype for the "stop" routine: void stop(struct seq_file* s, void* v); and

Re: netconsole configuration problem in FC-8 and FC-10 with 2.6.28 and 2.6.30 versions

2009-09-02 Thread Ed Cashin
Madhavi Manchala writes: ... > http://www.cyberciti.biz/tips/linux-netconsole-log-management-tutorial.html > > I tried to load the netconsole with the following command in FC-8 and > FC-10 systems. > > # modprobe netconsole > 6...@192.168.1.5/eth0,5...@192.168.1.100/00:19:D1:2A:BA:A8 > > I got t

Re: decoding kernel oops

2009-09-02 Thread Ed Cashin
Manish Katiyar writes: > Hi, > > I was going through this post > http://kerneltrap.org/mailarchive/linux-kernel/2008/1/8/546623 and > couldn't understand the steps around the below paragraph. > > " > and run it under gdb, and then when it gets the SIGSEGV (due to the > obvious NULL pointer derefe

decoding kernel oops

2009-09-02 Thread Manish Katiyar
Hi, I was going through this post http://kerneltrap.org/mailarchive/linux-kernel/2008/1/8/546623 and couldn't understand the steps around the below paragraph. " and run it under gdb, and then when it gets the SIGSEGV (due to the obvious NULL pointer dereference), I can just ask gdb to disassemble

Re: basic filesystem -- sb_bread stucks

2009-09-02 Thread SandeepKsinha
NIdhi, On Wed, Sep 2, 2009 at 2:45 PM, nidhi mittal hada wrote: > > Hi All > "I am writing for learning purpose a basic filesystem that just mounts > loads super block and root inode from disk." > > Now i am facing a problem > when i do > > mount -t myfs2 utils/nnn /mnt -o loop - it stucks he

Re: pr_debug and "if (0)" statement

2009-09-02 Thread Bernd Petrovitsch
On Wed, 2009-09-02 at 15:17 +0530, Anuz Pratap Singh Tomar wrote: > On Wed, Sep 2, 2009 at 2:30 PM, Bernd Petrovitsch > wrote: > On Wed, 2009-09-02 at 13:31 +0530, Anuz Pratap Singh Tomar > wrote: > > that part of code wont be executed. [...] > Then why not simply

Re: pr_debug and "if (0)" statement

2009-09-02 Thread Matteo Foppiano
> Then why not simply use "do { } while (0)" or similar? > [...] > > can someone please explain me the meaning/benefits of the "if > > (0)" statement? (Probably) it is used to avoid "unused variable" message during compilation. regards, Matteo -- A full belly makes a dull brain

Re: pr_debug and "if (0)" statement

2009-09-02 Thread Anuz Pratap Singh Tomar
On Wed, Sep 2, 2009 at 2:30 PM, Bernd Petrovitsch wrote: > On Wed, 2009-09-02 at 13:31 +0530, Anuz Pratap Singh Tomar wrote: > > that part of code wont be executed. > > Please don't top-post. > > My mail client sucked, will take care. du'h! > Then why not simply use "do { } while (0)" or simila

basic filesystem -- sb_bread stucks

2009-09-02 Thread nidhi mittal hada
Hi All "I am writing for learning purpose a basic filesystem that just mounts loads super block and root inode from disk." Now i am facing a problem when i do mount -t myfs2 utils/nnn /mnt -o loop - it stucks here then doing ps -ax | grep -i mountshows themount script is in RL

Re: pr_debug and "if (0)" statement

2009-09-02 Thread Bernd Petrovitsch
On Wed, 2009-09-02 at 13:31 +0530, Anuz Pratap Singh Tomar wrote: > that part of code wont be executed. Please don't top-post. Then why not simply use "do { } while (0)" or similar? [ > On Wed, Sep 2, 2009 at 1:24 PM, luca ellero wrote: [...] > can someone please explain me the meanin

Re: pr_debug and "if (0)" statement

2009-09-02 Thread Anuz Pratap Singh Tomar
that part of code wont be executed. On Wed, Sep 2, 2009 at 1:24 PM, luca ellero wrote: > Hi all, > > looking into kernel source code (2.6.26.8) I encountered this definition > (in include/linux/kernel.h): > > #ifdef DEBUG > /* If you are writing a driver, please use dev_dbg instead */ > #define

pr_debug and "if (0)" statement

2009-09-02 Thread luca ellero
Hi all, looking into kernel source code (2.6.26.8) I encountered this definition (in include/linux/kernel.h): #ifdef DEBUG /* If you are writing a driver, please use dev_dbg instead */ #define pr_debug(fmt, arg...) \ printk(KERN_DEBUG fmt, ##arg) #else #define pr_debug(fmt, arg...) \