gdtr value

2013-02-18 Thread horseriver
hi:) The gdtr reg saves the base address of gdt , whether is this address a linear address or phisical address ? thanks! ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: gdtr value

2013-02-18 Thread Anuz Pratap Singh Tomar
On Mon, Feb 18, 2013 at 1:55 AM, horseriver horseriv...@gmail.com wrote: hi:) The gdtr reg saves the base address of gdt , whether is this address a linear address or phisical address ? According to Intel® 64 and IA-32 Architectures Software Developer’s Manual Volume 3B: System Programming

Re: gdtr value

2013-02-18 Thread Anuz Pratap Singh Tomar
On Mon, Feb 18, 2013 at 5:07 AM, horseriver horseriv...@gmail.com wrote: hi:) I have compiled a .S file ,using command gcc -c x.S -o x. Then I use objdump to look up its asm code, even find that some code is not the same as that .S file , more important is , some code in origin .S

Re: gdtr value

2013-02-18 Thread Anuz Pratap Singh Tomar
On Mon, Feb 18, 2013 at 3:05 PM, Anuz Pratap Singh Tomar chambilketha...@gmail.com wrote: On Mon, Feb 18, 2013 at 5:07 AM, horseriver horseriv...@gmail.com wrote: hi:) I have compiled a .S file ,using command gcc -c x.S -o x. Then I use objdump to look up its asm code, even find that

Tracing - how can I know which method was called

2013-02-18 Thread Kevin Wilson
Hi, I added a network event trace thus: echo 1 /sys/kernel/debug/tracing/events/net/net_dev_xmit/enable Afterwards I see many lines with net_dev_xmit in /sys/kernel/debug/tracing. Now, looking in the source code, I see that there are two calls to trace_net_dev_xmit() in

Tracing SIGKILL, is that possible?

2013-02-18 Thread Daniel.
Is there a way to track signals, specially SIGKILL. I would like to know if some process dies because reach some resource limit, because an OMM error or something likewise.. Cheers -- Do or do not. There is no try Yoda Master ___ Kernelnewbies

Re: Tracing SIGKILL, is that possible?

2013-02-18 Thread Valdis . Kletnieks
On Mon, 18 Feb 2013 15:46:58 -0300, Daniel. said: Is there a way to track signals, specially SIGKILL. I would like to know if some process dies because reach some resource limit, because an OMM error or something likewise.. Depends on where you want the tracking to go. But your first thing to

Linux Kernel

2013-02-18 Thread kapil agrawal
Hi, How the linux kernel runs in the system after spawning the init and mounting the root FS. Does it run as some background process ? How it serves the system calls etc. ? Regards Kapil ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: Linux Kernel

2013-02-18 Thread Valdis . Kletnieks
On Tue, 19 Feb 2013 10:50:26 +0530, kapil agrawal said: How the linux kernel runs in the system after spawning the init and mounting the root FS. Does it run as some background process ? No. You probably want to get some basic knowledge about operating systems in general.

Re: Linux Kernel

2013-02-18 Thread Sengottuvelan S
Kapil It runs as Background process in the kernel memory (init-process). When system calls is coming from User space/Land, there will be context switch from user to kernel space happens. I think kernel main thread serving those system calls. On Mon, Feb 18, 2013 at 9:20 PM, kapil agrawal

Re: Linux Kernel

2013-02-18 Thread kapil agrawal
Do you mean process with PID 0 is the one, which runs in the background and serves the request from userland and goes to cpu_idle() if nothing to run. -kapil On Tue, Feb 19, 2013 at 11:23 AM, Sengottuvelan S sengottuvela...@gmail.com wrote: Kapil It runs as Background process in the kernel

Re: Linux Kernel

2013-02-18 Thread Valdis . Kletnieks
On Tue, 19 Feb 2013 12:01:55 +0530, kapil agrawal said: Do you mean process with PID 0 is the one, which runs in the background and serves the request from userland and goes to cpu_idle() if nothing to run. No. Large parts of the kernel run in kernel mode, but using the 'struct task' of the