github.com/google/syzkaller@v0.0.0-20240517125934-c0f1611a36d6/sys/netbsd/ktrace.txt (about) 1 # Copyright 2018 syzkaller project authors. All rights reserved. 2 # Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. 3 4 include <sys/param.h> 5 6 include <sys/ktrace.h> 7 8 ktrace(tracefile ptr[in, filename], ops flags[ktrace_op_flags], trpoints flags[ktrace_trace_flags], pid pid) 9 fktrace(fd fd, ops flags[ktrace_op_flags], trpoints flags[ktrace_trace_flags], pid pid) 10 11 ktrace_op_flags = KTROP_SET, KTROP_CLEAR, KTROP_CLEARFILE, KTRFLAG_DESCEND 12 ktrace_trace_flags = KTRFAC_SYSCALL, KTRFAC_SYSRET, KTRFAC_NAMEI, KTRFAC_GENIO, KTRFAC_PSIG, KTRFAC_CSW, KTRFAC_EMUL, KTRFAC_USER, KTRFAC_EXEC_ARG, KTRFAC_EXEC_ENV, KTRFAC_MIB, KTR_EXEC_FD, KTRFAC_PERSISTENT, KTRFAC_INHERIT