Commit baf040a0 authored by Jiri Olsa's avatar Jiri Olsa Committed by Ingo Molnar

perf tools: Make test use the preset debugfs path

Use preset debugfs path instead of hardcoded one.
Signed-off-by: default avatarJiri 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.comSigned-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 13b62567
...@@ -246,8 +246,8 @@ static int trace_event__id(const char *evname) ...@@ -246,8 +246,8 @@ static int trace_event__id(const char *evname)
int err = -1, fd; int err = -1, fd;
if (asprintf(&filename, if (asprintf(&filename,
"/sys/kernel/debug/tracing/events/syscalls/%s/id", "%s/syscalls/%s/id",
evname) < 0) debugfs_path, evname) < 0)
return -1; return -1;
fd = open(filename, O_RDONLY); fd = open(filename, O_RDONLY);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment