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:
8df0b4a
)
perf symbols: Fix random fd closing with no libelf
author
Adrian Hunter
<
[email protected]
>
Wed, 4 Dec 2013 14:23:01 +0000
(16:23 +0200)
committer
Arnaldo Carvalho de Melo
<
[email protected]
>
Wed, 4 Dec 2013 18:08:19 +0000
(15:08 -0300)
When built without libelf, perf tools was failing to initialize a file
descriptor, but nevertheless closing it. That sometimes resulted in the
output being truncated because the stdout file descriptor got closed.
Signed-off-by: Adrian Hunter <
[email protected]
>
Cc: David Ahern <
[email protected]
>
Cc: Frederic Weisbecker <
[email protected]
>
Cc: Ingo Molnar <
[email protected]
>
Cc: Jiri Olsa <
[email protected]
>
Cc: Mike Galbraith <
[email protected]
>
Cc: Namhyung Kim <
[email protected]
>
Cc: Paul Mackerras <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Cc: Stephane Eranian <
[email protected]
>
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <
[email protected]
>
tools/perf/util/symbol-minimal.c
patch
|
blob
|
history
diff --git
a/tools/perf/util/symbol-minimal.c
b/tools/perf/util/symbol-minimal.c
index 2d2dd0532b5a971e588086c0605ae0d6ed4080df..ac7070a2f2b6defd3cbd62396ed5122584b9ef4c 100644
(file)
--- a/
tools/perf/util/symbol-minimal.c
+++ b/
tools/perf/util/symbol-minimal.c
@@
-253,6
+253,7
@@
int symsrc__init(struct symsrc *ss, struct dso *dso __maybe_unused,
if (!ss->name)
goto out_close;
+ ss->fd = fd;
ss->type = type;
return 0;