2001-12-09 22:51:37

by Sarita N

[permalink] [raw]
Subject: KERNEL SYSTEM CALLS DEFINITIONS


Hello,
I am a grad student at the university of nebraska lincoln.
I have to build a tool in C that would caputure the system calls and signals between a user application adn the operating system.

I have started studying the Linux kernel. Can I know how to go about it. Where , in which Kernel file can I find the definitions of the various system calls - how have they been implemented in the kernel?

How do I go about the project?

Thanks and regards,
Sarita Navuluru.


2001-12-09 23:07:29

by Robert Love

[permalink] [raw]
Subject: Re: KERNEL SYSTEM CALLS DEFINITIONS

On Sun, 2001-12-09 at 17:51, Sarita N wrote:

> I am a grad student at the university of nebraska lincoln.
> I have to build a tool in C that would caputure the system calls and
> signals between a user application adn the operating system.

I sure hope this isn't a thesis topic ... see strace(1).

Robert Love

2001-12-10 07:53:43

by Muli Ben-Yehuda

[permalink] [raw]
Subject: Re: KERNEL SYSTEM CALLS DEFINITIONS

On 9 Dec 2001, Robert Love wrote:

> On Sun, 2001-12-09 at 17:51, Sarita N wrote:
>
> > I am a grad student at the university of nebraska lincoln.
> > I have to build a tool in C that would caputure the system calls and
> > signals between a user application adn the operating system.
>
> I sure hope this isn't a thesis topic ... see strace(1).

see also syscalltrack (http://syscalltrack.sf.net) for a different
approach to the same task.
--
mulix

http://www.pointer.co.il/~mulix/
http://syscalltrack.sf.net/


2001-12-10 12:59:57

by Frank Cornelis

[permalink] [raw]
Subject: Re: KERNEL SYSTEM CALLS DEFINITIONS


> I have to build a tool in C that would caputure the system calls and
> signals between a user application and the operating system.

See 'man ptrace' for the ptrace system call which does it all for you.

Frank.

2001-12-10 13:34:07

by Vladimir Dergachev

[permalink] [raw]
Subject: Re: KERNEL SYSTEM CALLS DEFINITIONS



On 9 Dec 2001, Sarita N wrote:

>
> Hello,
> I am a grad student at the university of nebraska lincoln.
> I have to build a tool in C that would caputure the system calls and signals between a user application adn the operating system.
>
> I have started studying the Linux kernel. Can I know how to go about it. Where , in which Kernel file can I find the definitions of the various system calls - how have they been implemented in the kernel?
>
> How do I go about the project?

a) look at strace
b) look at memtrace (probably simpler than strace to understand)
http://volodya-project.sf.net - memtrace is a part of
"Preload" package.

Vladimir Dergachev

>
> Thanks and regards,
> Sarita Navuluru.
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>