perf annotate: Use pipe + fork instead of popen
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 15 Jun 2016 18:48:08 +0000 (15:48 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 29 Jul 2016 14:12:39 +0000 (11:12 -0300)
commit9955d0be161a9baa241ae7b98426a4c705cb21cb
treee5c7bcb48be0aaf21eb454c314b442c693444ca8
parent7c48dcfd32b45b69aa8d5e81108fff8c7a2272ed
perf annotate: Use pipe + fork instead of popen

We will need to redirect the stderr as well, so open code popen as
a starting point.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-k0zt9svg4bswiglem7ornts4@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/annotate.c