HomeSort by relevance Sort by last modified time
    Searched refs:STRACE (Results 1 - 15 of 15) sorted by null

  /external/strace/tests/
run.sh 5 $STRACE -V > /dev/null ||
6 framework_failure_ "$STRACE is not available"
uio.test 14 $STRACE $args > $LOG 2>&1 || {
16 fail_ "$STRACE $args failed"
25 fail_ "$STRACE $args failed to trace \"$syscall\" properly"
strace-f.test 3 # Ensure that strace -f works.
10 $STRACE -f $time /bin/ls > $LOG 2>&1 ||
11 { cat $LOG; fail_ 'strace -f does not work'; }
strace-k.test 3 # Ensure that strace -k works.
7 # strace -k is implemented using /proc/$pid/maps
17 $STRACE -h | grep '^-k' > /dev/null ||
18 skip_ 'strace -k is not available'
21 $STRACE $args > $LOG 2>&1 || {
23 fail_ "$STRACE $args failed"
34 fail_ "unexpected output from $STRACE $args"
count.test 12 $STRACE $args > $LOG 2>&1 || {
14 fail_ "$STRACE $args failed"
22 fail_ "unexpected output from $STRACE $args"
scm_rights-fd.test 7 # strace -y is implemented using /proc/$pid/fd
20 $STRACE $args ||
21 fail_ "$STRACE $args failed"
23 "$srcdir"/../strace-log-merge $LOG > $LOG || {
25 fail_ 'strace-log-merge failed'
36 fail_ "$STRACE $args failed to trace \"$syscall\" properly"
sigaction.test 13 $STRACE $args ||
14 fail_ "strace $args failed"
ptrace_setoptions.test 3 # Ensure that strace tests kernel PTRACE_O_TRACECLONE
15 $STRACE -df -enone / > /dev/null 2> $LOG
18 fail_ 'strace -f failed to recognize proper kernel PTRACE_O_TRACECLONE support'
23 fail_ 'strace -f failed to recognize proper kernel PTRACE_O_TRACESYSGOOD support'
26 $STRACE -d -enone / > /dev/null 2> $LOG
29 fail_ 'strace failed to recognize proper kernel PTRACE_O_TRACESYSGOOD support'
qual_syscall.test 3 # Ensure that strace -e trace=set works.
10 $STRACE -e execve ls > /dev/null 2> $LOG &&
12 { cat $LOG; fail_ 'strace -e execve does not work'; }
16 { cat $LOG; fail_ 'strace -e execve does not work properly'; }
18 $STRACE -e trace=process ls > /dev/null 2> $LOG &&
20 { cat $LOG; fail_ 'strace -e trace=process does not work'; }
23 { cat $LOG; fail_ 'strace -e trace=process does not work properly'; }
stat.test 18 $STRACE -edesc $truncate_cmd 2>&1 > /dev/null 2> $LOG &&
20 { cat $LOG; fail_ 'strace -edesc failed to trace ftruncate/ftruncate64 properly'; }
23 { cat $LOG; fail_ 'strace -edesc failed to trace lseek/_llseek properly'; }
25 $STRACE -efile find -L sample > /dev/null 2> $LOG &&
27 { cat $LOG; fail_ 'strace -efile failed to trace stat/stat64 properly'; }
29 $STRACE -efile find sample > /dev/null 2> $LOG &&
31 { cat $LOG; fail_ 'strace -efile failed to trace fstatat/fstatat64 properly'; }
net-fd.test 7 # strace -y is implemented using /proc/self/fd
21 $STRACE $args ||
22 fail_ "strace $args failed"
24 "$srcdir"/../strace-log-merge $LOG > $LOG || {
26 fail_ 'strace-log-merge failed'
38 fail_ "strace -enetwork failed to trace \"$syscall\" properly"
net.test 16 $STRACE $args ||
17 fail_ "strace $args failed"
19 "$srcdir"/../strace-log-merge $LOG > $LOG || {
21 fail_ 'strace-log-merge failed'
33 fail_ "strace -enetwork failed to trace \"$syscall\" properly"
detach-running.test 3 # Ensure that strace can detach from running processes.
30 $STRACE -p $tracee_pid 2> $LOG &
34 { cat $LOG; cleanup; fail_ 'strace -p does not work'; }
42 { cat $LOG; cleanup; fail_ 'strace -p failed to detach'; }
detach-sleeping.test 3 # Ensure that strace can detach from sleeping processes.
31 $STRACE -p $tracee_pid 2> $LOG &
35 { cat $LOG; cleanup; fail_ 'strace -p does not work'; }
43 { cat $LOG; cleanup; fail_ 'strace -p failed to detach'; }
detach-stopped.test 3 # Ensure that strace can detach from stopped processes.
33 $STRACE -p $tracee_pid 2> $LOG &
37 { cat $LOG; cleanup; fail_ 'strace -p does not work'; }
43 { cat $LOG; cleanup; fail_ 'strace -p does not work'; }
51 { cat $LOG; cleanup; fail_ 'strace -p failed to detach'; }

Completed in 543 milliseconds