This contains thread state that tracers can inspect and modify. It is
captured when a thread stops, and optionally copied back (if dirty) when a
thread starts again. An alternative implementation would involve the
tracers acting on thread state directly; however, this would involve sharing
CurrentTask structures across multiple threads, which goes against the
intent of the design of CurrentTask.
CgroupPidTable contains the mapping of ThreadGroup (by pid) to non-root cgroup.
If pid is valid but does not exist in the mapping, then it is assumed to be in the root cgroup.
CgroupRoot is the root of the cgroup hierarchy. The root cgroup is different from the rest of
the cgroups in a cgroup hierarchy (sub-cgroups of the root) in a few ways:
The task normal priority, used for favoring or disfavoring a task running
with some non-real-time scheduling policies. Ranges from -20 to +19 in
“user-space” representation and +1 to +40 in “kernel-internal”
representation. See “The nice value” at sched(7) for full specification.
Host kernel free-memory watermarks (in MiB) configured via Product Assembly
(platform.kernel.oom) and routed to starnix_kernel as structured configuration.
The underlying implementation of the file descriptor that connects a process that triggers a
SECCOMP_RET_USER_NOTIF with the monitoring process. This support seccomp’s ability to notify a
user-space process on specific syscall triggers. See seccomp_unotify(2) for the semantics.
The information of the task that needs to be available to the ThreadGroup while computing
which process a wait can target. It is necessary to shared this data with the ThreadGroup so
that it is available while the task is being dropped and so is not accessible from a weak
pointer.
Parent process reference for a ThreadGroup, tracking both the parent
ThreadGroup and, prior to reparenting, the specific Task within that
parent that created the child process.
Opens a syscall duration on the current thread even if CATEGORY_STARNIX is disabled, so
tests can check that code ends it. Drop the returned scope to clear it.