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

@ -1,3 +1,4 @@
#include "defs.h"
// Saved registers for kernel context switches.
struct context {
uint64 ra;
@ -105,4 +106,5 @@ struct proc {
struct file *ofile[NOFILE]; // Open files
struct inode *cwd; // Current directory
char name[16]; // Process name (debugging)
int syscall_counts[24]; // 每个系统调用的调用次数
};