Paulo Zanoni 995f2738ad lib: add igt_debugfs_read()
A helpful function for when you want to read a whole debugfs file to a
string and don't want to worry about opening and closing file
descriptors and asserting buffer sizes.

We've been using this already for kms_frontbuffer_tracking and
kms_fbcon_fbt, so the only test with new code here is kms_fbc_crc.

Also notice that for kms_fbc_crc we had to increase the buffer size
since the file can sometimes be bigger than 64 bytes - depending on
the reason why FBC is disabled.

Of course, there are probably many other programs we can patch, but
I'm not doing this now.

v2: Add the macro to wrap sizeof() (Daniel).
v3: Add documentation for the macro too (Daniel).

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
2015-08-05 17:30:58 -03:00
..
2014-07-23 16:43:05 +01:00
2015-04-22 18:00:42 +01:00
2014-12-04 10:17:16 +08:00
2015-07-20 18:13:37 +01:00
2015-07-20 18:13:37 +01:00
2013-12-05 15:32:42 -08:00
2014-02-20 13:42:25 +00:00
2011-03-29 22:52:50 +02:00
2015-07-02 08:17:17 +01:00
2015-08-05 17:30:58 -03:00
2015-08-05 17:30:58 -03:00
2015-05-14 17:00:40 +01:00
2015-07-02 08:17:17 +01:00
2015-04-14 17:44:34 +01:00
2015-02-25 16:59:22 +00:00
2015-07-14 12:52:09 -03:00
2015-04-16 16:49:46 +03:00
2015-07-02 08:17:17 +01:00
2015-07-02 08:17:17 +01:00
2015-07-02 08:17:17 +01:00
2015-03-25 17:52:11 +00:00
2015-03-25 17:52:11 +00:00