diff options
Diffstat (limited to 'tools/perf/util/bpf-event.h')
| -rw-r--r-- | tools/perf/util/bpf-event.h | 30 | 
1 files changed, 9 insertions, 21 deletions
diff --git a/tools/perf/util/bpf-event.h b/tools/perf/util/bpf-event.h index 04c33b3bfe28..81fdc88e6c1a 100644 --- a/tools/perf/util/bpf-event.h +++ b/tools/perf/util/bpf-event.h @@ -6,13 +6,14 @@  #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;  struct perf_sample; +struct perf_session;  struct record_opts;  struct evlist;  struct target; @@ -30,35 +31,22 @@ struct btf_node {  };  #ifdef HAVE_LIBBPF_SUPPORT -int machine__process_bpf_event(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 perf_evlist **evlist, +int machine__process_bpf(struct machine *machine, union perf_event *event, +			 struct perf_sample *sample); +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,  				    struct perf_env *env,  				    FILE *fp);  #else -static inline int machine__process_bpf_event(struct machine *machine __maybe_unused, -					     union perf_event *event __maybe_unused, -					     struct perf_sample *sample __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) +static inline int machine__process_bpf(struct machine *machine __maybe_unused, +				       union perf_event *event __maybe_unused, +				       struct perf_sample *sample __maybe_unused)  {  	return 0;  } -static inline int bpf_event__add_sb_event(struct perf_evlist **evlist __maybe_unused, +static inline int bpf_event__add_sb_event(struct evlist **evlist __maybe_unused,  					  struct perf_env *env __maybe_unused)  {  	return 0;  |