aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-script.c
diff options
context:
space:
mode:
authorDavid Carrillo-Cisneros <[email protected]>2017-07-18 04:25:44 +0000
committerArnaldo Carvalho de Melo <[email protected]>2017-07-19 02:14:34 +0000
commita02c395cccc95e40b4c506c78857e24fdb049096 (patch)
treef26850386eb31985efd9de475441ffca47531142 /tools/perf/builtin-script.c
parentperf header: Use struct feat_fd in read header records (diff)
downloadkernel-a02c395cccc95e40b4c506c78857e24fdb049096.tar.gz
kernel-a02c395cccc95e40b4c506c78857e24fdb049096.zip
perf header: Make write_pmu_mappings pipe-mode friendly
In pipe-mode, we will operate over a buffer instead of a file descriptor but write_pmu_mappings uses lseek to move over the perf.data file. Refactor write_pmu_mappings to avoid the usage of lseek and allow reusing the same logic in pipe-mode (next patch). Signed-off-by: David Carrillo-Cisneros <[email protected]> Acked-by: David Ahern <[email protected]> Acked-by: Jiri Olsa <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Andi Kleen <[email protected]> Cc: He Kuang <[email protected]> Cc: Masami Hiramatsu <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Paul Turner <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Simon Que <[email protected]> Cc: Stephane Eranian <[email protected]> Cc: Wang Nan <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/builtin-script.c')
0 files changed, 0 insertions, 0 deletions