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:
Dominique Martinet
2018-08-24 11:31:06 +09:00
committed by Masamichi Takagi
parent ecc850dfef
commit b70d470e20
4 changed files with 43 additions and 5 deletions

View File

@@ -1107,7 +1107,7 @@ static const struct procfs_entry pid_entry_stuff[] = {
PROC_REG("mem", 0600, NULL),
PROC_REG("pagemap", 0444, NULL),
// PROC_REG("smaps", S_IRUGO, NULL),
// PROC_REG("stat", 0444, &mckernel_buff_io),
PROC_REG("stat", 0444, &mckernel_buff_io),
// PROC_REG("statm", S_IRUGO, NULL),
PROC_REG("status", 0444, &mckernel_buff_io),
// PROC_REG("syscall", S_IRUGO, NULL),