File: filter_scalar

package info (click to toggle)
valgrind 1%3A3.16.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 158,568 kB
  • sloc: ansic: 746,130; exp: 26,134; xml: 22,708; asm: 13,570; cpp: 7,691; makefile: 6,177; perl: 5,965; sh: 5,665; javascript: 929
file content (15 lines) | stat: -rwxr-xr-x 554 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /bin/sh

# 'unlinkat' syscall number differs between Illumos and Solaris
sed "s/[0-9]*:            SYS_unlinkat/xx:            SYS_unlinkat/" |

# Filter out "in frame #x, created by" lines as they differ between x86/amd64.
# on x86:   in frame #0, created by syscall (???)
# on amd64: in frame #1, created by *function* (scalar.c:272)
sed '/in frame #., created by/d' |

./filter_stderr "$@" |

# And finally remove temporary line with frame #0 present to unify
# stack traces between x86 and amd64.
sed '/at 0x........: syscall (in \/...libc...)/d'