From: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
To: Ingo Molnar <mingo@elte.hu>
Cc: linux-kernel@vger.kernel.org, systemtap@sources.redhat.com,
"Frank Ch. Eigler" <fche@redhat.com>
Subject: Re: System call instrumentation
Date: Mon, 5 May 2008 07:30:57 -0400 [thread overview]
Message-ID: <20080505113057.GA28070@Krystal> (raw)
In-Reply-To: <20080505111029.GA9948@elte.hu>
* Ingo Molnar (mingo@elte.hu) wrote:
>
> * Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> wrote:
>
> > > hm, i'm not sure about this. I've implemented system call tracing in
> > > -rt [embedded in the latency tracer] and it only needed changes in
> > > entry.S, not in every system call site. Now, granted, that tracer
> > > was simpler than what LTTng tries to do, but do we _really_ need
> > > more complexity? A trace point that simply expresses:
> > >
> > > sys_call_event(int sysno, long param1, long param2, long param3,
> > > long param4, long param5, long param6);
> > >
> >
> > That would work for all system calls that doesn't have parameters like
> > "const char __user *filename".
>
> what's the problem with them? Do you want to follow those parameters?
>
> Ingo
Ideally, I'd like to have this kind of high-level information :
event name : kernel syscall
syscall name : open
arg1 (%s) : "somefile" <-----
arg2 (%d) : flags
arg3 (%d) : mode
However, "somefile" has to be read from userspace. With the protection
involved, it would cause a performance impact to read it a second time
rather than tracing the string once it's been copied to kernel-space.
Mathieu
--
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68
next prev parent reply other threads:[~2008-05-05 11:31 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-04 13:48 System call instrumentation Mathieu Desnoyers
2008-05-05 6:55 ` Ingo Molnar
2008-05-05 10:59 ` Mathieu Desnoyers
2008-05-05 11:10 ` Ingo Molnar
2008-05-05 11:30 ` Mathieu Desnoyers [this message]
2008-05-05 12:28 ` Ingo Molnar
2008-05-06 20:52 ` Masami Hiramatsu
2008-05-20 3:44 ` Mathieu Desnoyers
2008-05-20 14:18 ` Arjan van de Ven
2008-05-22 12:47 ` Mathieu Desnoyers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080505113057.GA28070@Krystal \
--to=mathieu.desnoyers@polymtl.ca \
--cc=fche@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=systemtap@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox