Mercurial > yaffs-ecoscentric-gpl
annotate linux-tests/drive_gnuplot.sh @ 401:7d524c984100
Tweak nfs support
Fix problem that caused a regression in busybox rm on directories
with many files.
Limit the feature to only compile with more recent kernels that have
all the required features.
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
| author | Charles Manning <cdhmanning@gmail.com> |
|---|---|
| date | Wed, 14 Apr 2010 11:24:26 +1200 |
| parents | fab223fcc02c |
| children |
| rev | line source |
|---|---|
|
392
37c92ae29f6e
Add scripts for realtime plotting erased psace vs free space
Charles Manning <cdhmanning@gmail.com>
parents:
diff
changeset
|
1 #!/bin/sh |
|
37c92ae29f6e
Add scripts for realtime plotting erased psace vs free space
Charles Manning <cdhmanning@gmail.com>
parents:
diff
changeset
|
2 # drive_gnuplot syntehsises the commands for driving gnuplot |
|
37c92ae29f6e
Add scripts for realtime plotting erased psace vs free space
Charles Manning <cdhmanning@gmail.com>
parents:
diff
changeset
|
3 |
|
37c92ae29f6e
Add scripts for realtime plotting erased psace vs free space
Charles Manning <cdhmanning@gmail.com>
parents:
diff
changeset
|
4 the_log_file=data |
|
37c92ae29f6e
Add scripts for realtime plotting erased psace vs free space
Charles Manning <cdhmanning@gmail.com>
parents:
diff
changeset
|
5 |
|
37c92ae29f6e
Add scripts for realtime plotting erased psace vs free space
Charles Manning <cdhmanning@gmail.com>
parents:
diff
changeset
|
6 plot_str=" plot 'trunc_data' using 1:3 with linespoints title 'free', '' using 1:4 with linespoints title 'erased'" |
|
37c92ae29f6e
Add scripts for realtime plotting erased psace vs free space
Charles Manning <cdhmanning@gmail.com>
parents:
diff
changeset
|
7 |
|
37c92ae29f6e
Add scripts for realtime plotting erased psace vs free space
Charles Manning <cdhmanning@gmail.com>
parents:
diff
changeset
|
8 echo "set title 'yaffs free space and erased space'" |
|
37c92ae29f6e
Add scripts for realtime plotting erased psace vs free space
Charles Manning <cdhmanning@gmail.com>
parents:
diff
changeset
|
9 |
|
37c92ae29f6e
Add scripts for realtime plotting erased psace vs free space
Charles Manning <cdhmanning@gmail.com>
parents:
diff
changeset
|
10 echo $plot_str |
|
37c92ae29f6e
Add scripts for realtime plotting erased psace vs free space
Charles Manning <cdhmanning@gmail.com>
parents:
diff
changeset
|
11 |
|
37c92ae29f6e
Add scripts for realtime plotting erased psace vs free space
Charles Manning <cdhmanning@gmail.com>
parents:
diff
changeset
|
12 while true; do |
|
37c92ae29f6e
Add scripts for realtime plotting erased psace vs free space
Charles Manning <cdhmanning@gmail.com>
parents:
diff
changeset
|
13 sleep 1 |
| 397 | 14 tail -500 $the_log_file > trunc_data |
|
392
37c92ae29f6e
Add scripts for realtime plotting erased psace vs free space
Charles Manning <cdhmanning@gmail.com>
parents:
diff
changeset
|
15 echo replot |
|
37c92ae29f6e
Add scripts for realtime plotting erased psace vs free space
Charles Manning <cdhmanning@gmail.com>
parents:
diff
changeset
|
16 done |
|
37c92ae29f6e
Add scripts for realtime plotting erased psace vs free space
Charles Manning <cdhmanning@gmail.com>
parents:
diff
changeset
|
17 |
