]> git.baikalelectronics.ru Git - kernel.git/commitdiff
perf tools: Fix perf_event_attr__fprintf() missing/dupl. fields
authorAdrian Hunter <adrian.hunter@intel.com>
Sat, 11 Sep 2021 12:05:50 +0000 (15:05 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 11 Sep 2021 18:58:36 +0000 (15:58 -0300)
Some fields are missing and text_poke is duplicated. Fix that up.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lore.kernel.org/lkml/20210911120550.12203-1-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/perf_event_attr_fprintf.c

index 30481825515bdca68db852eb004514912e453bc9..47b7531f51da06be80b10489804e1d4ec7a9bfdc 100644 (file)
@@ -137,6 +137,9 @@ int perf_event_attr__fprintf(FILE *fp, struct perf_event_attr *attr,
        PRINT_ATTRf(cgroup, p_unsigned);
        PRINT_ATTRf(text_poke, p_unsigned);
        PRINT_ATTRf(build_id, p_unsigned);
+       PRINT_ATTRf(inherit_thread, p_unsigned);
+       PRINT_ATTRf(remove_on_exec, p_unsigned);
+       PRINT_ATTRf(sigtrap, p_unsigned);
 
        PRINT_ATTRn("{ wakeup_events, wakeup_watermark }", wakeup_events, p_unsigned);
        PRINT_ATTRf(bp_type, p_unsigned);
@@ -150,7 +153,7 @@ int perf_event_attr__fprintf(FILE *fp, struct perf_event_attr *attr,
        PRINT_ATTRf(aux_watermark, p_unsigned);
        PRINT_ATTRf(sample_max_stack, p_unsigned);
        PRINT_ATTRf(aux_sample_size, p_unsigned);
-       PRINT_ATTRf(text_poke, p_unsigned);
+       PRINT_ATTRf(sig_data, p_unsigned);
 
        return ret;
 }