benchmarks/gem_exec_trace: Unmap each trace after replay

Just on the off chance someone is replaying a bunch of traces, remember
to cleanup up.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2015-08-10 18:51:03 +01:00
parent b483e68173
commit 98bcc18572

View File

@ -249,6 +249,7 @@ static void replay(const char *filename)
} while (ptr < end); } while (ptr < end);
clock_gettime(CLOCK_MONOTONIC, &t_end); clock_gettime(CLOCK_MONOTONIC, &t_end);
close(fd); close(fd);
munmap(end-st.st_size, st.st_size);
printf("%s: %.3f\n", filename, elapsed(&t_start, &t_end)); printf("%s: %.3f\n", filename, elapsed(&t_start, &t_end));
} }