[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-39e6dd73502f64e2ae3236b304e160ae30de9384@git.kernel.org>
Date: Sat, 15 Aug 2009 10:06:52 GMT
From: tip-bot for Arnaldo Carvalho de Melo <acme@...hat.com>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, drepper@...hat.com, acme@...hat.com,
hpa@...or.com, mingo@...hat.com, peterz@...radead.org,
tglx@...utronix.de, mingo@...e.hu
Subject: [tip:perfcounters/urgent] perf record: Fix typo in pid_synthesize_comm_event
Commit-ID: 39e6dd73502f64e2ae3236b304e160ae30de9384
Gitweb: http://git.kernel.org/tip/39e6dd73502f64e2ae3236b304e160ae30de9384
Author: Arnaldo Carvalho de Melo <acme@...hat.com>
AuthorDate: Fri, 14 Aug 2009 15:26:32 -0300
Committer: Ingo Molnar <mingo@...e.hu>
CommitDate: Sat, 15 Aug 2009 11:59:06 +0200
perf record: Fix typo in pid_synthesize_comm_event
We were using 'fd' locally, but there was a global 'fd' too, so
when converting from open to fopen the test made against fd
should be made against 'fp', but since we have that global
it didnt get discovered ...
Reported-by: Ulrich Drepper <drepper@...hat.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@...hat.com>
Cc: Peter Zijlstra <peterz@...radead.org>
LKML-Reference: <20090814182632.GF3490@...stprotocols.net>
Signed-off-by: Ingo Molnar <mingo@...e.hu>
---
tools/perf/builtin-record.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c
index 3d051b9..89a5ddc 100644
--- a/tools/perf/builtin-record.c
+++ b/tools/perf/builtin-record.c
@@ -219,7 +219,7 @@ static pid_t pid_synthesize_comm_event(pid_t pid, int full)
snprintf(filename, sizeof(filename), "/proc/%d/status", pid);
fp = fopen(filename, "r");
- if (fd == NULL) {
+ if (fp == NULL) {
/*
* We raced with a task exiting - just return:
*/
--
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