mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-09 08:56:11 +00:00
tests: Fix "-thrashing" and "-thrash-inactive" distinction
A typo in the relocation tests made both sub-tests perform the same action: drop *all* caches. Signed-off-by: Oscar Mateo <oscar.mateo@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
163d85d5f0
commit
a97402e89a
@ -289,7 +289,7 @@ static void do_forked_test(int fd, unsigned flags)
|
||||
if (flags & (THRASH | THRASH_INACTIVE)) {
|
||||
char fname[FILENAME_MAX];
|
||||
int drop_caches_fd;
|
||||
const char *data = THRASH_INACTIVE ? "0xf" : "0x7";
|
||||
const char *data = (flags & THRASH_INACTIVE) ? "0x7" : "0xf";
|
||||
|
||||
snprintf(fname, FILENAME_MAX, "%s/%i/%s",
|
||||
"/sys/kernel/debug/dri", drm_get_card(),
|
||||
|
@ -284,7 +284,7 @@ static void do_forked_test(int fd, unsigned flags)
|
||||
if (flags & (THRASH | THRASH_INACTIVE)) {
|
||||
char fname[FILENAME_MAX];
|
||||
int drop_caches_fd;
|
||||
const char *data = THRASH_INACTIVE ? "0xf" : "0x7";
|
||||
const char *data = (flags & THRASH_INACTIVE) ? "0x7" : "0xf";
|
||||
|
||||
snprintf(fname, FILENAME_MAX, "%s/%i/%s",
|
||||
"/sys/kernel/debug/dri", drm_get_card(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user