Skip to content

Commit

Permalink
perf tools: Make test use the preset debugfs path
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jiri Olsa authored and Ingo Molnar committed Jul 21, 2011
1 parent 13b6256 commit baf040a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/perf/builtin-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit baf040a

Please sign in to comment.