[GSOC2015] Review on idea

Luca Clementi luca.clementi at gmail.com
Thu Mar 19 04:44:02 UTC 2015


On Wed, Mar 18, 2015 at 9:19 PM, jitendra kumar khasdev
<jkhasdev at gmail.com> wrote:
>
> On Thu, 19 Mar 2015, Dmitry V. Levin wrote:
> >
> > What kind of mapping are you talking about?
> > In your printf/write example, not every printf() leads to a write syscall,
> > some printf() calls lead to other syscalls, and other function calls may
> > end up with a write syscall.
> >
> >
> > --
> > ldav
> >
>
> Yes, this is the reason so that is why, want to perform one to many
> mapping between lib function and sys function.


You can also have the other way around several user space functions
which do not map to any system call (which is probably more common).

Anyhow you can get a very similar (in terms of seeing which user space
function triggered a specific system call) functionality using the -k
flag, which print the user space call stack with the functions names
before each system call.

Luca




More information about the Strace-devel mailing list