[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-baf040a0d1ac6319725c0fe400503683ac016580@git.kernel.org>
Date: Thu, 21 Jul 2011 10:13:26 GMT
From: tip-bot for Jiri Olsa <jolsa@...hat.com>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, hpa@...or.com, mingo@...hat.com,
tglx@...utronix.de, mingo@...e.hu, jolsa@...hat.com
Subject: [tip:perf/core] perf tools: Make test use the preset debugfs path
Commit-ID: baf040a0d1ac6319725c0fe400503683ac016580
Gitweb: http://git.kernel.org/tip/baf040a0d1ac6319725c0fe400503683ac016580
Author: Jiri Olsa <jolsa@...hat.com>
AuthorDate: Thu, 14 Jul 2011 11:25:34 +0200
Committer: Ingo Molnar <mingo@...e.hu>
CommitDate: Thu, 21 Jul 2011 10:41:14 +0200
perf tools: Make test use the preset debugfs path
Use preset debugfs path instead of hardcoded one.
Signed-off-by: Jiri Olsa <jolsa@...hat.com>
Cc: acme@...hat.com
Cc: a.p.zijlstra@...llo.nl
Cc: paulus@...ba.org
Link: http://lkml.kernel.org/r/1310635534-4013-4-git-send-email-jolsa@redhat.com
Signed-off-by: Ingo Molnar <mingo@...e.hu>
---
tools/perf/builtin-test.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/perf/builtin-test.c b/tools/perf/builtin-test.c
index b5cd5f5..55f4c76 100644
--- a/tools/perf/builtin-test.c
+++ b/tools/perf/builtin-test.c
@@ -246,8 +246,8 @@ static int trace_event__id(const char *evname)
int err = -1, fd;
if (asprintf(&filename,
- "/sys/kernel/debug/tracing/events/syscalls/%s/id",
- evname) < 0)
+ "%s/syscalls/%s/id",
+ debugfs_path, evname) < 0)
return -1;
fd = open(filename, O_RDONLY);
--
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