Home | History | Annotate | Download | only in ftrace_stress
      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 (at] cn.fujitsu.com>                                      #
     13 #                                                                             #
     14 ###############################################################################
     15 
     16 MAX_LATENCY=100000
     17 
     18 while true; do
     19 	i=0
     20 	while [ $i -lt $MAX_LATENCY ]; do
     21 		echo $i > "$TRACING_PATH"/tracing_max_latency
     22 		i=$((i + 400))
     23 	done
     24 
     25 	sleep 1
     26 
     27 done
     28