[PATCH 0/5] perf session: Add reader object
From: Jiri Olsa
Date: Wed Dec 26 2018 - 08:51:38 EST
hi,
this patchset adds reader object to interface event
processing for any data. It's defined as:
struct reader {
int fd;
u64 data_size;
u64 data_offset;
};
Now we can simply define reader object for arbitrary file
data portion and pass it to reader__process_events function
to process its data.
It's preparation for multiple file storage under perf.data
directory.
Available also in:
git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
perf/fixes
thanks,
jirka
---
Jiri Olsa (5):
perf session: Get rid of file_size variable
perf session: Add reader object
perf session: Add data_size to reader object
perf session: Add data_offset to reader object
perf session: Add reader__process_events function
tools/perf/util/session.c | 73 +++++++++++++++++++++++++++++++++++++++++++++++--------------------------
1 file changed, 47 insertions(+), 26 deletions(-)