package
0.0.0-20240720002214-37b2b8227b91
Repository: https://github.com/progrium/go-netstack.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
Disable will disable Strace for all system calls and missing syscalls.
Enable enables the syscalls in allowlist in all syscall tables.
EnableAll enables all syscalls in all syscall tables.
Initialize prepares all syscall tables for use by this package.
Lookup returns the SyscallMap for the OS/Arch combination.
# Constants
CapData is the data argument to capget(2)/capset(2).
CapHeader is a cap_user_header_t.
CloneFlags are clone(2) flags.
CloseRangeFlags are close_range(2) flags.
DefaultLogMaximumSize is the default LogMaximumSize.
EpollCtlOp is the op argument to epoll_ctl(2).
EpollEvent is the event argument in epoll_ctl(2).
EpollEvents is an array of struct epoll_event.
ExecveStringVector is a NULL-terminated array of strings.
FD is a file descriptor.
FutexOp is the futex(2) operation.
GetSockOptVal is the optval argument in getsockopt(2).
Hex is just a hexadecimal number.
IOVec is a generic pointer to a struct iovec.
ItimerSpec is a pointer to a struct itimerspec.
ItimerType is an itimer type (ITIMER_REAL, etc).
ItimerVal is a pointer to a struct itimerval.
MmapFlags is the flags argument in mmap(2).
MmapProt is the protection argument in mmap(2).
Mode is a mode_t.
Oct is just an octal number.
OpenFlags are open(2) flags.
Path is a pointer to a char* path.
PipeFDs is an array of two FDs, formatted after syscall execution.
PollFDs is an array of struct pollfd.
PostCapData is the data argument to capget(2)/capset(2), formatted after syscall execution.
PostItimerSpec is a pointer to a struct itimerspec, formatted after syscall execution.
PostItimerVal is a pointer to a struct itimerval, formatted after syscall execution.
PostPath is a pointer to a char* path, formatted after syscall execution.
PostSigAction is a struct sigaction, formatted after syscall execution.
PostSigSet is a signal set, formatted after syscall execution.
PostSockAddr is a pointer to a struct sockaddr, formatted after syscall execution.
PostTimespec is a pointer to a struct timespec, formatted after syscall execution.
PtraceRequest is the ptrace(2) request.
ReadBuffer is a buffer for a read-style call.
ReadIOVec is a pointer to a struct iovec for a writev-style call.
RecvMsgHdr is a pointer to a struct msghdr for a recvmsg-style call.
Rusage is a struct rusage, formatted after syscall execution.
SelectFDSet is an fd_set argument in select(2)/pselect(2).
SendMsgHdr is a pointer to a struct msghdr for a sendmsg-style call.
SetSockOptVal is the optval argument in setsockopt(2).
SigAction is a struct sigaction.
Signal is a signal number.
SignalMaskAction is a signal mask action passed to rt_sigprocmask(2).
SigSet is a signal set.
SinkTypeEvent sends strace to event log.
SinkTypeLog sends straces to text log.
SockAddr is a pointer to a struct sockaddr.
SockFamily is a socket protocol family value.
SockFlags are socket flags.
SockLen is a pointer to a socklen_t, formatted before and after syscall execution.
SockOptLevel is the level argument in getsockopt(2) and setsockopt(2).
SockOptLevel is the optname argument in getsockopt(2) and setsockopt(2).
SockProtocol is a socket protocol value.
SockType is a socket type and flags value.
Stat is a pointer to a struct stat, formatted after syscall execution.
Timespec is a pointer to a struct timespec.
Timeval is a pointer to a struct timeval, formatted before and after syscall execution.
Uname is a pointer to a struct uname, formatted after syscall execution.
Utimbuf is a pointer to a struct utimbuf.
UTimeTimespec is a pointer to a struct timespec.
WriteBuffer is a buffer for a write-style call.
WriteIOVec is a pointer to a struct iovec for a writev-style call.
# Variables
CapabilityBitset is the set of capabilities in a bitset.
CloneFlagSet is the set of clone(2) flags.
CloseRangeFlagSet is the set of close_range(2) flags.
EventMaximumSize determines the maximum size for data blobs (read, write, etc.) sent over the event channel.
FutexCmd are the possible futex(2) commands.
ItimerTypes are the possible itimer types.
LogAppDataAllowed is set to true when printing application data in strace logs is allowed.
LogMaximumSize determines the maximum display size for data blobs (read, write, etc.).
MmapFlagSet is the set of mmap(2) flags.
OpenFlagSet is the set of open(2) flags.
OpenMode represents the mode to open(2) a file.
PollEventSet is the set of poll(2) event flags.
ProtectionFlagSet represents the protection to mmap(2).
PtraceRequestSet are the possible ptrace(2) requests.
SocketFamily are the possible socket(2) families.
SocketFlagSet are the possible socket(2) flags.
SocketProtocol are the possible socket(2) protocols for each protocol family.
SocketType are the possible socket(2) types.
# Structs
SyscallInfo captures the name and printing format of a syscall.
# Type aliases
FormatSpecifier values describe how an individual syscall argument should be formatted.
SinkType defines where to send straces to.
SyscallMap maps syscalls into names and printing formats.