From: Benjamin King <benjaminking@web.de>
To: linux-perf-users@vger.kernel.org
Subject: uretprobe occasionally fires twice
Date: Tue, 8 Aug 2017 20:56:58 +0200 [thread overview]
Message-ID: <20170808185658.GA17828@localhost> (raw)
Hi,
I have placed a uprobe and a uretprobe on the same function in libc. When
perf record'ing a larger test where the function is called from multiple
threads, I can occasionally see the following sequence of events in a 'perf
script':
1) uretprobe fires
2) uprobe fires
3) uretprobe fires again
More specifically, I am tracing libc's realloc. Since I trace the size of
the memory in question, I think that the uretprobe in 1) is called at
function entry.
This only happens occasionally and I unfortunately I could not reproduce it
with a small testcase yet.
'perf script' prints two warnings:
* Processed 17216221 events and lost 2 chunks!
* 114 out of order events recorded.
Could this explain the duplicated output? Are there other known circumstances
where a uretprobe could be unreliable in some way?
Cheers,
Benjamin
reply other threads:[~2017-08-08 18:57 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20170808185658.GA17828@localhost \
--to=benjaminking@web.de \
--cc=linux-perf-users@vger.kernel.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 NNTP newsgroup(s).