Skip to content
Snippets Groups Projects
Commit 071bba22 authored by Wang Di's avatar Wang Di
Browse files

some fix in llanalyze

parent 6a5dfc38
No related branches found
No related tags found
No related merge requests found
...@@ -67,7 +67,7 @@ sub extractpid ...@@ -67,7 +67,7 @@ sub extractpid
{ {
$line = shift; $line = shift;
# print "$_\n"; # print "$_\n";
if ($line =~ m/\d+:\d+:\d+:\d+\.\d+:\d+:\d+:*$/) { if ($line =~ m/(\d+):(\d+):(\d+):(\d+\.\d+):(\d+):(\d+):.*$/) {
return $6; return $6;
} }
} }
...@@ -76,10 +76,27 @@ sub extracthostpid ...@@ -76,10 +76,27 @@ sub extracthostpid
{ {
$line = shift; $line = shift;
# print "$_\n"; # print "$_\n";
if ($line =~ m/\d+:\d+:\d+:\d+\.\d+:\d+:\d+:\d+:*$/) { if ($line =~ m/(\d+):(\d+):(\d+):(\d+\.\d+):(\d+):(\d+):(\d+):.*$/) {
return $7; return $7;
} }
} }
sub extractsubsys
{
$line = shift;
# print "$_\n";
if ($line =~ m/(\d+):(\d+):(\d+):(\d+\.\d+):(\d+):(\d+):(\d+):.*$/) {
return hex($1);
}
}
sub extractmask
{
$line = shift;
# print "$_\n";
if ($line =~ m/(\d+):(\d+):(\d+):(\d+\.\d+):(\d+):(\d+):(\d+):.*$/) {
return hex($2);
}
}
sub entering_rpc sub entering_rpc
{ {
...@@ -284,11 +301,10 @@ while (<LOG>) { ...@@ -284,11 +301,10 @@ while (<LOG>) {
} }
$linepid = extractpid($_); $linepid = extractpid($_);
$linehpid = extracthostpid($_);
$linemask = getmask($_);
$linesubsys = getsubsys($_);
# printf "---> mask %x subsys %x\n", $linemask, $linesubsys; $linehpid = extracthostpid($_);
$linesubsys = extractsubsys($_);
$linemask = extractmask($_);
if (leaving($_)) { if (leaving($_)) {
chop $prefix->{$linepid}; chop $prefix->{$linepid};
......
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