Noteworthy changes in release ?.?? (????-??-??)
===============================================
+* Changes in command line syntax
+ * Syscall classes specified in -e trace= option now have % prefix (like
+ -e trace=%process). Old style class names without leading % are still
+ supported, but considered deprecated now.
+
* Improvements
* Enhanced decoding of sched_setattr syscall.
{ "signal", TRACE_SIGNAL },
{ "ipc", TRACE_IPC },
{ "network", TRACE_NETWORK },
+ { "%desc", TRACE_DESC },
+ { "%file", TRACE_FILE },
+ { "%memory", TRACE_MEMORY },
+ { "%process", TRACE_PROCESS },
+ { "%signal", TRACE_SIGNAL },
+ { "%ipc", TRACE_IPC },
+ { "%network", TRACE_NETWORK },
};
unsigned int i;
about the user/kernel boundary if only a subset of system calls
are being monitored. The default is
.BR trace = all .
+.PP
+.BR "\-e\ trace" = %file
.TP
-.BR "\-e\ trace" = file
+.BR "\-e\ trace" = file " (deprecated)"
Trace all system calls which take a file name as an argument. You
can think of this as an abbreviation for
.BR "\-e\ trace" = open , stat , chmod , unlink ,...
accidentally forget to include a call like
.B lstat
in the list. Betchya woulda forgot that one.
+.PP
+.BR "\-e\ trace" = %process
.TP
-.BR "\-e\ trace" = process
+.BR "\-e\ trace" = process " (deprecated)"
Trace all system calls which involve process management. This
is useful for watching the fork, wait, and exec steps of a process.
+.PP
+.BR "\-e\ trace" = %network
.TP
-.BR "\-e\ trace" = network
+.BR "\-e\ trace" = network " (deprecated)"
Trace all the network related system calls.
+.PP
+.BR "\-e\ trace" = %signal
.TP
-.BR "\-e\ trace" = signal
+.BR "\-e\ trace" = signal " (deprecated)"
Trace all signal related system calls.
+.PP
+.BR "\-e\ trace" = %ipc
.TP
-.BR "\-e\ trace" = ipc
+.BR "\-e\ trace" = ipc " (deprecated)"
Trace all IPC related system calls.
+.PP
+.BR "\-e\ trace" = %desc
.TP
-.BR "\-e\ trace" = desc
+.BR "\-e\ trace" = desc " (deprecated)"
Trace all file descriptor related system calls.
+.PP
+.BR "\-e\ trace" = %memory
.TP
-.BR "\-e\ trace" = memory
+.BR "\-e\ trace" = memory " (deprecated)"
Trace all memory mapping related system calls.
.TP
\fB\-e\ abbrev\fR=\,\fIset\fR
. "${srcdir=.}/init.sh"
run_prog ./net-accept-connect net-local-stream
-run_strace_merge -enetwork $args
+run_strace_merge -e%network $args
match_grep
exit 0
[ -d /proc/self/fd/ ] ||
framework_skip_ '/proc/self/fd/ is not available'
-run_strace_match_diff -e trace=network
+run_strace_match_diff -e trace=%network
-efault=exit:error=1:when=2+ ./answer
test_with -eexit,exit_group -efault=exit_group:error=ENOSYS \
- -efault=\!desc,file,memory,process,signal,network,ipc:error=1 ./answer
+ -efault=\!%desc,%file,%memory,%process,%signal,%network,%ipc:error=1 ./answer
LC_ALL=C grep '^[[:alnum:]_]*(' > /dev/null &&
dump_log_and_fail_with "$STRACE $args unexpected output"
-check_output_mismatch "$pattern_abbrev_verbose" -e trace=process
+check_output_mismatch "$pattern_abbrev_verbose" -e trace=%process
LC_ALL=C grep '^chdir' "$LOG" > /dev/null &&
dump_log_and_fail_with "$STRACE $args unexpected output"
framework_skip_ 'failed to create a file'
run_prog ./scm_rights /dev/zero
-run_strace -y -x -enetwork $args "$file"
+run_strace -y -x -e%network $args "$file"
hex='[[:xdigit:]]'
n='[1-9][0-9]*'
. "${srcdir=.}/init.sh"
run_prog
-run_strace -esignal $args
+run_strace -e%signal $args
mask='\[(USR2 CHLD|CHLD USR2) RT_3 RT_4 RT_5 RT_26 RT_27\]'
rt_sigprocmask='rt_sigprocmask\(SIG_SETMASK, '"$mask"', NULL, [[:digit:]]+\) += 0'
. "${srcdir=.}/init.sh"
run_prog
-run_strace -edesc $args
+run_strace -e%desc $args
match_grep
exit 0