diff options
author | Namhyung Kim <namhyung@kernel.org> | 2020-09-24 14:44:51 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2020-09-28 13:55:48 +0200 |
commit | 7fedd9b84bf8288ccb7a88aadedffdc9221f31e6 (patch) | |
tree | 4f1ddd38c4b2aa528d49e5545be6d056fdb08428 /tools/perf/util/stat.h | |
parent | perf vendor events: Update SkylakeX events to v1.21 (diff) | |
download | linux-7fedd9b84bf8288ccb7a88aadedffdc9221f31e6.tar.xz linux-7fedd9b84bf8288ccb7a88aadedffdc9221f31e6.zip |
perf evsel: Add evsel__clone() function
The evsel__clone() is to create an exactly same evsel from same
attributes. The function assumes the given evsel is not configured
yet so it cares fields set during event parsing. Those fields are now
moved together as Jiri suggested. Note that metric events will be
handled by later patch.
It will be used by perf stat to generate separate events for each
cgroup.
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lore.kernel.org/lkml/20200924124455.336326-2-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/stat.h')
0 files changed, 0 insertions, 0 deletions