projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
perf: Add non-exec mmap() tracking
[linux-2.6-block.git]
/
tools
/
perf
/
builtin-record.c
diff --git
a/tools/perf/builtin-record.c
b/tools/perf/builtin-record.c
index 5e5c6403a3158b01854649a924d23841466e71c9..39c7247bc54aa707b5fa4bef05b5e2bae0127d01 100644
(file)
--- a/
tools/perf/builtin-record.c
+++ b/
tools/perf/builtin-record.c
@@
-268,8
+268,10
@@
static void create_counter(int counter, int cpu)
if (inherit_stat)
attr->inherit_stat = 1;
- if (sample_address)
+ if (sample_address)
{
attr->sample_type |= PERF_SAMPLE_ADDR;
+ attr->mmap_data = track;
+ }
if (call_graph)
attr->sample_type |= PERF_SAMPLE_CALLCHAIN;