mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-20 06:16:13 +00:00
intel_gpu_dump: Give a nicer message for missing batchbuffer-dumping code
This is the case where debugfs is mounted, the dri/0 directory exists but there's no i915_ringbuffer_info file. Point the user toward upgrading the driver.
This commit is contained in:
parent
0a820610ee
commit
5b8c19445c
@ -1974,6 +1974,19 @@ main (int argc, char *argv[])
|
||||
uint32_t ring_head, ring_tail, acthd;
|
||||
|
||||
sprintf(filename, "%s/i915_ringbuffer_info", path);
|
||||
|
||||
err = stat(filename, &st);
|
||||
if (err != 0) {
|
||||
fprintf (stderr,
|
||||
"Error opening %s: %s\n\n"
|
||||
"Perhaps your i915 kernel driver has no support for "
|
||||
"dumping batchbuffer data?\n"
|
||||
"(In kernels prior to 2.6.30 this requires "
|
||||
"manually-applied patches.)\n",
|
||||
path, strerror (errno));
|
||||
exit (1);
|
||||
}
|
||||
|
||||
parse_ringbuffer_info(filename, &ring_head, &ring_tail, &acthd);
|
||||
|
||||
sprintf(filename, "%s/i915_batchbuffers", path);
|
||||
|
Loading…
x
Reference in New Issue
Block a user