Skip to content

Commit

Permalink
perf tools: Remove static debugfs path from parse-events
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ashwin Chaugule authored and Ingo Molnar committed Oct 12, 2009
1 parent 55621cc commit 63c9e01
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/perf/util/parse-events.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '/';
Expand Down

0 comments on commit 63c9e01

Please sign in to comment.