mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 01:16:18 +00:00
lib/igt_debugfs: Don't fail if debugfs is already mounted
Remove the igt_assert() from the debugfs mount. It will fail if debugfs is already mounted. With the assert in place it's very annying to use igt without i915 loaded (eg. to dump BIOS configured registers). Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
This commit is contained in:
parent
c9c554594e
commit
aba3582bb4
@ -102,7 +102,7 @@ static bool __igt_debugfs_init(igt_debugfs_t *debugfs)
|
||||
|
||||
igt_assert(stat("/sys/kernel/debug", &st) == 0);
|
||||
|
||||
igt_assert(mount("debug", "/sys/kernel/debug", "debugfs", 0, 0) == 0);
|
||||
mount("debug", "/sys/kernel/debug", "debugfs", 0, 0);
|
||||
|
||||
find_minor:
|
||||
strcpy(debugfs->root, path);
|
||||
|
Loading…
x
Reference in New Issue
Block a user