From: Jiri Olsa Date: Thu, 14 Jul 2011 09:25:34 +0000 (+0200) Subject: perf tools: Make test use the preset debugfs path X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=baf040a0d1ac6319725c0fe400503683ac016580;p=linux-beck.git perf tools: Make test use the preset debugfs path Use preset debugfs path instead of hardcoded one. Signed-off-by: Jiri Olsa 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 --- 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) int err = -1, fd; if (asprintf(&filename, - "/sys/kernel/debug/tracing/events/syscalls/%s/id", - evname) < 0) + "%s/syscalls/%s/id", + debugfs_path, evname) < 0) return -1; fd = open(filename, O_RDONLY);