aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/evsel.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2011-01-11 21:08:18 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2011-01-22 16:56:29 -0500
commit9d04f1781772e11bd58806391555fc23ebb54377 (patch)
tree9b91c767bed360fcfd2ab6b90794cca784db279f /tools/perf/util/evsel.h
parentf08199d314458610d4ca52f8e86e0a4ec7a7bc54 (diff)
perf evsel: Allow specifying if the inherit bit should be set
As this is a per-cpu attribute, we can't set it up in advance and use it for all the calls. Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Cc: Tom Zanussi <tzanussi@gmail.com> LKML-Reference: <new-submission> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/evsel.h')
-rw-r--r--tools/perf/util/evsel.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/util/evsel.h b/tools/perf/util/evsel.h
index 0962b500cb6d..1594696bd127 100644
--- a/tools/perf/util/evsel.h
+++ b/tools/perf/util/evsel.h
@@ -46,11 +46,11 @@ void perf_evsel__free_fd(struct perf_evsel *evsel);
46void perf_evsel__close_fd(struct perf_evsel *evsel, int ncpus, int nthreads); 46void perf_evsel__close_fd(struct perf_evsel *evsel, int ncpus, int nthreads);
47 47
48int perf_evsel__open_per_cpu(struct perf_evsel *evsel, 48int perf_evsel__open_per_cpu(struct perf_evsel *evsel,
49 struct cpu_map *cpus, bool group); 49 struct cpu_map *cpus, bool group, bool inherit);
50int perf_evsel__open_per_thread(struct perf_evsel *evsel, 50int perf_evsel__open_per_thread(struct perf_evsel *evsel,
51 struct thread_map *threads, bool group); 51 struct thread_map *threads, bool group, bool inherit);
52int perf_evsel__open(struct perf_evsel *evsel, struct cpu_map *cpus, 52int perf_evsel__open(struct perf_evsel *evsel, struct cpu_map *cpus,
53 struct thread_map *threads, bool group); 53 struct thread_map *threads, bool group, bool inherit);
54 54
55#define perf_evsel__match(evsel, t, c) \ 55#define perf_evsel__match(evsel, t, c) \
56 (evsel->attr.type == PERF_TYPE_##t && \ 56 (evsel->attr.type == PERF_TYPE_##t && \