lkml.org 
[lkml]   [2009]   [Jul]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch 2/5] 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>
---
Only tested on PowerPC, but I assume x86 has the same issue.

Index: linux.trees.git/tools/perf/builtin-record.c
===================================================================
--- linux.trees.git.orig/tools/perf/builtin-record.c 2009-07-13 12:33:49.000000000 +1000
+++ linux.trees.git/tools/perf/builtin-record.c 2009-07-13 13:25:00.000000000 +1000
@@ -313,6 +313,10 @@
if (*pbf == 'x') { /* vm_exec */
char *execname = strchr(bf, '/');

+ /* Catch VDSO */
+ if (execname == NULL)
+ execname = strstr(bf, "[vdso]");
+
if (execname == NULL)
continue;

--



\
 
 \ /
  Last update: 2009-07-16 13:01    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site