# List of XML sections to be ignored.
my %ignore_sections = (
"<errorcounts>" => "</errorcounts>",
- "<suppcounts>" => "</suppcounts>"
+ "<suppcounts>" => "</suppcounts>",
+ "pthread_create_WRK</fn>" => "<obj>"
+);
+
+# List of XML sections to be quietly ignored.
+my %quiet_ignore_sections = (
+ "pthread_create_WRK</fn>" => "<obj>"
);
my $frame_buf = "";
-my ($file, $lineno, $in_frame, $keep_frame, $num_discarded, $ignore_line);
+my ($file, $lineno, $in_frame, $keep_frame, $num_discarded, $ignore_line, $quiet_ignore_line);
-$in_frame = $keep_frame = $num_discarded = $ignore_line = 0;
+$in_frame = $keep_frame = $num_discarded = $ignore_line = $quiet_ignore_line = 0;
line:
while (<STDIN>) {
if ($ignore_line) {
foreach my $tag (keys %ignore_sections) {
if ($line =~ $ignore_sections{$tag}) {
- print "$tag...$ignore_sections{$tag}\n";
+ if ($quiet_ignore_line == 0) {
+ print "$tag...$ignore_sections{$tag}\n";
+ }
$ignore_line = 0;
+ $quiet_ignore_line = 0;
next line;
}
}
$ignore_line = 1;
}
}
+ # Determine if this section is also in the quiet list.
+ foreach my $tag (keys %quiet_ignore_sections) {
+ if ($line =~ $tag) {
+ $quiet_ignore_line = 1;
+ }
+ }
}
next if ($ignore_line);