diff options
author | Like Xu <like.xu@linux.intel.com> | 2019-10-27 18:52:39 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-11-15 11:44:07 +0100 |
commit | 52ba4b0b99770e892f43da1238f437155acb8b58 (patch) | |
tree | 18ee181729eb2cea9841a2bffb72d3da055ccabd /arch/x86/kvm/page_track.c | |
parent | 3ca270fc9edb258d5bfa271bcf851614e9e6e7d4 (diff) |
perf/core: Provide a kernel-internal interface to pause perf_event
Exporting perf_event_pause() as an external accessor for kernel users (such
as KVM) who may do both disable perf_event and read count with just one
time to hold perf_event_ctx_lock. Also the value could be reset optionally.
Suggested-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Like Xu <like.xu@linux.intel.com>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/page_track.c')
0 files changed, 0 insertions, 0 deletions