summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClark Williams <williams@redhat.com>2010-04-01 15:48:34 -0500
committerClark Williams <williams@redhat.com>2010-04-01 15:48:34 -0500
commit663bd628f5bd469b8cb3c4748f9ef24592aa6641 (patch)
tree9017f0a52d10ef1d3430472edf2cf87b835e6f39
parentf37d47179d8e9ef2dad51b959676215d8cb83ad3 (diff)
downloadrt-tests-663bd628f5bd469b8cb3c4748f9ef24592aa6641.tar.gz
fix bus error when in numa mode with more than 16 cores
The call numa_node_to_cpus() in rt_numa_numa_node_of_cpu() was failing because the cpumask buffer size was only 16 bytes and it seems to require 32. Change the declaration to be 256 just for paranoia's sake. Signed-off-by: Clark Williams <williams@redhat.com>
-rw-r--r--src/cyclictest/rt_numa.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cyclictest/rt_numa.h b/src/cyclictest/rt_numa.h
index 73ef3d8..2b91615 100644
--- a/src/cyclictest/rt_numa.h
+++ b/src/cyclictest/rt_numa.h
@@ -72,7 +72,7 @@ static int rt_numa_numa_node_of_cpu(int cpu)
static int rt_numa_numa_node_of_cpu(int cpu)
{
- unsigned char cpumask[16];
+ unsigned char cpumask[256];
int node, idx, bit;
int max_node, max_cpus;