mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
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>
This commit is contained in:
parent
55621ccf2b
commit
63c9e01e1a
1 changed files with 4 additions and 1 deletions
|
@ -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 = '/';
|
||||
|
|
Loading…
Reference in a new issue