diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2018-05-17 20:22:37 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2018-05-17 20:25:07 +0300 |
commit | c02cab228e44aacf161642b63779971f8e39993b (patch) | |
tree | 21bb482dcc116bbbf4a4f89826b39aeeedc78119 /tools/perf/tests/parse-events.c | |
parent | 40c3c0c9ac2befd28df3844dc9efdbadee3af5c0 (diff) | |
download | linux-c02cab228e44aacf161642b63779971f8e39993b.tar.xz |
perf tools: Reuse the path to the tracepoint /events/ directory
When using for_each_event() we needlessly rebuild the whole path to
the tracepoint directory, reuse the dir_path instead, saving some cycles
and reducing the size of the next patch.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: https://lkml.kernel.org/n/tip-54bcs15n0cp6gwcgpc4hptyc@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/tests/parse-events.c')
0 files changed, 0 insertions, 0 deletions