[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-63c9e01e1a0dcecc982137d527d44b5ac808b607@git.kernel.org>
Date: Mon, 12 Oct 2009 20:43:24 GMT
From: tip-bot for Ashwin Chaugule <ashwinc@...cinc.com>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, hpa@...or.com, mingo@...hat.com,
arjan@...ux.intel.com, tglx@...utronix.de, ashwinc@...cinc.com,
mingo@...e.hu
Subject: [tip:perf/urgent] perf tools: Remove static debugfs path from parse-events
Commit-ID: 63c9e01e1a0dcecc982137d527d44b5ac808b607
Gitweb: http://git.kernel.org/tip/63c9e01e1a0dcecc982137d527d44b5ac808b607
Author: Ashwin Chaugule <ashwinc@...cinc.com>
AuthorDate: Sun, 4 Oct 2009 15:49:34 -0700
Committer: Ingo Molnar <mingo@...e.hu>
CommitDate: Mon, 12 Oct 2009 22:41:05 +0200
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@...cinc.com>
Cc: "Arjan van de Ven" <arjan@...ux.intel.com>
LKML-Reference: <a751bdc6978478de6d10440e587a2cc7.squirrel@....codeaurora.org>
Signed-off-by: Ingo Molnar <mingo@...e.hu>
---
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 87c424d..8cfb48c 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 = '/';
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists