From: Stan Cox <scox@redhat.com>
To: systemtap@sourceware.org
Subject: Re: new static user probe types
Date: Wed, 15 Jul 2009 16:19:00 -0000 [thread overview]
Message-ID: <4A5E0195.5080803@redhat.com> (raw)
In-Reply-To: <4A453D09.60600@redhat.com>
The performance for the respective static probe types, for a test
program that invokes a static user probe in a loop 1,000,000 times, is:
kprobe 1.61user 4.73system
utrace 1.38user 22.02system
uprobe 1.24user 11.30system
It ended up that the guard statements in the probes were too permissive;
fixing this and doing some guard statement performance tweaks yields:
kprobe 1.65user 3.78system
utrace 1.19user 6.03system
uprobe 1.24user 11.30system
The guard statements this experiments is using look like:
kprobe:
if ((task_tid(task_current())) != (_utrace_syscall_arg(1))) next #
current task?
if ((pointer_arg(1)) != (_stp_probe_name_test)) { # probe name ptr
differs from saved?
if ((user_int(pointer_arg(1))) != (1953719668)) next # check first word
of probe name
if ((user_string(pointer_arg(1))) != ("test")) next # check string
if all else fails
}
(_stp_probe_name_test) = (pointer_arg(1)) # remember saved
probe name ptr
utrace:
if ((_utrace_syscall_nr()) != (48813)) next # is this the
fake sdt "syscall"
if ((pointer_arg(1)... #
as above
Running oprofile:
kprobe old 27% strlcpy 11% int3
exp 13% __ticket_spin_lock 10% int3
utrace old 25% search_extable 18% page_fault 16% strlcpy
exp 43% start_callback 5% system_call
next prev parent reply other threads:[~2009-07-15 16:19 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-26 21:26 Stan Cox
2009-07-15 16:19 ` Stan Cox [this message]
2009-07-15 18:39 ` Josh Stone
2009-07-15 20:47 ` Stan Cox
2009-07-15 21:57 ` Josh Stone
2009-07-16 13:44 ` Stan Cox
2009-07-20 18:34 ` Stan Cox
2009-07-22 10:42 ` Mark Wielaard
2009-07-22 14:39 ` Frank Ch. Eigler
2009-07-22 17:10 ` Mark Wielaard
2009-07-29 15:44 ` Stan Cox
2009-07-29 15:51 ` Stan Cox
2009-07-23 3:07 ` Roland McGrath
2009-07-23 10:28 ` Mark Wielaard
2009-07-23 14:40 ` Frank Ch. Eigler
2009-07-23 19:33 ` Roland McGrath
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=4A5E0195.5080803@redhat.com \
--to=scox@redhat.com \
--cc=systemtap@sourceware.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).