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 <[email protected]> # 13# # 14############################################################################### 15 16MAX_STACK_SIZE=8192 17 18while true; do 19 i=0 20 while [ $i -lt $MAX_STACK_SIZE ]; do 21 echo $i > "$TRACING_PATH"/stack_max_size 22 cat "$TRACING_PATH"/stack_max_size > /dev/null 23 i=$((i + 1)) 24 done 25 sleep 1 26done 27 28