1#!/bin/sh
2
3# Check decoding of prctl PR_GET_KEEPCAPS, PR_GET_SECCOMP, PR_GET_TIMERSLACK,
4# PR_GET_TIMING, PR_TASK_PERF_EVENTS_DISABLE, and PR_TASK_PERF_EVENTS_ENABLE
5# operations.
6. "${srcdir=.}/init.sh"
7
8check_prog grep
9run_prog > /dev/null
10run_strace -a21 -eprctl $args > "$EXP"
11grep -v '^prctl(PR_[GS]ET_[^KST][^EI][^CEM]' < "$LOG" > "$OUT"
12match_diff "$OUT" "$EXP"
13