* system call number
@ 2011-02-27 13:41 mohit verma
2011-02-27 15:36 ` Mulyadi Santosa
0 siblings, 1 reply; 3+ messages in thread
From: mohit verma @ 2011-02-27 13:41 UTC (permalink / raw)
To: kernelnewbies
hi all,
suppose a process has invoked some system call and cpu runs the system call
.how can i find out the system call number (invoked) related to that process
in kenrel space?
thanks in advance.
........................
*MOHIT VERMA*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110227/a3be1a42/attachment.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* system call number
@ 2011-02-27 13:48 mohit verma
0 siblings, 0 replies; 3+ messages in thread
From: mohit verma @ 2011-02-27 13:48 UTC (permalink / raw)
To: kernelnewbies
hi all,
suppose a process has invoked some system call and cpu runs the system call
.how can i find out the system call number (invoked) related to that process
in kenrel space?
thanks in advance.
........................
*MOHIT VERMA*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110227/4ba9c706/attachment.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* system call number
2011-02-27 13:41 mohit verma
@ 2011-02-27 15:36 ` Mulyadi Santosa
0 siblings, 0 replies; 3+ messages in thread
From: Mulyadi Santosa @ 2011-02-27 15:36 UTC (permalink / raw)
To: kernelnewbies
Hi..
On Sun, Feb 27, 2011 at 20:41, mohit verma <mohit89mlnc@gmail.com> wrote:
> hi all,
> suppose a process has invoked some system call and cpu runs the system call
> .how can i find out the system call number (invoked) related to that process
> in kenrel space?
Untested idea:
check the related process' kernel stack....specificly the first stack
frame. Then cross check it with information from
http://lxr.linux.no/linux+v2.6.37.2/arch/x86/kernel/entry_32.S or your
related arch.
the upper most comment written there will show the meaning of each
values saved in that stack frame. Then what you need to do is just
locate where EAX is...
I think that's one of the ways....probably there are more....
--
regards,
Mulyadi Santosa
Freelance Linux trainer and consultant
blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-02-27 15:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-27 13:48 system call number mohit verma
-- strict thread matches above, loose matches on Subject: below --
2011-02-27 13:41 mohit verma
2011-02-27 15:36 ` Mulyadi Santosa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).