From 74a3e04ce86302668a7a4fcf6b450a1fb4ef65c1 Mon Sep 17 00:00:00 2001 From: "Bjoern B. Brandenburg" Date: Thu, 4 Nov 2010 11:11:04 -0400 Subject: Fixup number-of-processor detection to handle ARM /proc/cpuinfo 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. --- st_trace | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 # Setup up sched_trace tracing. # works for sparc64 and Intel x86 if all CPUs are online -NUM_CPUS=`egrep -c 'processor|online' /proc/cpuinfo` +NUM_CPUS=`egrep -c '^processor|online' /proc/cpuinfo` ST_IDS="501 502 503 504 505 506 507 508 509" -- cgit v1.2.2