From: Jason Baron <jbaron@redhat.com>
To: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>, Josh Stone <jistone@redhat.com>,
linux-kernel@vger.kernel.org, Li Zefan <lizf@cn.fujitsu.com>,
Steven Rostedt <rostedt@goodmis.org>,
Peter Zijlstra <peterz@infradead.org>,
Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>,
Jiaying Zhang <jiayingz@google.com>,
Martin Bligh <mbligh@google.com>,
Lai Jiangshan <laijs@cn.fujitsu.com>,
Paul Mundt <lethal@linux-sh.org>
Subject: Re: [PATCH v4 0/4] tracing: tweaks for generic syscall events
Date: Tue, 25 Aug 2009 10:41:22 -0400 [thread overview]
Message-ID: <20090825144122.GC2656@redhat.com> (raw)
In-Reply-To: <20090825134203.GC6114@nowhere>
On Tue, Aug 25, 2009 at 03:42:08PM +0200, Frederic Weisbecker wrote:
> > * Frederic Weisbecker <fweisbec@gmail.com> wrote:
> >
> > > On Mon, Aug 24, 2009 at 02:43:10PM -0700, Josh Stone wrote:
> > > > This patch series moves the callbacks for the syscall tracepoints to the
> > > > definition site, and adds generic TRACE_EVENTs which capture all syscall
> > > > arguments.
> > > >
> > > > New in v3:
> > > > - Give the thread flag a more generic name: TIF_SYSCALL_TRACEPOINT.
> > > > - Move the regfuncs to arch-specific files, per Jason's suggestion.
> > > > - Change _WITH_CALLBACK to just _FN, per Ingo's suggestion.
> > > >
> > > > New in v4:
> > > > - Give the config flag a more generic name: HAVE_SYSCALL_TRACEPOINTS.
> > > > - Undo the arch reorg of the regfuncs, but conditionalize on above.
> > > >
> > > >
> > > > Sample trace output:
> > > > sendmail-974 [000] 55665.464492: sys_enter: NR 14 (1, 7fff60f3af40, 7fff60f3aec0, 8, 0, 7fb1b6a05161)
> > > >
> > > > sendmail-974 [000] 55665.464496: sys_exit: NR 14 = 0
> > > >
> > > > sendmail-974 [000] 55665.464507: sys_enter: NR 23 (5, 7fff60f3b0d0, 0, 0, 7fff60f3b150, 7fff60f3ef01)
> > > >
> > > > sshd-978 [000] 55667.845359: sys_exit: NR 23 = 1
> > > >
> > > > sshd-978 [000] 55667.845373: sys_enter: NR 14 (0, 7fffc645ce90, 7fffc645cf10, 8, 0, 101010101010101)
> > > >
> > > > sshd-978 [000] 55667.845381: sys_exit: NR 14 = 0
> > > >
> > > > sshd-978 [000] 55667.845383: sys_enter: NR 14 (2, 7fffc645cf10, 0, 8, 0, 101010101010101)
> > > >
> > > > sshd-978 [000] 55667.845386: sys_exit: NR 14 = 0
> > > >
> > > > sshd-978 [000] 55667.845395: sys_enter: NR 0 (3, 7fffc6458f80, 4000, 1, 0, 0)
> > > >
> > > > sshd-978 [000] 55667.845478: sys_exit: NR 0 = 48
> > > >
> > > >
> > > > Signed-off-by: Josh Stone <jistone@redhat.com>
> > > > Cc: Jason Baron <jbaron@redhat.com>
> > > > Cc: Frederic Weisbecker <fweisbec@gmail.com>
> > > > Cc: Ingo Molnar <mingo@elte.hu>
> > > > Cc: Li Zefan <lizf@cn.fujitsu.com>
> > > > Cc: Steven Rostedt <rostedt@goodmis.org>
> > > > Cc: Peter Zijlstra <peterz@infradead.org>
> > > > Cc: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
> > > > Cc: Jiaying Zhang <jiayingz@google.com>
> > > > Cc: Martin Bligh <mbligh@google.com>
> > > > Cc: Lai Jiangshan <laijs@cn.fujitsu.com>
> > > > Cc: Paul Mundt <lethal@linux-sh.org>
> > >
> > >
> > > Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
> >
> > How about compat syscalls? If we touch this code we better cover
> > them as well.
> >
> > Ingo
>
>
> They should be covered by these generic tracepoint I guess.
> The remaining bits that are necessary to cover individual compat syscall
> tracepoints are the missing DEFINE_SYSCALL() uses in fs/compat.c
>
right, the compat layer as well as the core kernel need additional
DEFINE_SYSCALL() macros to catch all the the syscalls. However, I think
the compat layer is a bit more involved in that it often makes use of
the core kernel syscalls, but the mapping between syscall number is
different. So, we need another array, or to augment the existing one, to
cover the compat syscalls. We also need to detect 32-bit processes in
the syscall entry path to determine which array to use, and we need to
grab the arguments differently. So there is a bunch of work here.
Also, we have the question of whether we need separate entries in the
events/syscalls directly for 32-bit process syscalls that call the same
64-bit syscall interfaces. Should they be parsed as 64-bit argument
values event thought they are 32-bit? To reduce complexity, I would say
the 32-bit syscall entries should be the same as the 64-bit ones. That
said there will be a bunch of new "compat_sys*" etc. entries.
> Is someone willing to cover them?
>
I can take a stab at it.
thanks,
-Jason
next prev parent reply other threads:[~2009-08-25 14:42 UTC|newest]
Thread overview: 70+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-18 7:23 [PATCH] tracing: Move tracepoint callbacks into DEFINE Josh Stone
2009-08-18 14:19 ` Jason Baron
2009-08-18 22:11 ` Josh Stone
2009-08-18 22:25 ` [PATCH] tracing: Create generic syscall TRACE_EVENTs Josh Stone
2009-08-19 1:32 ` Li Zefan
2009-08-19 3:05 ` Josh Stone
2009-08-19 13:05 ` Ingo Molnar
2009-08-19 13:50 ` Mathieu Desnoyers
2009-08-19 16:16 ` Jason Baron
2009-08-19 17:43 ` Frederic Weisbecker
2009-08-19 16:13 ` [PATCH] tracing: Move tracepoint callbacks into DEFINE Jason Baron
2009-08-20 17:25 ` Josh Stone
2009-08-20 19:09 ` [PATCH v2 1/2] " Josh Stone
2009-08-20 19:09 ` [PATCH v2 2/2] tracing: Create generic syscall TRACE_EVENTs Josh Stone
2009-08-21 17:57 ` Jason Baron
2009-08-21 19:37 ` Josh Stone
2009-08-21 20:08 ` Jason Baron
2009-08-21 14:47 ` [PATCH v2 1/2] tracing: Move tracepoint callbacks into DEFINE Ingo Molnar
2009-08-21 19:34 ` Josh Stone
2009-08-21 17:52 ` Jason Baron
2009-08-21 19:34 ` Josh Stone
2009-08-21 20:06 ` Jason Baron
2009-08-23 20:29 ` Frederic Weisbecker
2009-08-23 20:15 ` Frederic Weisbecker
2009-08-22 4:58 ` [PATCH v3 0/4] tracing: tweaks for generic syscall events Josh Stone
2009-08-22 4:58 ` [PATCH v3 1/4] tracing: Rename TIF_SYSCALL_FTRACE->_TRACEPOINT Josh Stone
2009-08-22 4:58 ` [PATCH v3 2/4] tracing: Make syscall_(un)regfunc arch-specific Josh Stone
2009-08-22 4:58 ` [PATCH v3 3/4] tracing: Move tracepoint callbacks into DEFINE Josh Stone
2009-08-22 4:58 ` [PATCH v3 4/4] tracing: Create generic syscall TRACE_EVENTs Josh Stone
2009-08-23 21:14 ` [PATCH v3 2/4] tracing: Make syscall_(un)regfunc arch-specific Frederic Weisbecker
2009-08-24 1:40 ` Paul Mundt
2009-08-24 8:41 ` Ingo Molnar
2009-08-24 8:59 ` Paul Mundt
2009-08-24 9:56 ` Ingo Molnar
2009-08-24 10:32 ` Paul Mundt
2009-08-24 11:00 ` Ingo Molnar
2009-08-24 11:15 ` Paul Mundt
2009-08-24 11:32 ` Ingo Molnar
2009-08-24 11:52 ` Ingo Molnar
2009-08-24 12:14 ` Peter Zijlstra
2009-08-24 11:01 ` Ingo Molnar
2009-08-24 11:02 ` Paul Mundt
2009-08-24 19:31 ` Josh Stone
2009-08-24 19:58 ` Frederic Weisbecker
2009-08-24 20:00 ` Josh Stone
2009-08-24 20:12 ` Frederic Weisbecker
2009-08-23 21:16 ` [PATCH v3 1/4] tracing: Rename TIF_SYSCALL_FTRACE->_TRACEPOINT Frederic Weisbecker
2009-08-24 8:42 ` Ingo Molnar
2009-08-24 11:11 ` Frederic Weisbecker
2009-08-24 11:24 ` Ingo Molnar
2009-08-24 11:29 ` Paul Mundt
2009-08-24 11:36 ` Ingo Molnar
2009-08-24 21:43 ` [PATCH v4 0/4] tracing: tweaks for generic syscall events Josh Stone
2009-08-24 21:43 ` [PATCH v4 1/4] tracing: Rename FTRACE_SYSCALLS for tracepoints Josh Stone
2009-08-24 21:43 ` [PATCH v4 2/4] tracing: Make syscall tracepoints conditional Josh Stone
2009-08-24 21:43 ` [PATCH v4 3/4] tracing: Move tracepoint callbacks into DEFINE Josh Stone
2009-08-24 21:43 ` [PATCH v4 4/4] tracing: Create generic syscall TRACE_EVENTs Josh Stone
2009-08-26 7:22 ` [tip:tracing/core] " tip-bot for Josh Stone
2009-08-26 7:22 ` [tip:tracing/core] tracing: Move tracepoint callbacks from declaration to definition tip-bot for Josh Stone
2009-08-27 22:50 ` [PATCH] tracing: Fix double CPP substitution in TRACE_EVENT_FN Frederic Weisbecker
2009-08-28 0:38 ` Josh Stone
2009-08-28 12:29 ` [tip:tracing/core] " tip-bot for Frederic Weisbecker
2009-08-26 7:21 ` [tip:tracing/core] tracing: Make syscall tracepoints conditional tip-bot for Josh Stone
2009-08-26 7:21 ` [tip:tracing/core] tracing: Rename FTRACE_SYSCALLS for tracepoints tip-bot for Josh Stone
2009-08-24 23:05 ` [PATCH v4 0/4] tracing: tweaks for generic syscall events Frederic Weisbecker
2009-08-25 10:28 ` Ingo Molnar
2009-08-25 13:42 ` Frederic Weisbecker
2009-08-25 14:41 ` Jason Baron [this message]
2009-08-25 21:08 ` Frederic Weisbecker
2009-08-25 21:44 ` Frederic Weisbecker
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=20090825144122.GC2656@redhat.com \
--to=jbaron@redhat.com \
--cc=fweisbec@gmail.com \
--cc=jiayingz@google.com \
--cc=jistone@redhat.com \
--cc=laijs@cn.fujitsu.com \
--cc=lethal@linux-sh.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lizf@cn.fujitsu.com \
--cc=mathieu.desnoyers@polymtl.ca \
--cc=mbligh@google.com \
--cc=mingo@elte.hu \
--cc=peterz@infradead.org \
--cc=rostedt@goodmis.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.