diff options
Diffstat (limited to 'tools/perf/builtin-script.c')
-rw-r--r-- | tools/perf/builtin-script.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index d079f36d342d..357906ed1898 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, | |||
1794 | return; | 1794 | return; |
1795 | } | 1795 | } |
1796 | 1796 | ||
1797 | if (PRINT_FIELD(TRACE)) { | 1797 | if (PRINT_FIELD(TRACE) && sample->raw_data) { |
1798 | event_format__fprintf(evsel->tp_format, sample->cpu, | 1798 | event_format__fprintf(evsel->tp_format, sample->cpu, |
1799 | sample->raw_data, sample->raw_size, fp); | 1799 | sample->raw_data, sample->raw_size, fp); |
1800 | } | 1800 | } |