aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@redhat.com>2011-07-14 05:25:34 -0400
committerIngo Molnar <mingo@elte.hu>2011-07-21 04:41:14 -0400
commitbaf040a0d1ac6319725c0fe400503683ac016580 (patch)
tree7491f6dbaf6d26017cbf9a0ec0428f8c90619530 /tools
parent13b62567e909125145f90e91625b1062196d1258 (diff)
perf tools: Make test use the preset debugfs path
Use preset debugfs path instead of hardcoded one. Signed-off-by: Jiri Olsa <jolsa@redhat.com> Cc: acme@redhat.com Cc: a.p.zijlstra@chello.nl Cc: paulus@samba.org Link: http://lkml.kernel.org/r/1310635534-4013-4-git-send-email-jolsa@redhat.com Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/builtin-test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/builtin-test.c b/tools/perf/builtin-test.c
index b5cd5f5ed195..55f4c76f2821 100644
--- a/tools/perf/builtin-test.c
+++ b/tools/perf/builtin-test.c
@@ -246,8 +246,8 @@ static int trace_event__id(const char *evname)
246 int err = -1, fd; 246 int err = -1, fd;
247 247
248 if (asprintf(&filename, 248 if (asprintf(&filename,
249 "/sys/kernel/debug/tracing/events/syscalls/%s/id", 249 "%s/syscalls/%s/id",
250 evname) < 0) 250 debugfs_path, evname) < 0)
251 return -1; 251 return -1;
252 252
253 fd = open(filename, O_RDONLY); 253 fd = open(filename, O_RDONLY);