perf auxtrace: Make auxtrace_queues__add_buffer() return buffer_ptr
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 6 Mar 2018 09:13:16 +0000 (11:13 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 7 Mar 2018 13:22:27 +0000 (10:22 -0300)
commit4c4548437c5722effcaf5b2dea85abd321935627
treebb289bef3b9b2a1a020563cbb19dea813ad19a32
parenta356a59799d376dd8e4839f29d32f4c6a5582e6d
perf auxtrace: Make auxtrace_queues__add_buffer() return buffer_ptr

In preparation for supporting AUX area sampling buffers,
auxtrace_queues__add_buffer() needs to be more generic. To that end, make
it return buffer_ptr instead of the caller.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/1520327598-1317-6-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/auxtrace.c