]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - tools/perf/builtin-trace.c
perf trace: Wire up the augmented syscalls with the syscalls:sys_enter_FOO beautifier
[linux.git] / tools / perf / builtin-trace.c
index 06215acb14817975ac5865354e2076802244871f..22ab8e67c7600865d7fc7a884feba24f15bbe66b 100644 (file)
@@ -2042,7 +2042,10 @@ static int trace__event_handler(struct trace *trace, struct perf_evsel *evsel,
        fprintf(trace->output, "%s:", evsel->name);
 
        if (perf_evsel__is_bpf_output(evsel)) {
-               bpf_output__fprintf(trace, sample);
+               if (evsel == trace->syscalls.events.augmented)
+                       trace__fprintf_sys_enter(trace, evsel, sample);
+               else
+                       bpf_output__fprintf(trace, sample);
        } else if (evsel->tp_format) {
                if (strncmp(evsel->tp_format->name, "sys_enter_", 10) ||
                    trace__fprintf_sys_enter(trace, evsel, sample)) {