diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index d079f36d342d4ca6024b46a52de349b1ea95ac4a..357906ed1898d4c1f92eff43567639010ac1ac68 100644 --- a/tools/perf/builtin-script.c +++ b/tools/perf/builtin-script.c @@ -1794,7 +1794,7 @@ static void process_event(struct perf_script *script, return; } - if (PRINT_FIELD(TRACE)) { + if (PRINT_FIELD(TRACE) && sample->raw_data) { event_format__fprintf(evsel->tp_format, sample->cpu, sample->raw_data, sample->raw_size, fp); }