procfs: add '/proc/pid/stat' to mckernel side and fix its comm
This lets ps show the proper executable name instead of mcexec's comm on linux side Change-Id: I62732037451f129fc2e905357ebdc351bf7f6d2d Refs: #1114
This commit is contained in:
committed by
Masamichi Takagi
parent
ecc850dfef
commit
b70d470e20
@@ -237,6 +237,7 @@ long do_syscall(struct syscall_request *req, int cpu)
|
||||
|
||||
dkprintf("%s: syscall num: %d waiting for Linux.. \n",
|
||||
__FUNCTION__, req->number);
|
||||
proc->forwarding = 1;
|
||||
|
||||
#define STATUS_IN_PROGRESS 0
|
||||
#define STATUS_COMPLETED 1
|
||||
@@ -398,6 +399,7 @@ long do_syscall(struct syscall_request *req, int cpu)
|
||||
send_syscall(&req2, cpu, &res);
|
||||
}
|
||||
}
|
||||
proc->forwarding = 0;
|
||||
if (req->rtid == -1) {
|
||||
preempt_enable();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user