aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/perf/include/internal
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@kernel.org>2021-02-25 12:51:47 +0900
committerArnaldo Carvalho de Melo <acme@redhat.com>2021-03-06 16:54:31 -0300
commite2a99c9a9aa02ddc7c08d5089ef140965879f8f4 (patch)
tree0ce8617001e0b95f95bbcd64d0f81bbf5ef6e923 /tools/lib/perf/include/internal
parentperf stat: Fix wrong skipping for per-die aggregation (diff)
downloadlinux-dev-e2a99c9a9aa02ddc7c08d5089ef140965879f8f4.tar.xz
linux-dev-e2a99c9a9aa02ddc7c08d5089ef140965879f8f4.zip
libperf: Add perf_evlist__reset_id_hash()
Add the perf_evlist__reset_id_hash() function as an internal function so that it can be called by perf to reset the hash table. This is necessary for 'perf stat' to run the workload multiple times. Signed-off-by: Namhyung Kim <namhyung@kernel.org> Acked-by: Jiri Olsa <jolsa@redhat.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Ian Rogers <irogers@google.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: https://lore.kernel.org/r/20210225035148.778569-1-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/lib/perf/include/internal')
-rw-r--r--tools/lib/perf/include/internal/evlist.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/lib/perf/include/internal/evlist.h b/tools/lib/perf/include/internal/evlist.h
index 2d0fa02b036f..212c29063ad4 100644
--- a/tools/lib/perf/include/internal/evlist.h
+++ b/tools/lib/perf/include/internal/evlist.h
@@ -124,4 +124,6 @@ int perf_evlist__id_add_fd(struct perf_evlist *evlist,
struct perf_evsel *evsel,
int cpu, int thread, int fd);
+void perf_evlist__reset_id_hash(struct perf_evlist *evlist);
+
#endif /* __LIBPERF_INTERNAL_EVLIST_H */