[PATCH 0/2] Improvements for kallsyms__parse

From: Ian Rogers
Date: Thu Apr 30 2020 - 15:36:03 EST


kallsyms__parse is called 4 times during perf record startup. Add a
benchmark to measure its performance. Transition it to using the api
io.h buffered reading, improving performance by ~8% or saving ~5% from
perf record start up time.

Ian Rogers (2):
perf bench: add kallsyms parsing
lib kallsyms: parse using io api

tools/lib/api/io.h | 3 ++
tools/lib/symbol/kallsyms.c | 81 +++++++++++++++++++------------------
tools/perf/bench/Build | 1 +
tools/perf/bench/bench.h | 1 +
tools/perf/builtin-bench.c | 1 +
5 files changed, 47 insertions(+), 40 deletions(-)

--
2.26.2.526.g744177e7f7-goog