1*cf84ac9aSAndroid Build Coastguard Worker#!/bin/sh 2*cf84ac9aSAndroid Build Coastguard Worker 3*cf84ac9aSAndroid Build Coastguard Worker# Check decoding of prctl PR_GET_NAME/PR_SET_NAME operations. 4*cf84ac9aSAndroid Build Coastguard Worker. "${srcdir=.}/init.sh" 5*cf84ac9aSAndroid Build Coastguard Worker 6*cf84ac9aSAndroid Build Coastguard Workercheck_prog grep 7*cf84ac9aSAndroid Build Coastguard Workerrun_prog > /dev/null 8*cf84ac9aSAndroid Build Coastguard Workerrun_strace -a23 -eprctl $args > "$EXP" 9*cf84ac9aSAndroid Build Coastguard Workergrep -v '^prctl(PR_GET_[^N][^A]' < "$LOG" > "$OUT" 10*cf84ac9aSAndroid Build Coastguard Workermatch_diff "$OUT" "$EXP" 11