diff options
author | Ashwin Chaugule <ashwinc@quicinc.com> | 2009-10-05 02:49:34 +0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-10-13 00:41:05 +0400 |
commit | 63c9e01e1a0dcecc982137d527d44b5ac808b607 (patch) | |
tree | 7231c231457af3f2463e277a4ebff0228fb9fb59 /tools | |
parent | 55621ccf2b7a8afe39df8c80f55b28424fd07d13 (diff) | |
download | linux-63c9e01e1a0dcecc982137d527d44b5ac808b607.tar.xz |
perf tools: Remove static debugfs path from parse-events
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 <ashwinc@quicinc.com>
Cc: "Arjan van de Ven" <arjan@linux.intel.com>
LKML-Reference: <a751bdc6978478de6d10440e587a2cc7.squirrel@www.codeaurora.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/util/parse-events.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c index 87c424de79ee..8cfb48cbbea0 100644 --- 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 = '/'; |