summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/stat.h
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@kernel.org>2020-09-24 14:44:51 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2020-09-28 13:55:48 +0200
commit7fedd9b84bf8288ccb7a88aadedffdc9221f31e6 (patch)
tree4f1ddd38c4b2aa528d49e5545be6d056fdb08428 /tools/perf/util/stat.h
parentperf vendor events: Update SkylakeX events to v1.21 (diff)
downloadlinux-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