summaryrefslogtreecommitdiff
path: root/overlay/gpu-perf.c
diff options
context:
space:
mode:
Diffstat (limited to 'overlay/gpu-perf.c')
-rw-r--r--overlay/gpu-perf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/overlay/gpu-perf.c b/overlay/gpu-perf.c
index d5e461c6..b9ca11bd 100644
--- a/overlay/gpu-perf.c
+++ b/overlay/gpu-perf.c
@@ -301,8 +301,10 @@ void gpu_perf_init(struct gpu_perf *gp, unsigned flags)
perf_tracepoint_open(gp, "i915", "i915_gem_request_wait_end", wait_end);
perf_tracepoint_open(gp, "i915", "i915_flip_complete", flip_complete);
- if (gp->nr_events == 0)
+ if (gp->nr_events == 0) {
+ gp->error = "i915.ko tracepoints not available";
return;
+ }
if (perf_mmap(gp))
return;