Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1550062

[RFC PATCH 08/10] perf/core: Add PERF_AUX_FLAG_COLLISION to report colliding samples

From Will Deacon <will.deacon@arm.com>
Newsgroups linux.kernel
Subject [RFC PATCH 08/10] perf/core: Add PERF_AUX_FLAG_COLLISION to report colliding samples
Date 2017-01-03 19:20 +0100
Message-ID <sVBQK-1Kc-57@gated-at.bofh.it> (permalink)
References <sVBQJ-1Kc-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


The ARM SPE architecture permits an implementation to ignore a sample
if the sample is due to be taken whilst another sample is already being
produced. In this case, it is desirable to report the collision to
userspace, as they may want to lower the sample period.

This patch adds a PERF_AUX_FLAG_COLLISION flag, so that such events can
be relayed to userspace.

Signed-off-by: Will Deacon <will.deacon@arm.com>
---
 include/uapi/linux/perf_event.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/uapi/linux/perf_event.h b/include/uapi/linux/perf_event.h
index c66a485a24ac..68a4e542968e 100644
--- a/include/uapi/linux/perf_event.h
+++ b/include/uapi/linux/perf_event.h
@@ -885,6 +885,7 @@ enum perf_callchain_context {
  */
 #define PERF_AUX_FLAG_TRUNCATED		0x01	/* record was truncated to fit */
 #define PERF_AUX_FLAG_OVERWRITE		0x02	/* snapshot from overwrite mode */
+#define PERF_AUX_FLAG_COLLISION		0x03	/* sample collided with another */
 
 #define PERF_FLAG_FD_NO_GROUP		(1UL << 0)
 #define PERF_FLAG_FD_OUTPUT		(1UL << 1)
-- 
2.1.4

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[RFC PATCH 00/10] Add support for the ARMv8.2 Statistical Profiling Extension Will Deacon <will.deacon@arm.com> - 2017-01-03 19:20 +0100
  [RFC PATCH 02/10] arm64: cpufeature: Don't enforce system-wide SPE capability Will Deacon <will.deacon@arm.com> - 2017-01-03 19:20 +0100
    Re: [RFC PATCH 02/10] arm64: cpufeature: Don't enforce system-wide  SPE capability Mark Rutland <mark.rutland@arm.com> - 2017-01-04 12:10 +0100
  [RFC PATCH 05/10] genirq: export irq_get_percpu_devid_partition to modules Will Deacon <will.deacon@arm.com> - 2017-01-03 19:20 +0100
  [RFC PATCH 01/10] arm64: cpufeature: allow for version discrepancy in PMU implementations Will Deacon <will.deacon@arm.com> - 2017-01-03 19:20 +0100
    Re: [RFC PATCH 01/10] arm64: cpufeature: allow for version  discrepancy in PMU implementations Mark Rutland <mark.rutland@arm.com> - 2017-01-04 11:30 +0100
  [RFC PATCH 04/10] arm64: head.S: Enable EL1 (host) access to SPE when entered at EL2 Will Deacon <will.deacon@arm.com> - 2017-01-03 19:20 +0100
  [RFC PATCH 09/10] drivers/perf: Add support for ARMv8.2 Statistical Profiling Extension Will Deacon <will.deacon@arm.com> - 2017-01-03 19:20 +0100
    Re: [RFC PATCH 09/10] drivers/perf: Add support for ARMv8.2  Statistical Profiling Extension Peter Zijlstra <peterz@infradead.org> - 2017-01-04 11:40 +0100
      Re: [RFC PATCH 09/10] drivers/perf: Add support for ARMv8.2  Statistical Profiling Extension Will Deacon <will.deacon@arm.com> - 2017-01-04 20:20 +0100
        Re: [RFC PATCH 09/10] drivers/perf: Add support for ARMv8.2  Statistical Profiling Extension Peter Zijlstra <peterz@infradead.org> - 2017-01-05 12:40 +0100
    Re: [RFC PATCH 09/10] drivers/perf: Add support for ARMv8.2  Statistical Profiling Extension Kim Phillips <kim.phillips@arm.com> - 2017-01-10 23:10 +0100
      Re: [RFC PATCH 09/10] drivers/perf: Add support for ARMv8.2  Statistical Profiling Extension Will Deacon <will.deacon@arm.com> - 2017-01-11 13:40 +0100
        Re: [RFC PATCH 09/10] drivers/perf: Add support for ARMv8.2  Statistical Profiling Extension Kim Phillips <kim.phillips@arm.com> - 2017-01-11 22:10 +0100
          Re: [RFC PATCH 09/10] drivers/perf: Add support for ARMv8.2  Statistical Profiling Extension Will Deacon <will.deacon@arm.com> - 2017-01-13 14:40 +0100
      Re: [RFC PATCH 09/10] drivers/perf: Add support for ARMv8.2  Statistical Profiling Extension Marc Zyngier <marc.zyngier@arm.com> - 2017-01-12 12:40 +0100
  [RFC PATCH 07/10] perf: Directly pass PERF_AUX_* flags to perf_aux_output_end Will Deacon <will.deacon@arm.com> - 2017-01-03 19:20 +0100
  [RFC PATCH 03/10] arm64: KVM: Save/restore the host SPE state when entering/leaving a VM Will Deacon <will.deacon@arm.com> - 2017-01-03 19:20 +0100
  [RFC PATCH 10/10] dt-bindings: Document devicetree binding for ARM SPE Will Deacon <will.deacon@arm.com> - 2017-01-03 19:20 +0100
  [RFC PATCH 08/10] perf/core: Add PERF_AUX_FLAG_COLLISION to report colliding samples Will Deacon <will.deacon@arm.com> - 2017-01-03 19:20 +0100

csiph-web