From 660a20f611adb0a176cecce1b2abfe9ec5accd05 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Mon, 13 Apr 2009 14:02:04 -0700 Subject: [PATCH] Add example command for mounting debugfs This is a nice opportunity to teach the user something, (and help our users to actually succeed in creating useful bug reports for us). --- tools/intel_gpu_dump.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/intel_gpu_dump.c b/tools/intel_gpu_dump.c index 23af24f..8ddfbd3 100644 --- a/tools/intel_gpu_dump.c +++ b/tools/intel_gpu_dump.c @@ -1953,7 +1953,10 @@ main (int argc, char *argv[]) path = "/sys/kernel/debug/dri/0"; err = stat(path, &st); if (err != 0) { - errx(1, "Couldn't find i915 debugfs directory\n"); + errx(1, + "Couldn't find i915 debugfs directory.\n\n" + "Is debugfs mounted? You might try mounting it with a command such as:\n\n" + "\tsudo mount -t debugfs debugfs /sys/kernel/debug\n"); } } } else { -- 2.7.4