aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2010-11-04 11:11:04 -0400
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2011-01-25 15:12:09 -0500
commit74a3e04ce86302668a7a4fcf6b450a1fb4ef65c1 (patch)
treeedac6d29f1150bd3b1cd21e7c6691129687f8855
parent78ae60302b58a40a3ad27084cf8ba0f77b8dcbfd (diff)
Fixup number-of-processor detection to handle ARM /proc/cpuinfo2011.1
There's a line with a stray 'processor' in the ARM /proc/cpuinfo that doesn't start in the first column. Let's not count that.
-rwxr-xr-xst_trace2
1 files changed, 1 insertions, 1 deletions
diff --git a/st_trace b/st_trace
index 8eef455..50057eb 100755
--- a/st_trace
+++ b/st_trace
@@ -27,7 +27,7 @@ trap 'on_finish' SIGUSR1
27# Setup up sched_trace tracing. 27# Setup up sched_trace tracing.
28 28
29# works for sparc64 and Intel x86 if all CPUs are online 29# works for sparc64 and Intel x86 if all CPUs are online
30NUM_CPUS=`egrep -c 'processor|online' /proc/cpuinfo` 30NUM_CPUS=`egrep -c '^processor|online' /proc/cpuinfo`
31 31
32ST_IDS="501 502 503 504 505 506 507 508 509" 32ST_IDS="501 502 503 504 505 506 507 508 509"
33 33