syscall trace finished

This commit is contained in:
2025-03-25 10:35:06 +08:00
parent d92eea9e49
commit a087b429df
5 changed files with 26 additions and 1 deletions

View File

@ -146,6 +146,9 @@ found:
p->context.ra = (uint64)forkret;
p->context.sp = p->kstack + PGSIZE;
// 初始化计数器
memset(p->syscall_counts, 0, sizeof(p->syscall_counts));
return p;
}