commit | 2d4f27999b8877409f326682fd8cc40c52f47cea | [log] [tgz] |
---|---|---|
author | Jiri Olsa <[email protected]> | Thu Feb 21 10:41:30 2019 +0100 |
committer | Arnaldo Carvalho de Melo <[email protected]> | Fri Feb 22 16:52:07 2019 -0300 |
tree | 33c3e619718d0c75bee39957f6ca4ed70ac59c0d | |
parent | 45112e89a8b2b4c9a004147cbfb448b1200cfbf7 [diff] |
perf data: Add global path holder Add a 'path' member to 'struct perf_data'. It will keep the configured path for the data (const char *). The path in struct perf_data_file is now dynamically allocated (duped) from it. This scheme is useful/used in following patches where struct perf_data::path holds the 'configure' directory path and struct perf_data_file::path holds the allocated path for specific files. Also it actually makes the code little simpler. 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] [ Fixup data-convert-bt.c missing conversion ] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>