summaryrefslogtreecommitdiff
path: root/tools/perf/tests/parse-events.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2018-05-17 20:22:37 +0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2018-05-17 20:25:07 +0300
commitc02cab228e44aacf161642b63779971f8e39993b (patch)
tree21bb482dcc116bbbf4a4f89826b39aeeedc78119 /tools/perf/tests/parse-events.c
parent40c3c0c9ac2befd28df3844dc9efdbadee3af5c0 (diff)
downloadlinux-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