From 65561f0e9362d6373afbc62de510720b76c238e0 Mon Sep 17 00:00:00 2001 From: Stewart Smith Date: Tue, 7 Mar 2017 16:24:24 +1100 Subject: core/test/run-trace: Reduce number of samples when running under valgrind This reduces 'make check' run time by ~10 seconds on my laptop, and just the run-trace test itself takes 15 seconds less (under valgrind). Signed-off-by: Stewart Smith --- core/test/run-trace.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/test/run-trace.c b/core/test/run-trace.c index fa8a30b..9801688 100644 --- a/core/test/run-trace.c +++ b/core/test/run-trace.c @@ -26,6 +26,8 @@ #include #include +#include + /* Don't include these: PPC-specific */ #define __CPU_H #define __TIME_H @@ -130,7 +132,7 @@ static struct cpu_thread *this_cpu(void) } #include -#define PER_CHILD_TRACES (1024*1024) +#define PER_CHILD_TRACES ((RUNNING_ON_VALGRIND) ? (1024*16) : (1024*1024)) static void write_trace_entries(int id) { -- cgit v1.1