perf event: Move perf_event__synthesize* to event.h
A message that is not in the archive (sent off-list or not yet received): [email protected]
The following commit has been merged into the perf/urgent branch of tip:
Commit-ID: 278306163882a3557fb2c69fd2cc632a2f9ef601 Gitweb: https://git.kernel.org/tip/278306163882a3557fb2c69fd2cc632a2f9ef601 Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Tue, 10 Sep 2019 16:42:52 +01:00 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitterDate: Fri, 20 Sep 2019 09:19:21 -03:00
perf event: Move perf_event__synthesize* to event.h
Where is the perf_event__handler_t typedef they need, which was the only reason for header.h to be including event.h, untangle that.
Cc Adrian Hunter <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/perf/util/event.h | 36 +++++++++++++++++++++++++++++++++- tools/perf/util/header.h | 42 ++------------------------------------- 2 files changed, 39 insertions(+), 39 deletions(-)
tools/perf/util/event.h +36 -0
@@ -279,6 +279,9 @@ enum {void perf_event__print_totals (void ); +struct evlist ; +struct evsel ; +struct perf_session ;struct perf_tool ;struct perf_thread_map ;struct perf_cpu_map ;
@@ -290,6 +293,39 @@ typedef int (*perf_event__handler_t)(struct perf_tool *tool,struct perf_sample *sample, struct machine *machine); +int perf_event__synthesize_attr (struct perf_tool *tool, +struct perf_event_attr *attr,u32 ids,u64 *id, +perf_event__handler_t process); +int perf_event__synthesize_attrs (struct perf_tool *tool, +struct evlist *evlist, +perf_event__handler_t process); +int perf_event__synthesize_build_id (struct perf_tool *tool, +struct dso *pos,u16 misc, +perf_event__handler_t process, +struct machine *machine); +int perf_event__synthesize_extra_attr (struct perf_tool *tool, +struct evlist *evsel_list, +perf_event__handler_t process, +bool is_pipe); +int perf_event__synthesize_event_update_cpus (struct perf_tool *tool, +struct evsel *evsel, +perf_event__handler_t process); +int perf_event__synthesize_event_update_name (struct perf_tool *tool, +struct evsel *evsel, +perf_event__handler_t process); +int perf_event__synthesize_event_update_scale (struct perf_tool *tool, +struct evsel *evsel, +perf_event__handler_t process); +int perf_event__synthesize_event_update_unit (struct perf_tool *tool, +struct evsel *evsel, +perf_event__handler_t process); +int perf_event__synthesize_features (struct perf_tool *tool, +struct perf_session *session, +struct evlist *evlist, +perf_event__handler_t process); +int perf_event__synthesize_tracing_data (struct perf_tool *tool, +int fd,struct evlist *evlist, +perf_event__handler_t process); int perf_event__synthesize_thread_map(struct perf_tool *tool, struct perf_thread_map *threads, perf_event__handler_t process,
tools/perf/util/header.h +3 -39
73 lines not on this page · raw message