1#! /bin/sh 2 3############################################################################### 4# # 5# Copyright (c) 2010 FUJITSU LIMITED # 6# # 7# This program is free software; you can redistribute it and/or modify it # 8# under the terms of the GNU General Public License as published by the Free # 9# Software Foundation; either version 2 of the License, or (at your option) # 10# any later version. # 11# # 12# Author: Li Zefan <lizf@cn.fujitsu.com> # 13# # 14############################################################################### 15 16LOOP=200 17 18while true; do 19 i=0 20 while [ $i -lt $LOOP ]; do 21 for tracer in `cat "$TRACING_PATH"/available_tracers` 22 do 23 if [ "$tracer" = mmiotrace ]; then 24 continue 25 fi 26 27 echo $tracer > "$TRACING_PATH"/current_tracer 2> /dev/null 28 done 29 i=$((i + 1)) 30 done 31 sleep 1 32done 33