summaryrefslogtreecommitdiffstats
path: root/linux-user/qemu.h
diff options
context:
space:
mode:
authorCameron Esfahani2022-01-28 01:12:51 +0100
committerLaurent Vivier2022-01-28 11:08:54 +0100
commiteb33cdaeda55d951f915152ad23816d47aca9955 (patch)
tree80047456f49e6a26144043469bde7df9163217b8 /linux-user/qemu.h
parentlinux-user: sigprocmask check read perms first (diff)
downloadqemu-eb33cdaeda55d951f915152ad23816d47aca9955.tar.gz
qemu-eb33cdaeda55d951f915152ad23816d47aca9955.tar.xz
qemu-eb33cdaeda55d951f915152ad23816d47aca9955.zip
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>
Diffstat (limited to 'linux-user/qemu.h')
-rw-r--r--linux-user/qemu.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/linux-user/qemu.h b/linux-user/qemu.h
index 9d2b3119d1..98dfbf2096 100644
--- a/linux-user/qemu.h
+++ b/linux-user/qemu.h
@@ -154,6 +154,9 @@ typedef struct TaskState {
/* This thread's sigaltstack, if it has one */
struct target_sigaltstack sigaltstack_used;
+
+ /* Start time of task after system boot in clock ticks */
+ uint64_t start_boottime;
} TaskState;
abi_long do_brk(abi_ulong new_brk);