summaryrefslogtreecommitdiffstats
path: root/core/test
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2017-03-07 16:24:24 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-03-07 16:24:24 +1100
commit65561f0e9362d6373afbc62de510720b76c238e0 (patch)
tree5e89869c8d658ed41e29d9dfdf385d25976e7d93 /core/test
parent8e88933f7e2779a15aab81a57a5f5bb452f6533a (diff)
downloadtalos-skiboot-65561f0e9362d6373afbc62de510720b76c238e0.tar.gz
talos-skiboot-65561f0e9362d6373afbc62de510720b76c238e0.zip
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>
Diffstat (limited to 'core/test')
-rw-r--r--core/test/run-trace.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/test/run-trace.c b/core/test/run-trace.c
index fa8a30b1..98016886 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)
{
OpenPOWER on IntegriCloud