diff options
author | Alexander Shishkin <alexander.shishkin@linux.intel.com> | 2016-03-04 16:42:48 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-03-31 11:30:43 +0300 |
commit | 66d219014a4ee47ad4ca2b9db5fe6547353e2a56 (patch) | |
tree | bb8d1e110d9de9a1f9ba186d784aaa40a5ec2b00 /arch/x86/events/intel/bts.c | |
parent | af5bb4ed1254a378b6028c09e58bdcc1cd9bf5b3 (diff) | |
download | linux-66d219014a4ee47ad4ca2b9db5fe6547353e2a56.tar.xz |
perf/x86/intel/pt: Move transaction start/stop to PMU start/stop callbacks
As per AUX buffer management requirement, AUX output has to happen between
pmu::start and pmu::stop calls so that perf_event_stop() actually stops it
and therefore perf can free the AUX data after it has called pmu::stop.
This patch moves perf_aux_output_{begin,end} from pt_event_{add,del} to
pt_event_{start,stop}. As a bonus, we get rid of pt_buffer_is_full(),
which is already taken care of by perf_aux_output_begin() anyway.
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vince Weaver <vincent.weaver@maine.edu>
Cc: vince@deater.net
Link: http://lkml.kernel.org/r/1457098969-21595-5-git-send-email-alexander.shishkin@linux.intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/events/intel/bts.c')
0 files changed, 0 insertions, 0 deletions