Track process uptime

This commit is contained in:
2025-10-16 15:45:36 +02:00
parent 5158305fa6
commit 1a2962de80
5 changed files with 53 additions and 0 deletions

View File

@ -226,6 +226,8 @@ int32_t SYSCALL2(sys_proc_stat, pidx, pstat1) {
LL_FOREACH_SAFE(p->vas, vas, vastmp) {
stat->usemem += vas->size;
}
hal_memcpy(&stat->time, &p->time, sizeof(p->time));
break;
}
}