From: Ingo Molnar <mingo@elte.hu>
To: Jason Baron <jbaron@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>,
linux-kernel@vger.kernel.org, fweisbec@gmail.com,
laijs@cn.fujitsu.com, rostedt@goodmis.org, peterz@infradead.org,
mathieu.desnoyers@polymtl.ca, jiayingz@google.com,
mbligh@google.com, roland@redhat.com, fche@redhat.com
Subject: Re: [PATCH 2/2] convert to syscall tracepoints
Date: Tue, 9 Jun 2009 00:00:13 +0200 [thread overview]
Message-ID: <20090608220013.GC22049@elte.hu> (raw)
In-Reply-To: <20090608213833.GD3181@redhat.com>
* Jason Baron <jbaron@redhat.com> wrote:
> Yes, this can easily be done....but that wasn't the problem I was
> interested in solving. I wanted a per syscall tracepoint site. I
> thought I had been making that clear all along...
We can do that, but _not in the syscall_.
There's absolutely nothing wrong with having an array of
tracepoints/callbacks that is being called by the TIF_FTRACE code.
We already have per syscall attributes - that can include a callback
too.
> [...] Please notice that the implementation I've proposed obtains
> the syscall number, and then jumps to the appropriate tracepoint
> and then exits. Its quite efficient. In fact, I've enabled all of
> the syscalls using my proposed method and running tbench I'm able
> to get more throughput then using the current syscall method. I've
> also done 'getpid()' loops and seen no performance difference
> between the approaches. I'm happy to run any other benchmarks...
If you cannot see a performance difference in getpid() loop that's
possibly because glibc caches getpid() results ...
Try getppid().
Anyway - bloating every syscall with a tracepoint check is out of
question and unnecessary. We already have the TIF_ flag based
machinery to call back on syscalls - and what we need is the proper
type/field info extracted and /debug/tracing/syscalls/* entries
created.
Ingo
next prev parent reply other threads:[~2009-06-08 22:00 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-05 18:07 [PATCH 0/2] convert ftrace syscalls to TRACE_EVENT Jason Baron
2009-06-05 18:08 ` [PATCH 1/2] allow TP_printk() to have no args Jason Baron
2009-06-05 18:08 ` [PATCH 2/2] convert to syscall tracepoints Jason Baron
2009-06-07 13:29 ` Ingo Molnar
2009-06-08 20:24 ` Jason Baron
2009-06-08 20:40 ` Ingo Molnar
2009-06-08 21:11 ` Jason Baron
2009-06-08 21:25 ` Ingo Molnar
2009-06-08 21:38 ` Jason Baron
2009-06-08 22:00 ` Ingo Molnar [this message]
2009-06-08 23:02 ` Frederic Weisbecker
2009-06-09 14:13 ` Jason Baron
2009-06-09 18:53 ` Frederic Weisbecker
2009-06-09 19:17 ` Jason Baron
2009-06-07 19:19 ` 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=20090608220013.GC22049@elte.hu \
--to=mingo@elte.hu \
--cc=fche@redhat.com \
--cc=fweisbec@gmail.com \
--cc=hpa@zytor.com \
--cc=jbaron@redhat.com \
--cc=jiayingz@google.com \
--cc=laijs@cn.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mathieu.desnoyers@polymtl.ca \
--cc=mbligh@google.com \
--cc=peterz@infradead.org \
--cc=roland@redhat.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox