diff options
Diffstat (limited to 'tools/perf/util/trace-event.h')
| -rw-r--r-- | tools/perf/util/trace-event.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tools/perf/util/trace-event.h b/tools/perf/util/trace-event.h index 8fef1d6687b7..a55fd37ffea1 100644 --- a/tools/perf/util/trace-event.h +++ b/tools/perf/util/trace-event.h | |||
| @@ -9,7 +9,6 @@ struct machine; | |||
| 9 | struct perf_sample; | 9 | struct perf_sample; |
| 10 | union perf_event; | 10 | union perf_event; |
| 11 | struct perf_tool; | 11 | struct perf_tool; |
| 12 | struct thread; | ||
| 13 | 12 | ||
| 14 | extern int header_page_size_size; | 13 | extern int header_page_size_size; |
| 15 | extern int header_page_ts_size; | 14 | extern int header_page_ts_size; |
| @@ -32,6 +31,8 @@ int bigendian(void); | |||
| 32 | 31 | ||
| 33 | struct pevent *read_trace_init(int file_bigendian, int host_bigendian); | 32 | struct pevent *read_trace_init(int file_bigendian, int host_bigendian); |
| 34 | void print_trace_event(struct pevent *pevent, int cpu, void *data, int size); | 33 | void print_trace_event(struct pevent *pevent, int cpu, void *data, int size); |
| 34 | void event_format__print(struct event_format *event, | ||
| 35 | int cpu, void *data, int size); | ||
| 35 | 36 | ||
| 36 | void print_event(struct pevent *pevent, int cpu, void *data, int size, | 37 | void print_event(struct pevent *pevent, int cpu, void *data, int size, |
| 37 | unsigned long long nsecs, char *comm); | 38 | unsigned long long nsecs, char *comm); |
| @@ -56,7 +57,7 @@ int trace_parse_common_pid(struct pevent *pevent, void *data); | |||
| 56 | 57 | ||
| 57 | struct event_format *trace_find_next_event(struct pevent *pevent, | 58 | struct event_format *trace_find_next_event(struct pevent *pevent, |
| 58 | struct event_format *event); | 59 | struct event_format *event); |
| 59 | unsigned long long read_size(struct pevent *pevent, void *ptr, int size); | 60 | unsigned long long read_size(struct event_format *event, void *ptr, int size); |
| 60 | unsigned long long eval_flag(const char *flag); | 61 | unsigned long long eval_flag(const char *flag); |
| 61 | 62 | ||
| 62 | struct pevent_record *trace_read_data(struct pevent *pevent, int cpu); | 63 | struct pevent_record *trace_read_data(struct pevent *pevent, int cpu); |
| @@ -74,16 +75,19 @@ struct tracing_data *tracing_data_get(struct list_head *pattrs, | |||
| 74 | void tracing_data_put(struct tracing_data *tdata); | 75 | void tracing_data_put(struct tracing_data *tdata); |
| 75 | 76 | ||
| 76 | 77 | ||
| 78 | struct addr_location; | ||
| 79 | |||
| 80 | struct perf_session; | ||
| 81 | |||
| 77 | struct scripting_ops { | 82 | struct scripting_ops { |
| 78 | const char *name; | 83 | const char *name; |
| 79 | int (*start_script) (const char *script, int argc, const char **argv); | 84 | int (*start_script) (const char *script, int argc, const char **argv); |
| 80 | int (*stop_script) (void); | 85 | int (*stop_script) (void); |
| 81 | void (*process_event) (union perf_event *event, | 86 | void (*process_event) (union perf_event *event, |
| 82 | struct pevent *pevent, | ||
| 83 | struct perf_sample *sample, | 87 | struct perf_sample *sample, |
| 84 | struct perf_evsel *evsel, | 88 | struct perf_evsel *evsel, |
| 85 | struct machine *machine, | 89 | struct machine *machine, |
| 86 | struct thread *thread); | 90 | struct addr_location *al); |
| 87 | int (*generate_script) (struct pevent *pevent, const char *outfile); | 91 | int (*generate_script) (struct pevent *pevent, const char *outfile); |
| 88 | }; | 92 | }; |
| 89 | 93 | ||
