diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2018-02-02 09:27:25 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2018-02-15 07:54:53 -0500 |
commit | 9a831b3a32c5daf5d7cc672334d51930f78e4ea3 (patch) | |
tree | 1bd1fec3cacd4fb5ada0fb5a101b6ff3209abf59 | |
parent | 63878a53cedc3df31bd4ba8740a49fa0fc116ac6 (diff) |
perf evsel: Expose the perf_missing_features struct
As tools may need to adjust to missing features, as 'perf top' will, in
the next csets, to cope with a missing 'write_backward' feature.
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jin Yao <yao.jin@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@intel.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: https://lkml.kernel.org/n/tip-jelngl9q1ooaizvkcput9tic@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | tools/perf/util/evsel.c | 12 | ||||
-rw-r--r-- | tools/perf/util/evsel.h | 14 |
2 files changed, 15 insertions, 11 deletions
diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c index ff359c9ece2e..ef351688b797 100644 --- a/tools/perf/util/evsel.c +++ b/tools/perf/util/evsel.c | |||
@@ -41,17 +41,7 @@ | |||
41 | 41 | ||
42 | #include "sane_ctype.h" | 42 | #include "sane_ctype.h" |
43 | 43 | ||
44 | static struct { | 44 | struct perf_missing_features perf_missing_features; |
45 | bool sample_id_all; | ||
46 | bool exclude_guest; | ||
47 | bool mmap2; | ||
48 | bool cloexec; | ||
49 | bool clockid; | ||
50 | bool clockid_wrong; | ||
51 | bool lbr_flags; | ||
52 | bool write_backward; | ||
53 | bool group_read; | ||
54 | } perf_missing_features; | ||
55 | 45 | ||
56 | static clockid_t clockid; | 46 | static clockid_t clockid; |
57 | 47 | ||
diff --git a/tools/perf/util/evsel.h b/tools/perf/util/evsel.h index 846e41644525..a7487c6d1866 100644 --- a/tools/perf/util/evsel.h +++ b/tools/perf/util/evsel.h | |||
@@ -149,6 +149,20 @@ union u64_swap { | |||
149 | u32 val32[2]; | 149 | u32 val32[2]; |
150 | }; | 150 | }; |
151 | 151 | ||
152 | struct perf_missing_features { | ||
153 | bool sample_id_all; | ||
154 | bool exclude_guest; | ||
155 | bool mmap2; | ||
156 | bool cloexec; | ||
157 | bool clockid; | ||
158 | bool clockid_wrong; | ||
159 | bool lbr_flags; | ||
160 | bool write_backward; | ||
161 | bool group_read; | ||
162 | }; | ||
163 | |||
164 | extern struct perf_missing_features perf_missing_features; | ||
165 | |||
152 | struct cpu_map; | 166 | struct cpu_map; |
153 | struct target; | 167 | struct target; |
154 | struct thread_map; | 168 | struct thread_map; |