Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 63c9e01e authored by Ashwin Chaugule's avatar Ashwin Chaugule Committed by Ingo Molnar
Browse files

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: default avatarAshwin Chaugule <ashwinc@quicinc.com>
Cc: "Arjan van de Ven" <arjan@linux.intel.com>
LKML-Reference: <a751bdc6978478de6d10440e587a2cc7.squirrel@www.codeaurora.org>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 55621ccf
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -691,7 +691,10 @@ static void store_event_type(const char *orgname)
	FILE *file;
	FILE *file;
	int id;
	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, ':');
	c = strchr(filename, ':');
	if (c)
	if (c)
		*c = '/';
		*c = '/';