Re: Snooping on sockets/file descriptors

2011-04-01 Thread Vimal
then, something like dtrace or systemtap? IMO you're looking for kinda combo of kernel mode + user land sniffer... the user land sniffer, in it's very simple form, is by using LD_PRELOAD ... dtrace seems fine and is similar to ptrace. But then, one would have to enumerate all possible

how to get kernel functions calling stack/invokation ordert

2011-04-01 Thread sri
Hi, Is there a way to find, in the kernel src tree, which routine/function is calling another function OR kernel function invocation stack order? This would be helpful for me to know the various steps/functionalities involved during executing something in kernel space. -Sri-

Re: how to get kernel functions calling stack/invokation ordert

2011-04-01 Thread Daniel Baluta
Is there a way to find, in the kernel src tree, which routine/function is calling another function OR kernel function invocation stack order? This would be helpful for me to know the various steps/functionalities involved during executing something in kernel space. At runtime you can use

Re: how to get kernel functions calling stack/invokation ordert

2011-04-01 Thread Daniel Baluta
Is there a way to find, in the kernel src tree, which routine/function is calling another function OR kernel function invocation stack order? This would be helpful for me to know the various steps/functionalities involved during executing something in kernel space. At runtime you can use

Re: how to get kernel functions calling stack/invokation ordert

2011-04-01 Thread sri
Thank you Daniel for the links. Am using kernel-2.6.18-194.centosplus.el5 and dumpstack.c (under lib/dumpstack.c) implentation said simply This architecture does not support dump_stack. Thanks, Sri. On Fri, Apr 1, 2011 at 3:33 PM, Daniel Baluta daniel.bal...@gmail.comwrote: Is there a way to

Re: Snooping on sockets/file descriptors

2011-04-01 Thread Vimal
Hi Javier, If you want to do it in the kernel, you can write a loadable kernel module to register netfilter hooks and obtain the socket buffers (sk_buff). Thanks. If you see my earlier posts, I didn't want netfilter/pcap because they give me access to packets. I would like access to the

Broadcom Ethernet card not working with new kernels - intermittently being registered as two different devices

2011-04-01 Thread julie Sullivan
Hi list, Celejar (see message copied below) has been having problems with his Broadcom BCM4401-B0 Ethernet card not working on very recent kernels - it seems to be sporadically registered either as the correct device or as a completely different Broadcom device on a different subsystem and IRQ.

Re: Broadcom Ethernet card not working with new kernels - intermittently being registered as two different devices

2011-04-01 Thread Greg Freemyer
On Fri, Apr 1, 2011 at 1:31 PM, julie Sullivan kernelmail@gmail.com wrote: Hi list, Celejar (see message copied below) has been having problems with his Broadcom BCM4401-B0 Ethernet card not working on very recent kernels - it seems to be sporadically registered either as the correct

Regarding enable paging code and swapper_pg_dir.

2011-04-01 Thread mindentropy
Hi All, In the code http://lxr.linux.no/#linux+v2.6.12/arch/i386/kernel/head.S#L186 I am not able to understand what's the reason for subtracting swapper_pg_dir with __PAGE_OFFSET(0xc000). i.e. movl $swapper_pg_dir-__PAGE_OFFSET Shouldn't it be movl $swapper_pg_dir, %eax? Thanks.

Re: Cannot get I/O permissions

2011-04-01 Thread Sengottuvelan S
On Fri, Apr 1, 2011 at 3:32 PM, Sengottuvelan S sengottuvela...@gmail.comwrote: Hi All, I am trying to access /dev/mem in my user process. I could not access because not a privileged access. I tried to use iopl(3) call in linux 2.6, but i am getting unresolved symbol for this. Is any other