aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2009-07-16 15:44:29 +0200
committerIngo Molnar <mingo@elte.hu>2009-07-18 11:21:30 +0200
commit11b5f81e1b0ea0bc84fe32f0a27054e052b2bf84 (patch)
tree709942202e3f5f345a66b162cd627bc1bf97dad9 /tools/perf
parent413ee3b48ab582ffea33e7e140c7a2c5ea657e9a (diff)
downloadkernel_goldelico_gta04-11b5f81e1b0ea0bc84fe32f0a27054e052b2bf84.zip
kernel_goldelico_gta04-11b5f81e1b0ea0bc84fe32f0a27054e052b2bf84.tar.gz
kernel_goldelico_gta04-11b5f81e1b0ea0bc84fe32f0a27054e052b2bf84.tar.bz2
perf_counter: Synthesize VDSO mmap event
perf record synthesizes mmap events for the running process. Right now it just catches file mappings, but we can check for the vdso symbol and add that too. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> LKML-Reference: <20090716104817.517264409@samba.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf')
-rw-r--r--tools/perf/builtin-record.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c
index 4ef78a5..072aaf0 100644
--- a/tools/perf/builtin-record.c
+++ b/tools/perf/builtin-record.c
@@ -313,6 +313,10 @@ static void pid_synthesize_mmap_samples(pid_t pid)
if (*pbf == 'x') { /* vm_exec */
char *execname = strchr(bf, '/');
+ /* Catch VDSO */
+ if (execname == NULL)
+ execname = strstr(bf, "[vdso]");
+
if (execname == NULL)
continue;