Dmitry V. Levin
476ec393c3
Change syscall names to match kernel __NR_* constants. * linux/avr32/syscallent.h [90]: Rename "mmap" to "mmap2". * linux/bfin/syscallent.h [90]: Rename "old_mmap" to "mmap". * linux/i386/syscallent.h: Likewise. * linux/m68k/syscallent.h: Likewise. * linux/microblaze/syscallent.h: Likewise. * linux/sh/syscallent.h: Likewise. * linux/sh64/syscallent.h: Likewise. * tests/mmap.c (main): Remove old_mmap from expected output. * tests/mmap.test: Remove old_mmap from the list of mmap syscalls.
21 lines
312 B
Bash
Executable File
21 lines
312 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Check mmap/mprotect/munmap syscalls decoding.
|
|
|
|
. "${srcdir=.}/init.sh"
|
|
|
|
syscall=mprotect,munmap
|
|
for n in mmap mmap2; do
|
|
$STRACE -e$n -h > /dev/null && syscall=$syscall,$n
|
|
done
|
|
|
|
OUT="$LOG.out"
|
|
|
|
run_prog > /dev/null
|
|
run_strace -e$syscall $args > "$OUT"
|
|
match_grep "$LOG" "$OUT"
|
|
|
|
rm -f "$OUT"
|
|
|
|
exit 0
|