diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-08-22 10:59:58 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-08-22 10:59:58 +0000 |
commit | 184786988e5d78ae230139d76691b9ce7f97dca6 (patch) | |
tree | 54b95ff62e95e373fa254dd45e477dbcb6af622b /overlay/gpu-perf.c | |
parent | b20a6b827924bfaf0bf92a1eae818385f90dfbea (diff) |
overlay: Fill the blank charts with error messages
Instead of showing nothing, show a "space left intentionally blank"
message.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'overlay/gpu-perf.c')
-rw-r--r-- | overlay/gpu-perf.c | 4 |
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; |