hi, adding support to store CPU cache details under perf data. $ perf report --header-only -I ... # cache info: # L1 Data 32K [0-1] # L1 Instruction 32K [0-1] # L1 Data 32K [2-3] # L1 Instruction 32K [2-3] # L2 Unified 256K [0-1] # L2 Unified 256K [2-3] # L3 Unified 4096K [0-3] ...
Plus some libapi additions. Also available in here: git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git perf/cache thanks, jirka --- Jiri Olsa (5): tools lib api: Add debug output support tools lib api fs: Move filename__read_str into api/fs/fs.c tools lib api fs: Add sysfs__read_str function perf tools: Initialize libapi debug output perf tools: Add perf data cache feature tools/lib/api/Build | 1 + tools/lib/api/Makefile | 1 + tools/lib/api/debug-internal.h | 20 +++++++++ tools/lib/api/debug.c | 28 +++++++++++++ tools/lib/api/debug.h | 10 +++++ tools/lib/api/fs/fs.c | 64 +++++++++++++++++++++++++++++ tools/lib/api/fs/fs.h | 3 ++ tools/perf/perf.c | 2 + tools/perf/util/debug.c | 21 ++++++++++ tools/perf/util/debug.h | 1 + tools/perf/util/env.c | 13 ++++++ tools/perf/util/env.h | 15 +++++++ tools/perf/util/header.c | 265 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ tools/perf/util/header.h | 1 + tools/perf/util/trace-event.c | 1 + tools/perf/util/util.c | 48 ---------------------- tools/perf/util/util.h | 1 - 17 files changed, 446 insertions(+), 49 deletions(-) create mode 100644 tools/lib/api/debug-internal.h create mode 100644 tools/lib/api/debug.c create mode 100644 tools/lib/api/debug.h