From 9690d0aeedff96ebf761252966aa19471ac93bc1 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 6 Apr 2016 21:50:12 +0100 Subject: lib: Add support for DROP_FREED in igt_drop_caches_set() Signed-off-by: Chris Wilson --- lib/igt_debugfs.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'lib/igt_debugfs.h') diff --git a/lib/igt_debugfs.h b/lib/igt_debugfs.h index 988025f9..8289e9d0 100644 --- a/lib/igt_debugfs.h +++ b/lib/igt_debugfs.h @@ -156,6 +156,12 @@ void igt_pipe_crc_collect_crc(igt_pipe_crc_t *pipe_crc, igt_crc_t *out_crc); * Also drop active objects once retired. */ #define DROP_ACTIVE 0x8 +/** + * DROP_FREED: + * + * Also drop freed objects. + */ +#define DROP_FREED 0x10 /** * DROP_ALL: * @@ -164,7 +170,8 @@ void igt_pipe_crc_collect_crc(igt_pipe_crc_t *pipe_crc, igt_crc_t *out_crc); #define DROP_ALL (DROP_UNBOUND | \ DROP_BOUND | \ DROP_RETIRE | \ - DROP_ACTIVE) + DROP_ACTIVE | \ + DROP_FREED) void igt_drop_caches_set(uint64_t val); -- cgit v1.2.3