]> Git Repo - linux.git/commitdiff
perf symbols: Fix random fd closing with no libelf
authorAdrian Hunter <[email protected]>
Wed, 4 Dec 2013 14:23:01 +0000 (16:23 +0200)
committerArnaldo 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

index 2d2dd0532b5a971e588086c0605ae0d6ed4080df..ac7070a2f2b6defd3cbd62396ed5122584b9ef4c 100644 (file)
@@ -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;
This page took 0.047803 seconds and 4 git commands to generate.