diff options
| author | Jiri Olsa <[email protected]> | 2019-03-08 13:47:35 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2019-03-11 14:56:03 +0000 |
| commit | ec65def1045e4c7817b7f741a86dadae82877a93 (patch) | |
| tree | 00dd535975e20950a1fa9a348f9615010be72030 /tools/perf/scripts/python | |
| parent | perf vendor events amd: perf PMU events for AMD Family 17h (diff) | |
| download | kernel-ec65def1045e4c7817b7f741a86dadae82877a93.tar.gz kernel-ec65def1045e4c7817b7f741a86dadae82877a93.zip | |
perf data: Support having perf.data stored as a directory
The caller needs to set 'struct perf_data::is_dir flag and the path will
be treated as a directory.
The 'struct perf_data::file' is initialized and open as 'path/header'
file.
Add a check to the direcory interface functions to check the is_dir flag.
Signed-off-by: Jiri Olsa <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Alexey Budankov <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
[ Be consistent on how to signal failure, i.e. use -1 and let users check errno ]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
