From: thantry Date: Wed, 23 Apr 2003 01:16:29 +0000 (+0000) Subject: Fixed a logical error which was causing the first RPC to be skipped X-Git-Tag: v1_7_110~2^11~143 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=bf7cb9195721a8dcff975c1faa166a63e5d061a5;p=fs%2Flustre-release.git Fixed a logical error which was causing the first RPC to be skipped when creating HTML links. A more user-friendly output format --- diff --git a/lustre/utils/llparser.pm b/lustre/utils/llparser.pm index 317c5df..5348b60 100644 --- a/lustre/utils/llparser.pm +++ b/lustre/utils/llparser.pm @@ -581,10 +581,9 @@ sub HTML_leftpane my $element = $pidlist[0]; $element =~ /(\d+):(.*)/; my $numericpid = $1; + print LEFTHTML "$2"; if (!$nograph) { - print LEFTHTML "

$2

\n"; - } else { - print LEFTHTML "

$2

\n"; + print LEFTHTML " [ graph ]
"; } for($idx = 1; $idx <= $#pidlist; $idx++) { if ($numericpid) { @@ -1116,14 +1115,13 @@ sub HTML_rightpane print $HTMHANDLE $summary_indent_string x $summary_indent; print $HTMHANDLE "$text\n"; } elsif ($text =~ /rpcxid #(\d+)(.*)/) { - my $allexist = ($tmprpc->[$e_srvRPCent] && - $tmprpc->[$e_srvRPCexit] && - $tmprpc->[$e_cliRPCent] && - $tmprpc->[$e_cliRPCexit]); - if ($text =~ /link=/) { - $tmprpc = shift; - $pidhashref = shift; - + $tmprpc = shift; + my $allexist = ($tmprpc->[$e_srvRPCent] && + $tmprpc->[$e_srvRPCexit] && + $tmprpc->[$e_cliRPCent] && + $tmprpc->[$e_cliRPCexit]); + if ($text =~ /link=/) { + $pidhashref = shift; if ($tmprpc->[$e_rpcopc] < 104) { $anchortag = sprintf "%s_%s_%s_%s", $tmprpc->[$e_rpcopc], $tmprpc->[$e_rpcxid], @@ -1132,7 +1130,7 @@ sub HTML_rightpane $anchortag = sprintf "%s_%s_%s", $tmprpc->[$e_rpcopc], $tmprpc->[$e_rpcxid], $tmprpc->[$e_rpcpid]; - } + } my $rpcpidname = ($tmprpc->[$e_cliRPCent])->[$e_pid]; my $clipidcmdname = ($pidhashref->{$rpcpidname})->[$e_pidcmd]; if ($allexist) { @@ -1159,7 +1157,6 @@ sub HTML_rightpane print $HTMHANDLE "$rpctext\n"; } } else { - $tmprpc = shift; if ($tmprpc->[$e_rpcopc] < 104) { $anchorref = sprintf "%s_%s_%s_%s", $tmprpc->[$e_rpcopc], $tmprpc->[$e_rpcxid], $tmprpc->[$e_rpcpid], $tmprpc->[$e_rpcuuid]; @@ -1422,9 +1419,9 @@ sub print_summary_terse my $cl_time2 = $1; $srv_time =~ /\s*([0-9]+)/; my $srv_time2 = $1; - $line .= "\t\t[$cl_time2 usecs"; + $line .= "\t\t[$cl_time2 usecs/rpc"; if ($clientside) { - $line .= " (s=$srv_time2, n=$net_time)"; + $line .= " (server=$srv_time2, network=$net_time)"; } $line .= "] @ $pidoffset_time"; }