perf tools: Pass a fd to perf_file_header__read_pipe()
Currently it unconditionally writes to stdout for repipe. But perf inject can direct its output to a regular file. Then it needs to write the header to the file as well. Signed-off-by:Namhyung Kim <namhyung@kernel.org> Acked-by:
Jiri Olsa <jolsa@redhat.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Ian Rogers <irogers@google.com> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lore.kernel.org/lkml/20210719223153.1618812-3-namhyung@kernel.org Signed-off-by:
Arnaldo Carvalho de Melo <acme@redhat.com>
Showing
- tools/perf/builtin-inject.c 2 additions, 1 deletiontools/perf/builtin-inject.c
- tools/perf/util/header.c 6 additions, 6 deletionstools/perf/util/header.c
- tools/perf/util/header.h 1 addition, 1 deletiontools/perf/util/header.h
- tools/perf/util/session.c 4 additions, 4 deletionstools/perf/util/session.c
- tools/perf/util/session.h 2 additions, 2 deletionstools/perf/util/session.h
Please register or sign in to comment