summaryrefslogtreecommitdiff
path: root/lib/igt_debugfs.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2017-03-24 18:11:08 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2017-03-24 18:12:23 +0000
commit58de785468782f29e6eb1d32d47b55b3d234dfcf (patch)
treeea862ef365385096817e1ae7b636fab440d03e4f /lib/igt_debugfs.h
parent137360f75a42042198cf00d35a54cc68660d8c90 (diff)
Improve utilisation of igt_debugfs_dir()
As we can export igt_debugfs_dir() to cache the path to our debugfs directory, encourage a few more users to take advantage. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/igt_debugfs.h')
-rw-r--r--lib/igt_debugfs.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/igt_debugfs.h b/lib/igt_debugfs.h
index ff396564..cdad562d 100644
--- a/lib/igt_debugfs.h
+++ b/lib/igt_debugfs.h
@@ -33,9 +33,10 @@ enum pipe;
const char *igt_debugfs_mount(void);
+int igt_debugfs_dir(int device);
+
int igt_debugfs_open(int fd, const char *filename, int mode);
-FILE *igt_debugfs_fopen(int fd, const char *filename,
- const char *mode);
+FILE *igt_debugfs_fopen(int fd, const char *filename, const char *mode);
void __igt_debugfs_read(int fd, const char *filename, char *buf, int buf_size);
bool igt_debugfs_search(int fd, const char *filename, const char *substring);
@@ -203,8 +204,6 @@ void igt_enable_prefault(void);
* gem buffer objects
*/
int igt_get_stable_obj_count(int driver);
-
-int igt_debugfs_dir(int device);
void igt_debugfs_dump(int device, const char *filename);
#endif /* __IGT_DEBUGFS_H__ */