From df393b378983cf925ab9145d6eb3e773a8aee50c Mon Sep 17 00:00:00 2001 From: "Bjoern B. Brandenburg" Date: Tue, 2 Aug 2011 19:22:36 -0400 Subject: Count lock samples, too. --- count-all | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/count-all b/count-all index 7a353bc..45344f8 100755 --- a/count-all +++ b/count-all @@ -1,6 +1,6 @@ #!/bin/bash -EVENTS="SCHED SCHED2 TICK CXS RELEASE RELEASE-LATENCY SEND-RESCHED" +EVENTS="SCHED SCHED2 TICK CXS RELEASE RELEASE-LATENCY SEND-RESCHED LOCK UNLOCK READ-LOCK READ-UNLOCK SYSCALL-IN SYSCALL-OUT" DIR="$1" @@ -12,6 +12,12 @@ fi for E in $EVENTS do FILES=`find "$DIR" -iname "*overhead=${E}.bin"` - shuffle_truncate.py --count $FILES > counts_overhead=${E}.txt + if [ ! -z "$FILES" ] + then + echo "Counting $E..." + shuffle_truncate.py --count $FILES > counts_overhead=${E}.txt + else + echo "Skipping $E: no such samples found." + fi done -- cgit v1.2.2