projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64f1607
)
perf record: Fix typo in pid_synthesize_comm_event
author
Arnaldo Carvalho de Melo
<
[email protected]
>
Fri, 14 Aug 2009 18:26:32 +0000
(15:26 -0300)
committer
Ingo Molnar
<
[email protected]
>
Sat, 15 Aug 2009 09:59:06 +0000
(11:59 +0200)
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 <
[email protected]
>
Signed-off-by: Arnaldo Carvalho de Melo <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
LKML-Reference: <
20090814182632
[email protected]
>
Signed-off-by: Ingo Molnar <
[email protected]
>
tools/perf/builtin-record.c
patch
|
blob
|
history
diff --git
a/tools/perf/builtin-record.c
b/tools/perf/builtin-record.c
index 3d051b9cf25ff18790edbb1cd33a7f644ece2dc0..89a5ddcd1ded753e6835c39935989d4c96ac2fdd 100644
(file)
--- 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 (f
d
== NULL) {
+ if (f
p
== NULL) {
/*
* We raced with a task exiting - just return:
*/