perf tools: Move event synthesizing routines to separate header
Those are the only routines using the perf_event__handler_t typedef and are all related, so move to a separate header to reduce the header dependency tree, lots of places were getting event.h and even stdio.h, limits.h indirectly, so fix those as well. 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-yvx9u1mf7baq6cu1abfhbqgs@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
@@ -6,9 +6,9 @@
|
||||
#include <linux/rbtree.h>
|
||||
#include <pthread.h>
|
||||
#include <api/fd/array.h>
|
||||
#include "event.h"
|
||||
#include <stdio.h>
|
||||
|
||||
struct bpf_prog_info;
|
||||
struct machine;
|
||||
union perf_event;
|
||||
struct perf_env;
|
||||
@@ -33,11 +33,6 @@ struct btf_node {
|
||||
#ifdef HAVE_LIBBPF_SUPPORT
|
||||
int machine__process_bpf(struct machine *machine, union perf_event *event,
|
||||
struct perf_sample *sample);
|
||||
|
||||
int perf_event__synthesize_bpf_events(struct perf_session *session,
|
||||
perf_event__handler_t process,
|
||||
struct machine *machine,
|
||||
struct record_opts *opts);
|
||||
int bpf_event__add_sb_event(struct evlist **evlist,
|
||||
struct perf_env *env);
|
||||
void bpf_event__print_bpf_prog_info(struct bpf_prog_info *info,
|
||||
@@ -51,14 +46,6 @@ static inline int machine__process_bpf(struct machine *machine __maybe_unused,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline int perf_event__synthesize_bpf_events(struct perf_session *session __maybe_unused,
|
||||
perf_event__handler_t process __maybe_unused,
|
||||
struct machine *machine __maybe_unused,
|
||||
struct record_opts *opts __maybe_unused)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline int bpf_event__add_sb_event(struct evlist **evlist __maybe_unused,
|
||||
struct perf_env *env __maybe_unused)
|
||||
{
|
||||
|
Reference in New Issue
Block a user