Skip to content

Commit

Permalink
dtrace: handle .init.scratch section in /proc/kallmodsyms
Browse files Browse the repository at this point in the history
The earlier patch overlooked intermittent failures in
test/unittest/aggs/tst.aggmod_full.sh

Apply similar fixes to this test as was made in the earlier patch.

Orabug: 30149066
Signed-off-by: Eugene Loh <eugene.loh@oracle.com>
Reviewed-by: Nick Alcock <nick.alcock@oracle.com>
  • Loading branch information
euloh authored and nickalcock committed Nov 25, 2020
1 parent b9793bf commit f3a6e95
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions test/unittest/aggs/tst.aggmod_full.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,16 @@ cd $DIRNAME
# . type (3rd field) is "a"
# . type (3rd field) is "A"
# - can add special cases based on symbol name (4th field)
awk '{
if (NF == 4) {$5 = "[vmlinux]"};
if ($3 == "a") {$2 = 0};
if ($3 == "A") {$2 = 0};
if ($2 != 0) { print $1 >> $5 }
}' /proc/kallmodsyms
awk '
NF == 4 && $4 == "__init_scratch_begin" {
while ($4 != "__init_scratch_end") getline;
next;
}
NF == 4 {$5 = "[vmlinux]"};
$3 == "a" {$2 = 0};
$3 == "A" {$2 = 0};
$2 != 0 { print $1 >> $5 }
' /proc/kallmodsyms

# process the files whose names start with a '['

Expand Down

0 comments on commit f3a6e95

Please sign in to comment.