3 # 'unlinkat' syscall number differs between Illumos and Solaris
4 sed "s/[0-9]*: SYS_unlinkat/xx: SYS_unlinkat/" |
6 # Filter out "in frame #x, created by" lines as they differ between x86/amd64.
7 # on x86: in frame #0, created by syscall (???)
8 # on amd64: in frame #1, created by *function* (scalar.c:272)
9 sed '/in frame #., created by/d' |
11 .
/filter_stderr
"$@" |
13 # And finally remove temporary line with frame #0 present to unify
14 # stack traces between x86 and amd64.
15 sed '/at 0x........: syscall (in \/...libc...)/d'