syscall log: support for selective syscall tracing

This commit is contained in:
2025-12-29 14:25:12 +01:00
committed by Matheus
parent 91e2430d91
commit 963d29fc90
9 changed files with 155 additions and 0 deletions
+3
View File
@@ -50,6 +50,9 @@ syscallret_t syscall_fork(context_t *ctx) {
nproc->root = proc_get_root();
nproc->cwd = proc_get_cwd();
nproc->threadlist = nthread;
if (proc->flags & PROC_FLAG_SYSTRACE && !(proc->flags & PROC_FLAG_SYSTRACE_SELF))
nproc->flags |= PROC_FLAG_SYSTRACE;
nthread->procnext = NULL;
ARCH_CONTEXT_THREADSAVE(nthread, ctx);