projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55621cc
)
perf tools: Remove static debugfs path from parse-events
author
Ashwin Chaugule
<
[email protected]
>
Sun, 4 Oct 2009 22:49:34 +0000
(15:49 -0700)
committer
Ingo Molnar
<
[email protected]
>
Mon, 12 Oct 2009 20:41:05 +0000
(22:41 +0200)
Timechart doesn't work if debugfs is not in /sys/kernel/debug/.
Fixed by using global debugfs_path which is filled in by perf.
Signed-off-by: Ashwin Chaugule <
[email protected]
>
Cc: "Arjan van de Ven" <
[email protected]
>
LKML-Reference: <
a751bdc6978478de6d10440e587a2cc7
[email protected]
>
Signed-off-by: Ingo Molnar <
[email protected]
>
tools/perf/util/parse-events.c
patch
|
blob
|
history
diff --git
a/tools/perf/util/parse-events.c
b/tools/perf/util/parse-events.c
index 87c424de79ee39653d3ef7041b878cda97ea459c..8cfb48cbbea01d8fbd5ba6aee541d07c360b7d3d 100644
(file)
--- a/
tools/perf/util/parse-events.c
+++ b/
tools/perf/util/parse-events.c
@@
-691,7
+691,10
@@
static void store_event_type(const char *orgname)
FILE *file;
int id;
- sprintf(filename, "/sys/kernel/debug/tracing/events/%s/id", orgname);
+ sprintf(filename, "%s/", debugfs_path);
+ strncat(filename, orgname, strlen(orgname));
+ strcat(filename, "/id");
+
c = strchr(filename, ':');
if (c)
*c = '/';