[PATCH v4 1/8] kernel_rusage.h: Add a internal rusage struct

Alistair Francis alistair.francis at wdc.com
Tue Mar 10 00:42:57 UTC 2020


Signed-off-by: Alistair Francis <alistair.francis at wdc.com>
---
 kernel_rusage.h | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100644 kernel_rusage.h

diff --git a/kernel_rusage.h b/kernel_rusage.h
new file mode 100644
index 00000000..0c8d5a57
--- /dev/null
+++ b/kernel_rusage.h
@@ -0,0 +1,32 @@
+/*
+ * Copyright (c) 2020 Western Digital.
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: LGPL-2.1-or-later
+ */
+
+#ifndef STRACE_KERNEL_RUSAGE_H
+# define STRACE_KERNEL_RUSAGE_H
+
+# include "kernel_timeval.h"
+
+typedef struct {
+       kernel_old_timeval_t ru_utime;
+       kernel_old_timeval_t ru_stime;
+       kernel_long_t   ru_maxrss;
+       kernel_long_t   ru_ixrss;
+       kernel_long_t   ru_idrss;
+       kernel_long_t   ru_isrss;
+       kernel_long_t   ru_minflt;
+       kernel_long_t   ru_majflt;
+       kernel_long_t   ru_nswap;
+       kernel_long_t   ru_inblock;
+       kernel_long_t   ru_oublock;
+       kernel_long_t   ru_msgsnd;
+       kernel_long_t   ru_msgrcv;
+       kernel_long_t   ru_nsignals;
+       kernel_long_t   ru_nvcsw;
+       kernel_long_t   ru_nivcsw;
+} rusage_t;
+
+#endif /* !STRACE_KERNEL_RUSAGE_H */
-- 
2.25.1



More information about the Strace-devel mailing list