[igt-dev] [CI 2/8] tests/perf: Simplify generic read/write, use sysfs helpers

Chris Wilson chris at chris-wilson.co.uk
Mon Mar 18 10:52:08 UTC 2019


Quoting MichaƂ Winiarski (2019-03-14 12:50:44)
>  static void
> -write_u64_file(const char *file, uint64_t val)
> +write_u64_file(const char *path, uint64_t val)

Alternatively:

dir = open("/proc/sys/dev/i915/", O_RDONLY);
igt_sysfs_write(""perf_stream_paranoid", "%"PRIu64, 0); etc.
(Does it even need a u64 write...? nah)
-Chris


More information about the igt-dev mailing list