perf tools: Add aux_output attribute flag
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 6 Aug 2019 08:46:02 +0000 (11:46 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 14 Aug 2019 13:59:59 +0000 (10:59 -0300)
Add aux_output attribute flag to match the kernel's perf_event.h file.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20190806084606.4021-4-alexander.shishkin@linux.intel.com
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/include/uapi/linux/perf_event.h
tools/perf/util/evsel.c

index 7198ddd..bb7b271 100644 (file)
@@ -374,7 +374,8 @@ struct perf_event_attr {
                                namespaces     :  1, /* include namespaces data */
                                ksymbol        :  1, /* include ksymbol events */
                                bpf_event      :  1, /* include bpf events */
-                               __reserved_1   : 33;
+                               aux_output     :  1, /* generate AUX records instead of events */
+                               __reserved_1   : 32;
 
        union {
                __u32           wakeup_events;    /* wakeup every n events */
index 64bc32e..897a97a 100644 (file)
@@ -1587,6 +1587,7 @@ int perf_event_attr__fprintf(FILE *fp, struct perf_event_attr *attr,
        PRINT_ATTRf(namespaces, p_unsigned);
        PRINT_ATTRf(ksymbol, p_unsigned);
        PRINT_ATTRf(bpf_event, p_unsigned);
+       PRINT_ATTRf(aux_output, p_unsigned);
 
        PRINT_ATTRn("{ wakeup_events, wakeup_watermark }", wakeup_events, p_unsigned);
        PRINT_ATTRf(bp_type, p_unsigned);