summaryrefslogtreecommitdiffstats
path: root/linux/LinuxProcess.h
diff options
context:
space:
mode:
authorShawn Landden <slandden@gmail.com>2018-08-18 21:29:03 -0700
committerHisham Muhammad <hisham@gobolinux.org>2018-08-19 01:29:03 -0300
commitbd1d719a61bbca16f7dd373dcc1e234f3c8ea09b (patch)
tree01742fb178258558f461854d98ccf11968084136 /linux/LinuxProcess.h
parentca1cce4ce7a0d57ef5dffc76c44d9bfa533e7229 (diff)
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
Diffstat (limited to 'linux/LinuxProcess.h')
-rw-r--r--linux/LinuxProcess.h3
1 files changed, 3 insertions, 0 deletions
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[];

© 2014-2024 Faster IT GmbH | imprint | privacy policy