perf script: Stop using pevent directly
We can get all that is needed using just event_format, that is available via evsel->tp_format now. Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Namhyung Kim <namhyung@gmail.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/n/tip-2hsr1686epa9f0vx4yg7z2zj@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
@@ -58,7 +58,7 @@ int trace_parse_common_pid(struct pevent *pevent, void *data);
|
||||
|
||||
struct event_format *trace_find_next_event(struct pevent *pevent,
|
||||
struct event_format *event);
|
||||
unsigned long long read_size(struct pevent *pevent, void *ptr, int size);
|
||||
unsigned long long read_size(struct event_format *event, void *ptr, int size);
|
||||
unsigned long long eval_flag(const char *flag);
|
||||
|
||||
struct pevent_record *trace_read_data(struct pevent *pevent, int cpu);
|
||||
@@ -81,7 +81,6 @@ struct scripting_ops {
|
||||
int (*start_script) (const char *script, int argc, const char **argv);
|
||||
int (*stop_script) (void);
|
||||
void (*process_event) (union perf_event *event,
|
||||
struct pevent *pevent,
|
||||
struct perf_sample *sample,
|
||||
struct perf_evsel *evsel,
|
||||
struct machine *machine,
|
||||
|
Reference in New Issue
Block a user