aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-trace.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/builtin-trace.c')
-rw-r--r--tools/perf/builtin-trace.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c
index b160a9f61bf3..88eef71bce6d 100644
--- a/tools/perf/builtin-trace.c
+++ b/tools/perf/builtin-trace.c
@@ -184,6 +184,10 @@ static int __cmd_trace(void)
184 header = perf_header__read(input); 184 header = perf_header__read(input);
185 sample_type = perf_header__sample_type(header); 185 sample_type = perf_header__sample_type(header);
186 186
187 if (!(sample_type & PERF_SAMPLE_RAW))
188 die("No trace sample to read. Did you call perf record "
189 "without -R?");
190
187 if (load_kernel() < 0) { 191 if (load_kernel() < 0) {
188 perror("failed to load kernel symbols"); 192 perror("failed to load kernel symbols");
189 return EXIT_FAILURE; 193 return EXIT_FAILURE;