]> asedeno.scripts.mit.edu Git - linux.git/commit
perf auxtrace: Pass struct perf_mmap into mmap__read* functions
authorJiri Olsa <jolsa@kernel.org>
Thu, 13 Sep 2018 12:54:05 +0000 (14:54 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 19 Sep 2018 13:25:11 +0000 (10:25 -0300)
commite035f4ca2ac97c30842fb03101198a86730de3ad
treedb35a8fcefe3bf0c71d4971f527366a10fde7bf0
parent7336555a682c09fd9a3fdf38724493e52653be50
perf auxtrace: Pass struct perf_mmap into mmap__read* functions

The perf_mmap struct will hold a file pointer to write the mmap's
contents, so we need to propagate it down the stack to record__write
callers instead of its member the auxtrace_mmap struct.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Alexey Budankov <alexey.budankov@linux.intel.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20180913125450.21342-4-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-record.c
tools/perf/util/auxtrace.c
tools/perf/util/auxtrace.h