diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/intel_device.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/intel_device.c b/src/intel_device.c index 11d95bec..27715c41 100644 --- a/src/intel_device.c +++ b/src/intel_device.c @@ -30,6 +30,7 @@ #include <sys/types.h> #include <sys/stat.h> +#include <sys/mount.h> #include <assert.h> #include <string.h> #include <unistd.h> @@ -141,6 +142,13 @@ static void dump_debugfs(ScrnInfoPtr scrn, int fd, const char *name) sprintf(path, "/debug/dri/%d/%s", minor, name); if (dump_file(scrn, path)) return; + + if (mount("X-debug", "/sys/kernel/debug", "debugfs", 0, 0) == 0) { + sprintf(path, "/sys/kernel/debug/dri/%d/%s", minor, name); + dump_file(scrn, path); + umount("X-debug"); + return; + } } static void dump_clients_info(ScrnInfoPtr scrn, int fd) |