From 321273ff76fa16aabec0c6b0a63039525a4fec1b Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 28 May 2014 09:01:56 +0100 Subject: Factor in kernel object overhead when checking available memory for tests Signed-off-by: Chris Wilson --- lib/igt_aux.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/igt_aux.h') diff --git a/lib/igt_aux.h b/lib/igt_aux.h index 597580da..db0dea84 100644 --- a/lib/igt_aux.h +++ b/lib/igt_aux.h @@ -77,4 +77,8 @@ uint64_t intel_get_avail_ram_mb(void); uint64_t intel_get_total_ram_mb(void); uint64_t intel_get_total_swap_mb(void); +bool intel_check_memory(uint32_t count, uint32_t size, unsigned mode); +#define CHECK_RAM 0x1 +#define CHECK_SWAP 0x2 + #endif /* IGT_AUX_H */ -- cgit v1.2.3