diff options
author | Michael Foiani <mfoiani@cs.brown.edu> | 2024-02-11 04:05:38 -0500 |
---|---|---|
committer | Michael Foiani <mfoiani@cs.brown.edu> | 2024-02-11 04:05:38 -0500 |
commit | c2cebabba05eff0436faf90bbd691c1e36f7013c (patch) | |
tree | 395bd6c7513b028c82b9c4cd5ffc1ebf8e1787ca /kernel/proc/proc.c | |
parent | 65ece110519f88227039921b09dab60ec4d3d982 (diff) |
add debug statements and start some testing
Diffstat (limited to 'kernel/proc/proc.c')
-rw-r--r-- | kernel/proc/proc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/proc/proc.c b/kernel/proc/proc.c index fd253f6..ef8245d 100644 --- a/kernel/proc/proc.c +++ b/kernel/proc/proc.c @@ -181,6 +181,8 @@ proc_t *proc_create(const char *name) return NULL; } + dbg(DBG_PROC, "creating process name=%s & pid =%d\n", name, proc_pid); + proc_t *proc = (proc_t *)slab_obj_alloc(proc_allocator); if (proc == NULL) { @@ -378,7 +380,7 @@ void proc_destroy(proc_t *proc) vmmap_destroy(&proc->p_vmmap); #endif - dbg(DBG_THR, "destroying P%d\n", proc->p_pid); + dbg(DBG_PROC, "destroying P%d\n", proc->p_pid); KASSERT(proc->p_pml4); pt_destroy(proc->p_pml4); |