mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
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:
parent
7f7f8d0bea
commit
9782243353
6 changed files with 28 additions and 47 deletions
|
@ -162,9 +162,9 @@ int trace_parse_common_pid(struct pevent *pevent, void *data)
|
|||
return pevent_data_pid(pevent, &record);
|
||||
}
|
||||
|
||||
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)
|
||||
{
|
||||
return pevent_read_number(pevent, ptr, size);
|
||||
return pevent_read_number(event->pevent, ptr, size);
|
||||
}
|
||||
|
||||
void event_format__print(struct event_format *event,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue