mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-24 19:12:14 +00:00
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:
@@ -11,14 +11,13 @@
|
||||
#include <errno.h>
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
#include <stdio.h> // FILE
|
||||
#include <linux/list.h>
|
||||
#include <linux/perf_event.h>
|
||||
#include <linux/types.h>
|
||||
#include <asm/bitsperlong.h>
|
||||
#include <asm/barrier.h>
|
||||
|
||||
#include "event.h"
|
||||
|
||||
union perf_event;
|
||||
struct perf_session;
|
||||
struct evlist;
|
||||
@@ -27,6 +26,7 @@ struct perf_mmap;
|
||||
struct perf_sample;
|
||||
struct option;
|
||||
struct record_opts;
|
||||
struct perf_record_auxtrace_error;
|
||||
struct perf_record_auxtrace_info;
|
||||
struct events_stats;
|
||||
|
||||
@@ -525,10 +525,6 @@ void auxtrace_synth_error(struct perf_record_auxtrace_error *auxtrace_error, int
|
||||
int code, int cpu, pid_t pid, pid_t tid, u64 ip,
|
||||
const char *msg, u64 timestamp);
|
||||
|
||||
int perf_event__synthesize_auxtrace_info(struct auxtrace_record *itr,
|
||||
struct perf_tool *tool,
|
||||
struct perf_session *session,
|
||||
perf_event__handler_t process);
|
||||
int perf_event__process_auxtrace_info(struct perf_session *session,
|
||||
union perf_event *event);
|
||||
s64 perf_event__process_auxtrace(struct perf_session *session,
|
||||
@@ -605,15 +601,6 @@ void auxtrace_record__free(struct auxtrace_record *itr __maybe_unused)
|
||||
{
|
||||
}
|
||||
|
||||
static inline int
|
||||
perf_event__synthesize_auxtrace_info(struct auxtrace_record *itr __maybe_unused,
|
||||
struct perf_tool *tool __maybe_unused,
|
||||
struct perf_session *session __maybe_unused,
|
||||
perf_event__handler_t process __maybe_unused)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
static inline
|
||||
int auxtrace_record__options(struct auxtrace_record *itr __maybe_unused,
|
||||
struct evlist *evlist __maybe_unused,
|
||||
|
||||
Reference in New Issue
Block a user