History

perf tools: Add aux_output attribute flag

Add aux_output attribute flag to match the kernel's perf_event.h file.

Adrian Hunter committed 7 years ago

Commit 5a4b58e1 parent ce7b0e42 files · +3 −1Browse files

Unified · Split

2 files
  1. tools/include/uapi/linux/perf_event.h +2 −1
  2. tools/perf/util/evsel.c +1 −0
tools/include/uapi/linux/perf_event.h+2−1
@@ -374,7 +374,8 @@ struct perf_event_attr { · 373 unmodified lines
374374 namespaces : 1, /* include namespaces data */
375375 ksymbol : 1, /* include ksymbol events */
376376 bpf_event : 1, /* include bpf events */
377− __reserved_1 : 33;
377+ aux_output : 1, /* generate AUX records instead of events */
378+ __reserved_1 : 32;
378379
379380 union {
380381 __u32 wakeup_events; /* wakeup every n events */
tools/perf/util/evsel.c+1−0
@@ -1587,6 +1587,7 @@ int perf_event_attr__fprintf(FILE *fp, struct perf_event_attr *attr, · 1586 unmodified lines
15871587 PRINT_ATTRf(namespaces, p_unsigned);
15881588 PRINT_ATTRf(ksymbol, p_unsigned);
15891589 PRINT_ATTRf(bpf_event, p_unsigned);
1590+ PRINT_ATTRf(aux_output, p_unsigned);
15901591
15911592 PRINT_ATTRn("{ wakeup_events, wakeup_watermark }", wakeup_events, p_unsigned);
15921593 PRINT_ATTRf(bp_type, p_unsigned);