diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-07-28 23:33:20 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-07-28 23:33:20 +0200 |
commit | 7c48dcfd32b45b69aa8d5e81108fff8c7a2272ed (patch) | |
tree | f4f810f369bbf4c0002f310014d287b99cc50448 /tools/perf/util/evsel.h | |
parent | Merge tag 'perf-core-for-mingo-20160725' of git://git.kernel.org/pub/scm/linu... (diff) | |
download | linux-7c48dcfd32b45b69aa8d5e81108fff8c7a2272ed.tar.xz linux-7c48dcfd32b45b69aa8d5e81108fff8c7a2272ed.zip |
perf evsel: Introduce constructor for cycles event
That is the default used when no events is specified in tools, separate
it so that simpler tools that need no evlist can use it directly.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-67mwuthscwroz88x9pswcqyv@git.kernel.org
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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/evsel.h b/tools/perf/util/evsel.h index 8a4a6c9f1480..4d44129e050b 100644 --- a/tools/perf/util/evsel.h +++ b/tools/perf/util/evsel.h @@ -175,6 +175,8 @@ static inline struct perf_evsel *perf_evsel__newtp(const char *sys, const char * return perf_evsel__newtp_idx(sys, name, 0); } +struct perf_evsel *perf_evsel__new_cycles(void); + struct event_format *event_format__new(const char *sys, const char *name); void perf_evsel__init(struct perf_evsel *evsel, |