Mercurial > yaffs-ecoscentric-gpl
diff linux-tests/gather_data.sh @ 392:37c92ae29f6e
Add scripts for realtime plotting erased psace vs free space
| author | Charles Manning <cdhmanning@gmail.com> |
|---|---|
| date | Fri, 19 Mar 2010 16:06:14 +1300 |
| parents | |
| children | 675a2af6ea46 |
line wrap: on
line diff
new file mode 100755 --- /dev/null +++ b/linux-tests/gather_data.sh @@ -0,0 +1,14 @@ +#! /bin/sh +# gather_data.sh agthers the data to be plotted +# +the_file=data +i=0; +rm -f $the_file + +while true; do +str=$(cat /proc/yaffs_debug) +echo "$i, $str" +echo "$i, $str" >> $the_file +let i=$i+1 +sleep 1 +done
