diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-03-07 16:24:24 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-03-07 16:24:24 +1100 |
commit | 65561f0e9362d6373afbc62de510720b76c238e0 (patch) | |
tree | 5e89869c8d658ed41e29d9dfdf385d25976e7d93 | |
parent | 8e88933f7e2779a15aab81a57a5f5bb452f6533a (diff) | |
download | skiboot-65561f0e9362d6373afbc62de510720b76c238e0.zip skiboot-65561f0e9362d6373afbc62de510720b76c238e0.tar.gz skiboot-65561f0e9362d6373afbc62de510720b76c238e0.tar.bz2 |
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 <stewart@linux.vnet.ibm.com>
-rw-r--r-- | core/test/run-trace.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 <sys/types.h> #include <sys/wait.h> +#include <valgrind/valgrind.h> + /* Don't include these: PPC-specific */ #define __CPU_H #define __TIME_H @@ -130,7 +132,7 @@ static struct cpu_thread *this_cpu(void) } #include <sys/mman.h> -#define PER_CHILD_TRACES (1024*1024) +#define PER_CHILD_TRACES ((RUNNING_ON_VALGRIND) ? (1024*16) : (1024*1024)) static void write_trace_entries(int id) { |