diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2010-11-04 11:11:04 -0400 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2011-01-25 15:12:09 -0500 |
commit | 74a3e04ce86302668a7a4fcf6b450a1fb4ef65c1 (patch) | |
tree | edac6d29f1150bd3b1cd21e7c6691129687f8855 /st_trace | |
parent | 78ae60302b58a40a3ad27084cf8ba0f77b8dcbfd (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.
Diffstat (limited to 'st_trace')
-rwxr-xr-x | st_trace | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |
30 | NUM_CPUS=`egrep -c 'processor|online' /proc/cpuinfo` | 30 | NUM_CPUS=`egrep -c '^processor|online' /proc/cpuinfo` |
31 | 31 | ||
32 | ST_IDS="501 502 503 504 505 506 507 508 509" | 32 | ST_IDS="501 502 503 504 505 506 507 508 509" |
33 | 33 | ||