aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/perf_event.h
diff options
context:
space:
mode:
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>2019-08-06 04:46:00 -0400
committerPeter Zijlstra <peterz@infradead.org>2019-08-28 05:29:38 -0400
commitab43762ef010967e4ccd53627f70a2eecbeafefb (patch)
tree2e04b6310c579f14555a97a779ff39d8087215ec /include/uapi/linux/perf_event.h
parent794b8bedca9341569e1081bc880e7ea209dbca5c (diff)
perf: Allow normal events to output AUX data
In some cases, ordinary (non-AUX) events can generate data for AUX events. For example, PEBS events can come out as records in the Intel PT stream instead of their usual DS records, if configured to do so. One requirement for such events is to consistently schedule together, to ensure that the data from the "AUX output" events isn't lost while their corresponding AUX event is not scheduled. We use grouping to provide this guarantee: an "AUX output" event can be added to a group where an AUX event is a group leader, and provided that the former supports writing to the latter. Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Ingo Molnar <mingo@redhat.com> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: kan.liang@linux.intel.com Link: https://lkml.kernel.org/r/20190806084606.4021-2-alexander.shishkin@linux.intel.com
Diffstat (limited to 'include/uapi/linux/perf_event.h')
-rw-r--r--include/uapi/linux/perf_event.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/uapi/linux/perf_event.h b/include/uapi/linux/perf_event.h
index 7198ddd0c6b1..bb7b271397a6 100644
--- a/include/uapi/linux/perf_event.h
+++ b/include/uapi/linux/perf_event.h
@@ -374,7 +374,8 @@ struct perf_event_attr {
374 namespaces : 1, /* include namespaces data */ 374 namespaces : 1, /* include namespaces data */
375 ksymbol : 1, /* include ksymbol events */ 375 ksymbol : 1, /* include ksymbol events */
376 bpf_event : 1, /* include bpf events */ 376 bpf_event : 1, /* include bpf events */
377 __reserved_1 : 33; 377 aux_output : 1, /* generate AUX records instead of events */
378 __reserved_1 : 32;
378 379
379 union { 380 union {
380 __u32 wakeup_events; /* wakeup every n events */ 381 __u32 wakeup_events; /* wakeup every n events */