mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-17 21:26:13 -07:00
linux-user: Implement starttime field in self stat emulation
Instead of always returning 0, return actual starttime. Signed-off-by: Cameron Esfahani <dirty@apple.com> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <20220128001251.45165-1-dirty@apple.com> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
parent
ebce1719ac
commit
eb33cdaeda
3 changed files with 20 additions and 0 deletions
|
|
@ -8077,6 +8077,9 @@ static int open_self_stat(void *cpu_env, int fd)
|
|||
} else if (i == 3) {
|
||||
/* ppid */
|
||||
g_string_printf(buf, FMT_pid " ", getppid());
|
||||
} else if (i == 21) {
|
||||
/* starttime */
|
||||
g_string_printf(buf, "%" PRIu64 " ", ts->start_boottime);
|
||||
} else if (i == 27) {
|
||||
/* stack bottom */
|
||||
g_string_printf(buf, TARGET_ABI_FMT_ld " ", ts->info->start_stack);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue