syscall trace finished
This commit is contained in:
@ -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]; // 每个系统调用的调用次数
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user