Skip to content
Snippets Groups Projects
Commit 43f5fe89 authored by Robert Read's avatar Robert Read Committed by Oleg Drokin
Browse files

LU-2921 iokit: plot-obdfilter fixes


plot-obdfilter was mixing up objects and threads in its output.

Signed-off-by: default avatarRobert Read <robert.read@intel.com>
Change-Id: If6aa66943b88ea0d35b5a8ab4b61b8f80df67fd5
Reviewed-on: http://review.whamcloud.com/5618


Tested-by: Hudson
Tested-by: default avatarMaloo <whamcloud.maloo@gmail.com>
Reviewed-by: default avatarMinh Diep <minh.diep@intel.com>
Reviewed-by: default avatarAndreas Dilger <andreas.dilger@intel.com>
Reviewed-by: default avatarOleg Drokin <oleg.drokin@intel.com>
parent 06389277
No related branches found
No related tags found
No related merge requests found
...@@ -93,7 +93,7 @@ sub write_scr_file() { ...@@ -93,7 +93,7 @@ sub write_scr_file() {
$i = 2; $i = 2;
$xrange = 1; $xrange = 1;
# generate instructions for gnuplot, with adjusting X-axes ranges # generate instructions for gnuplot, with adjusting X-axes ranges
for ($j = $first_thread; $j <= $thread ; $j = $j + $j) { for ($j = $first_obj; $j <= $obj ; $j = $j + $j) {
printf SCRFILE "$plot \"$file-$rsz-$op.dat\" using 1:$i axes x%dy1 title \"$rwlabel-obj$j\" with line\n", $xrange; printf SCRFILE "$plot \"$file-$rsz-$op.dat\" using 1:$i axes x%dy1 title \"$rwlabel-obj$j\" with line\n", $xrange;
$i++; $i++;
$plot = "replot"; $plot = "replot";
...@@ -114,12 +114,12 @@ sub write_dat_file() { ...@@ -114,12 +114,12 @@ sub write_dat_file() {
# Open .csv/.dat file for writing required columns from log file. # Open .csv/.dat file for writing required columns from log file.
open ( DATAFILE, "> $file-$rsz-$op.dat" ) or die "Can't open csv file for writing"; open ( DATAFILE, "> $file-$rsz-$op.dat" ) or die "Can't open csv file for writing";
printf DATAFILE "%-6s", "thrd"; printf DATAFILE "%-6s", "thrd";
for ($j = $first_thread; $j <= $thread ; $j = $j + $j) { for ($j = $first_obj; $j <= $obj; $j = $j + $j) {
printf DATAFILE "%-10s", "$op-obj$j"; printf DATAFILE "%-10s", "$op-obj$j";
} }
for ( $i = $first_obj; $i <= $obj; $i = $i + $i ) { for ( $i = $first_thread; $i <= $thread; $i = $i + $i ) {
printf DATAFILE "\n%-6s", $i; printf DATAFILE "\n%-6s", $i;
for ($j = $first_thread; $j <= $thread ; $j = $j + $j) { for ($j = $first_obj; $j <= $obj; $j = $j + $j) {
# switch-case can be used instead if else # switch-case can be used instead if else
if ($op eq "rd") { if ($op eq "rd") {
if ( $ard{$i}{$j} ) { if ( $ard{$i}{$j} ) {
...@@ -227,7 +227,7 @@ LABEL: while ( <PFILE> ) { ...@@ -227,7 +227,7 @@ LABEL: while ( <PFILE> ) {
} }
} }
} }
if ($rsz != $line[5]) { if ($rsz ne $line[5]) {
&write_files(); &write_files();
$rsz = $line[5]; $rsz = $line[5];
$first_obj = $line[7]; $first_obj = $line[7];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment