perf target: Add uses_mmap field
authorNamhyung Kim <namhyung.kim@lge.com>
Wed, 16 May 2012 09:45:49 +0000 (18:45 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 17 May 2012 15:32:54 +0000 (12:32 -0300)
commitd1cb9fce92c41454bd594fb0920575fc63301878
tree02b1c6b97504b2ba3a2a8f3e33bbb651bb6e98e2
parent879d77d0cbe20ad1d6099a1e16f03b72c0649828
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>
tools/perf/builtin-record.c
tools/perf/builtin-test.c
tools/perf/builtin-top.c
tools/perf/util/evlist.c
tools/perf/util/target.h