diff options
author | Namhyung Kim <namhyung.kim@lge.com> | 2012-05-16 05:45:49 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-05-17 11:32:54 -0400 |
commit | d1cb9fce92c41454bd594fb0920575fc63301878 (patch) | |
tree | 02b1c6b97504b2ba3a2a8f3e33bbb651bb6e98e2 /tools/perf/builtin-test.c | |
parent | 879d77d0cbe20ad1d6099a1e16f03b72c0649828 (diff) |
perf target: Add uses_mmap field
If perf doesn't mmap on event (like perf stat), it should not create
per-task-per-cpu events. So just use a dummy cpu map to create a
per-task event for this case.
Signed-off-by: Namhyung Kim <namhyung.kim@lge.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1337161549-9870-3-git-send-email-namhyung.kim@lge.com
[ committer note: renamed .need_mmap to .uses_mmap ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-test.c')
-rw-r--r-- | tools/perf/builtin-test.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/builtin-test.c b/tools/perf/builtin-test.c index 9d9abbbe23be..4eaa665fd32b 100644 --- a/tools/perf/builtin-test.c +++ b/tools/perf/builtin-test.c | |||
@@ -1167,6 +1167,7 @@ static int test__PERF_RECORD(void) | |||
1167 | struct perf_record_opts opts = { | 1167 | struct perf_record_opts opts = { |
1168 | .target = { | 1168 | .target = { |
1169 | .uid = UINT_MAX, | 1169 | .uid = UINT_MAX, |
1170 | .uses_mmap = true, | ||
1170 | }, | 1171 | }, |
1171 | .no_delay = true, | 1172 | .no_delay = true, |
1172 | .freq = 10, | 1173 | .freq = 10, |