Re: Understanding disassembly x86 + understanding function call + parameter pass and stack frame

2013-08-06 Thread Saket Sinha
Actually I need to ask you something rather than offering a solution. Actually I have a similar sort of situation so I think I would ask here. The issue I am facing is that I have been developing a filesystem driver(over x86) which has become unstable by which I mean , at compile time it is

Re: Understanding disassembly x86 + understanding function call + parameter pass and stack frame

2013-08-06 Thread Anuz Pratap Singh Tomar
On Tue, Aug 6, 2013 at 10:43 AM, Saket Sinha saket.sinh...@gmail.comwrote: Actually I need to ask you something rather than offering a solution. Actually I have a similar sort of situation so I think I would ask here. Please don't do this. Ask the question separately. There are better chances

Kernel Debugging

2013-08-06 Thread Saket Sinha
I am facing an issue where I have been developing a filesystem driver(over x86) which has become unstable by which I mean , at compile time it is building but during runtime it fails when I call the corresponding APIs from the user-space. In order to find out exactly where it is failing, I

Re: Kernel Debugging

2013-08-06 Thread Chaitanya Gotkhindikar
Hi Saket, You may configure kdump and use crash utility for debugging offline. Here are some useful links. https://sites.google.com/site/syscookbook/rhel/rhel-kdump-rhel6 http://www.novell.com/support/kb/doc.php?id=3374462 Otherwise systemtap is good option too.

Re: Fwd: Understanding disassembly x86 + understanding function call + parameter pass and stack frame

2013-08-06 Thread Andreas Platschek
c)lets say for a program a.c i use gcc -S a.c ...do we have some other command to generate somewhat more clear assembly code, may be with some comments in english Not sure if this is of any help, but the kernel build system (no idea how to do this for user space programs) offers to generate

Re: A question about -mm tree and -next tree.

2013-08-06 Thread Valdis . Kletnieks
On Tue, 06 Aug 2013 21:27:27 +0800, Zhan Jianyu said: I found that most of the -mm patches are in -next, which means they will be tested more by all developers , but there are still some patches are not included in -next tree. So why are they special and how they make

Network Driver From Scrach

2013-08-06 Thread Robert Clove
Hi All, I want to first understand and then write a network driver for simple Ethernet device (actually instead of inbuilt network driver i want to run my network driver). Actually the new driver should have PF_RING enable/support and Net filter usage. Although we can copy the driver too but i

Re: Network Driver From Scrach

2013-08-06 Thread Valdis . Kletnieks
On Tue, 06 Aug 2013 10:22:23 -0700, Robert Clove said: I want to first understand and then write a network driver for simple Ethernet device (actually instead of inbuilt network driver i want to run my network driver). simple Ethernet device. That's the first bug you need to fix in your

Re: Network Driver From Scrach

2013-08-06 Thread Mandeep Sandhu
There's a nice write-up about the n/w stack here: http://media.wix.com/ugd//295986_a3dcb13a2f46d15cb75abab021a239da.pdf It'll give you a start in understanding how the packet traverses the stack. -mandeep On Tue, Aug 6, 2013 at 10:52 PM, Robert Clove cloverob...@gmail.com wrote: Hi All,