summaryrefslogtreecommitdiff
path: root/build_static_example.sh
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2013-05-14 16:07:46 +0200
committerDenys Vlasenko <dvlasenk@redhat.com>2013-05-14 16:10:42 +0200
commit2a3d27552f17a5b378344620bec7d255bac65a8d (patch)
tree1f04f471af05982933c3badd2fe31aafc3becd30 /build_static_example.sh
parent01997cf32d4492b9898283ced45e8a4a6fd161b8 (diff)
downloadstrace-2a3d27552f17a5b378344620bec7d255bac65a8d.tar.gz
strace-2a3d27552f17a5b378344620bec7d255bac65a8d.tar.bz2
strace-2a3d27552f17a5b378344620bec7d255bac65a8d.tar.xz
Hide startup syscalls.
Tested with "./strace [-D] [-q] [-bexecve] env true", all cases seem to work. * defs.h: Declare new variable: bool hide_log_until_execve. * strace.c: Define hide_log_until_execve. Rename skip_startup_execve to skip_one_b_execve. (startup_child): Do not set skip_one_b_execve = 1 here. (init): If "strace PROG" case (as opposed to "strace -pPID"), set skip_one_b_execve and hide_log_until_execve to 1. (trace): Don't print signal messages if hide_log_until_execve == 1. * syscall.c (trace_syscall_entering): Skip syscall printing if hide_log_until_execve == 1. Reset hide_log_until_execve if we enter execve syscall. (trace_syscall_exiting): Skip syscall printing if hide_log_until_execve == 1. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'build_static_example.sh')
0 files changed, 0 insertions, 0 deletions