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
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 */
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
1587 PRINT_ATTRf(namespaces, p_unsigned);1587 PRINT_ATTRf(namespaces, p_unsigned);
1588 PRINT_ATTRf(ksymbol, p_unsigned);1588 PRINT_ATTRf(ksymbol, p_unsigned);
1589 PRINT_ATTRf(bpf_event, p_unsigned);1589 PRINT_ATTRf(bpf_event, p_unsigned);
1590 PRINT_ATTRf(aux_output, p_unsigned);
1590 1591
1591 PRINT_ATTRn("{ wakeup_events, wakeup_watermark }", wakeup_events, p_unsigned);1592 PRINT_ATTRn("{ wakeup_events, wakeup_watermark }", wakeup_events, p_unsigned);
1592 PRINT_ATTRf(bp_type, p_unsigned);1593 PRINT_ATTRf(bp_type, p_unsigned);