Skip to content

Commit eb34363

Browse files
ahunter6acmel
authored andcommitted
perf tools: Fix perf_event_attr__fprintf() missing/dupl. fields
Some fields are missing and text_poke is duplicated. Fix that up. Signed-off-by: Adrian Hunter <[email protected]> Cc: Jiri Olsa <[email protected]> Link: http://lore.kernel.org/lkml/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent da4572d commit eb34363

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/perf/util/perf_event_attr_fprintf.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,9 @@ int perf_event_attr__fprintf(FILE *fp, struct perf_event_attr *attr,
137137
PRINT_ATTRf(cgroup, p_unsigned);
138138
PRINT_ATTRf(text_poke, p_unsigned);
139139
PRINT_ATTRf(build_id, p_unsigned);
140+
PRINT_ATTRf(inherit_thread, p_unsigned);
141+
PRINT_ATTRf(remove_on_exec, p_unsigned);
142+
PRINT_ATTRf(sigtrap, p_unsigned);
140143

141144
PRINT_ATTRn("{ wakeup_events, wakeup_watermark }", wakeup_events, p_unsigned);
142145
PRINT_ATTRf(bp_type, p_unsigned);
@@ -150,7 +153,7 @@ int perf_event_attr__fprintf(FILE *fp, struct perf_event_attr *attr,
150153
PRINT_ATTRf(aux_watermark, p_unsigned);
151154
PRINT_ATTRf(sample_max_stack, p_unsigned);
152155
PRINT_ATTRf(aux_sample_size, p_unsigned);
153-
PRINT_ATTRf(text_poke, p_unsigned);
156+
PRINT_ATTRf(sig_data, p_unsigned);
154157

155158
return ret;
156159
}

0 commit comments

Comments
 (0)