181#ifndef LINUX__FD_SETSIZE
182#define LINUX__FD_SETSIZE 1024
Defines global host-dependent types: Counter, Tick, and (indirectly) {int,uint}{8,...
This class encapsulates the types, structures, constants, functions, and syscall-number mappings spec...
static const unsigned TGT_CLONE_IO
static const unsigned TGT_FUTEX_OP_CMP_LT
static const unsigned TGT_WEXITED
static const unsigned TGT_CLONE_PARENT
static const unsigned TGT_RLIMIT_RTTIME
static const int TGT_AT_REMOVEDIR
static const unsigned TGT_FUTEX_WAIT_BITSET
static const unsigned TGT_RLIMIT_LOCKS
static const unsigned TGT_FUTEX_PRIVATE_FLAG
static const unsigned TGT_FUTEX_OP_CMP_GE
static const unsigned TGT_CLONE_NEWUSER
static const unsigned TGT_FUTEX_WAIT
static const unsigned TGT_FUTEX_OP_CMP_GT
static const unsigned TGT_RLIMIT_FSIZE
static bool isTtyReq(unsigned req)
Return true for the ioctl codes for which we return ENOTTY without printing a warning,...
static const int TGT_AT_SYMLINK_FOLLOW
static const unsigned TGT_CLONE_FS
static const unsigned TGT_FIONREAD
static int openSpecialFile(std::string path, Process *process, ThreadContext *tc)
static const unsigned TGT_RLIMIT_CORE
static const unsigned TGT_RLIMIT_RTPRIO
static const unsigned TGT_CLONE_NEWUTS
static const unsigned TGT_CLONE_SETTLS
static const unsigned TGT_FUTEX_CMP_REQUEUE
static const unsigned TGT_FUTEX_OP_CMP_NE
static const int TGT_RUSAGE_SELF
For getrusage().
static const unsigned TGT_CLONE_NEWNET
static std::string procMeminfo(Process *process, ThreadContext *tc)
static const unsigned TGT_CLONE_NEWPID
static const unsigned TGT_EAGAIN
static const unsigned TGT_CLONE_VFORK
static const unsigned TGT_CLONE_PIDFD
uint64_t size_t
Basic Linux types.
static const unsigned TGT_RLIMIT_SIGPENDING
static const unsigned TGT_WCONTINUED
static const unsigned TGT_CLONE_CHILD_CLEARTID
static const unsigned TGT_RLIM_NLIMITS
static std::string devRandom(Process *process, ThreadContext *tc)
static const unsigned TGT_CLONE_CHILD_SETTID
static const int TGT_AT_EMPTY_PATH
static std::string procSelfMaps(Process *process, ThreadContext *tc)
static const int TGT_AT_FDCWD
static const unsigned TGT_FUTEX_OP_ARG_SHIFT
static const unsigned TGT_WSTOPPED
static const int _SYS_NMLN
Length of strings in struct utsname (plus 1 for null char).
static const unsigned TGT_CLONE_FILES
static const unsigned TGT_CLONE_DETACHED
static const int TGT_RUSAGE_CHILDREN
static const unsigned TGT_WNOHANG
static const unsigned TGT_FUTEX_OP_OR
static const unsigned TGT_CLONE_SYSVSEM
static const unsigned TGT_WNOWAIT
static const unsigned TGT_FUTEX_REQUEUE
static const unsigned TGT_CLONE_PTRACE
static const unsigned TGT_FUTEX_OP_ADD
static const int TGT_AT_NO_AUTOMOUNT
static const unsigned TGT_WUNTRACED
static std::string cpuOnline(Process *process, ThreadContext *tc)
static const unsigned TGT_MREMAP_FIXED
static const unsigned TGT_CLONE_NEWIPC
static const unsigned TGT_RLIMIT_STACK
static const unsigned TGT_RLIMIT_MEMLOCK
static const unsigned TGT_FUTEX_WAKE
static const unsigned TGT_MREMAP_MAYMOVE
static const unsigned TGT_RLIMIT_NOFILE
static const unsigned TGT_FUTEX_OP_ANDN
static const unsigned TGT_CLONE_PARENT_SETTID
static const unsigned TGT_EWOULDBLOCK
static const unsigned TGT_CLONE_VM
static const unsigned TGT_RLIMIT_NICE
static const unsigned TGT_CLONE_UNTRACED
static std::string etcPasswd(Process *process, ThreadContext *tc)
static const unsigned TGT_TCSETAW
static const unsigned TGT_FUTEX_WAKE_BITSET
static const unsigned TGT_CLONE_NEWNS
static const unsigned TGT_RLIMIT_MSGQUEUE
static const int TGT_RUSAGE_BOTH
static const unsigned TGT_CLONE_THREAD
static const unsigned TGT_RLIMIT_RSS
static const unsigned TGT_FUTEX_WAKE_OP
static const unsigned TGT_TCGETS
ioctl() command codes.
static const unsigned TGT_FUTEX_OP_SET
static const unsigned TGT_FUTEX_OP_CMP_EQ
static const unsigned TGT_FUTEX_OP_CMP_LE
static const unsigned TGT_RLIMIT_AS
static const unsigned TGT_TCGETA
static const unsigned TGT_RLIMIT_NPROC
static const int M5_SC_CLK_TCK
Clock ticks per second, for times().
static const unsigned TGT_FUTEX_OP_XOR
static const unsigned TGT_CLONE_SIGHAND
static const unsigned TGT_RLIMIT_DATA
static const unsigned TGT_FUTEX_CLOCK_REALTIME_FLAG
static const unsigned TGT_RLIMIT_CPU
Resource constants for getrlimit().
This class encapsulates the types, structures, constants, functions, and syscall-number mappings spec...
ThreadContext is the external interface to all thread state for anything outside of the CPU.
#define LINUX__FD_SETSIZE
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
unsigned long fds_bits[LINUX__FD_SETSIZE/(8 *sizeof(long))]
Limit struct for getrlimit/setrlimit.
uint64_t rlim_max
hard limit
uint64_t rlim_cur
soft limit
int64_t ru_ixrss
integral shared memory size
int64_t ru_majflt
page faults
struct timeval ru_utime
user time used
int64_t ru_inblock
block input operations
int64_t ru_isrss
integral unshared stack "
int64_t ru_oublock
block output operations
int64_t ru_idrss
integral unshared data "
int64_t ru_msgsnd
messages sent
int64_t ru_nvcsw
voluntary context switches
int64_t ru_minflt
page reclaims - total vmfaults
struct timeval ru_stime
system time used
int64_t ru_nsignals
signals received
int64_t ru_nivcsw
involuntary "
int64_t ru_msgrcv
messages received
uint64_t st_atimeX
time of last access
uint32_t st_uid
owner's user ID
uint64_t st_mtimeX
time of last modification
uint32_t st_gid
owner's group ID
int32_t st_blocks
number of blocks allocated
uint32_t st_blksize
optimal I/O block size
uint64_t st_ctimeX
time of last status change
int32_t _pad1
for alignment
uint32_t st_nlink
link count
int64_t st_size
file size in bytes
uint32_t st_rdev
device number
int64_t tv_nsec
nanoseconds
int64_t tv_usec
microseconds
int64_t tms_cstime
system time of children
int64_t tms_utime
user time
int64_t tms_stime
system time
int64_t tms_cutime
user time of children
Interface struct for uname().
char nodename[_SYS_NMLN]
Node name.
char version[_SYS_NMLN]
OS version.
char machine[_SYS_NMLN]
Machine type.
char release[_SYS_NMLN]
OS release.
char sysname[_SYS_NMLN]
System name.