projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13b6256
)
perf tools: Make test use the preset debugfs path
author
Jiri Olsa
<jolsa@redhat.com>
Thu, 14 Jul 2011 09:25:34 +0000
(11:25 +0200)
committer
Ingo Molnar
<mingo@elte.hu>
Thu, 21 Jul 2011 08:41:14 +0000
(10:41 +0200)
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>
tools/perf/builtin-test.c
patch
|
blob
|
history
diff --git
a/tools/perf/builtin-test.c
b/tools/perf/builtin-test.c
index b5cd5f5ed19575b09f0e9d52a7d74deb6fda725f..55f4c76f282114e3edb7bc5ce6852000f73c329b 100644
(file)
--- 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/event
s/syscalls/%s/id",
- evname) < 0)
+ "
%
s/syscalls/%s/id",
+
debugfs_path,
evname) < 0)
return -1;
fd = open(filename, O_RDONLY);