From bd1d719a61bbca16f7dd373dcc1e234f3c8ea09b Mon Sep 17 00:00:00 2001 From: Shawn Landden Date: Sat, 18 Aug 2018 21:29:03 -0700 Subject: Linux: add process->starttime and use it for STARTTIME column (#700) this way a remount of /proc will not reset starttimes and we can also see startup times for processes started before the mount of /proc also record btime (boot time in seconds since epoch) as Linux semi-global --- linux/LinuxProcess.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'linux/LinuxProcess.h') diff --git a/linux/LinuxProcess.h b/linux/LinuxProcess.h index d75fe89d..6ce3037d 100644 --- a/linux/LinuxProcess.h +++ b/linux/LinuxProcess.h @@ -98,6 +98,7 @@ typedef struct LinuxProcess_ { long m_drs; long m_lrs; long m_dt; + unsigned long long starttime; #ifdef HAVE_TASKSTATS unsigned long long io_rchar; unsigned long long io_wchar; @@ -143,6 +144,8 @@ typedef struct LinuxProcess_ { #endif +long long btime; /* semi-global */ + extern ProcessFieldData Process_fields[]; extern ProcessPidColumn Process_pidColumns[]; -- cgit v1.2.3