tools lib api fs tracing_path: Introduce opendir() method
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 17 May 2018 17:42:39 +0000 (14:42 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 17 May 2018 17:50:38 +0000 (14:50 -0300)
commit7014e0e3bf9b0d0b6221eb7d2f8a1f690423dd73
tree37da2c3997d4b2c03a4e1698481e8608925b11cd
parent25a7d914274de38637c5199342eb90a297361386
tools lib api fs tracing_path: Introduce opendir() method

That takes care of using the right call to get the tracing_path
directory, the one that will end up calling tracing_path_set() to figure
out where tracefs is mounted.

One more step in doing just lazy reading of system structures to reduce
the number of operations done unconditionaly at 'perf' start.

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-42zzi0f274909bg9mxzl81bu@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/tests/parse-events.c
tools/perf/util/parse-events.c