diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-11-05 12:48:50 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-11-05 13:15:00 -0500 |
commit | cf38fadade52df937521dd70d4437df1a9354cd9 (patch) | |
tree | e40d0b9b949de86c395bd189b9810790b28edc69 /tools/perf/tests | |
parent | 4299a549979783668d787959d61ba22b6b200877 (diff) |
perf fs: Rename NAME_find_mountpoint() to NAME__mountpoint()
Shorten it, "finding" it is an implementation detail, what callers want
is the pathname, not to ask for it to _always_ do the lookup.
And the existing implementation already caches it, i.e. it doesn't
"finds" it on every call.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-r24wa4bvtccg7mnkessrbbdj@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/tests')
-rw-r--r-- | tools/perf/tests/parse-events.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/tests/parse-events.c b/tools/perf/tests/parse-events.c index f47bf459c3f5..ef671cd41bb3 100644 --- a/tools/perf/tests/parse-events.c +++ b/tools/perf/tests/parse-events.c | |||
@@ -1456,7 +1456,7 @@ static int test_pmu(void) | |||
1456 | int ret; | 1456 | int ret; |
1457 | 1457 | ||
1458 | snprintf(path, PATH_MAX, "%s/bus/event_source/devices/cpu/format/", | 1458 | snprintf(path, PATH_MAX, "%s/bus/event_source/devices/cpu/format/", |
1459 | sysfs_find_mountpoint()); | 1459 | sysfs__mountpoint()); |
1460 | 1460 | ||
1461 | ret = stat(path, &st); | 1461 | ret = stat(path, &st); |
1462 | if (ret) | 1462 | if (ret) |
@@ -1473,7 +1473,7 @@ static int test_pmu_events(void) | |||
1473 | int ret; | 1473 | int ret; |
1474 | 1474 | ||
1475 | snprintf(path, PATH_MAX, "%s/bus/event_source/devices/cpu/events/", | 1475 | snprintf(path, PATH_MAX, "%s/bus/event_source/devices/cpu/events/", |
1476 | sysfs_find_mountpoint()); | 1476 | sysfs__mountpoint()); |
1477 | 1477 | ||
1478 | ret = stat(path, &st); | 1478 | ret = stat(path, &st); |
1479 | if (ret) { | 1479 | if (ret) { |