aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2009-07-16 09:44:29 -0400
committerIngo Molnar <mingo@elte.hu>2009-07-18 05:21:30 -0400
commit11b5f81e1b0ea0bc84fe32f0a27054e052b2bf84 (patch)
tree709942202e3f5f345a66b162cd627bc1bf97dad9 /tools
parent413ee3b48ab582ffea33e7e140c7a2c5ea657e9a (diff)
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')
-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 4ef78a5e6f32..072aaf0369f8 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)
313 if (*pbf == 'x') { /* vm_exec */ 313 if (*pbf == 'x') { /* vm_exec */
314 char *execname = strchr(bf, '/'); 314 char *execname = strchr(bf, '/');
315 315
316 /* Catch VDSO */
317 if (execname == NULL)
318 execname = strstr(bf, "[vdso]");
319
316 if (execname == NULL) 320 if (execname == NULL)
317 continue; 321 continue;
318 322