summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/event.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2019-09-10 18:17:33 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2019-09-20 14:19:21 +0200
commitb251892d6ceafa3c8f8e6835a664e248766b1b3e (patch)
treea2e86ee0f7e3cddd5dbc105335a72a4ef1fe359b /tools/perf/util/event.h
parentperf event: Move perf_event__synthesize* to event.h (diff)
downloadlinux-b251892d6ceafa3c8f8e6835a664e248766b1b3e.tar.xz
linux-b251892d6ceafa3c8f8e6835a664e248766b1b3e.zip
perf stat: Move perf_stat_synthesize_config() to event.h
Together with the other synthsizers, and rename it to perf_event__synthesize_stat_events(). This allows us to stop including event.h in util/stat.h. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Link: https://lkml.kernel.org/n/tip-q5ebhrp44txboobs86htu5r9@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/event.h')
-rw-r--r--tools/perf/util/event.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/perf/util/event.h b/tools/perf/util/event.h
index 4e6d33c76d57..89a2404170a0 100644
--- a/tools/perf/util/event.h
+++ b/tools/perf/util/event.h
@@ -293,6 +293,11 @@ typedef int (*perf_event__handler_t)(struct perf_tool *tool,
struct perf_sample *sample,
struct machine *machine);
+int perf_event__synthesize_stat_events(struct perf_stat_config *config,
+ struct perf_tool *tool,
+ struct evlist *evlist,
+ perf_event__handler_t process,
+ bool attrs);
int perf_event__synthesize_attr(struct perf_tool *tool,
struct perf_event_attr *attr, u32 ids, u64 *id,
perf_event__handler_t process);