mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-21 21:32:56 +00:00
tests: use igt_debugfs where possible
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
This commit is contained in:
@@ -50,7 +50,9 @@ typedef struct {
|
||||
|
||||
static void get_crc(char *crc) {
|
||||
int ret;
|
||||
FILE *file = fopen("/sys/kernel/debug/dri/0/i915_sink_crc_eDP1", "r");
|
||||
FILE *file;
|
||||
|
||||
file = igt_debugfs_fopen("i915_sink_crc_eDP1", "r");
|
||||
igt_require(file);
|
||||
|
||||
ret = fscanf(file, "%s\n", crc);
|
||||
|
||||
Reference in New Issue
Block a user