tools lib api fs tracing_path: Introduce get/put_events_file() helpers
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 16 May 2018 19:42:26 +0000 (16:42 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 17 May 2018 15:01:50 +0000 (12:01 -0300)
commit40c3c0c9ac2befd28df3844dc9efdbadee3af5c0
tree23d37d1b6ce00f955306258d494d371fba143fe8
parent17c257e867be1880eaf7c1b9dac286086d75d1ec
tools lib api fs tracing_path: Introduce get/put_events_file() helpers

To make reading events files a tad more compact than with
get_tracing_files("events/foo").

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-do6xgtwpmfl8zjs1euxsd2du@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/api/fs/tracing_path.c
tools/lib/api/fs/tracing_path.h
tools/perf/util/trace-event-info.c