[Devel] [PATCH RHEL8 COMMIT] vecalls: Add cpu stat measurement units comments to header
Konstantin Khorenko
khorenko at virtuozzo.com
Wed Nov 11 16:00:03 MSK 2020
The commit is pushed to "branch-rh8-4.18.0-193.6.3.vz8.4.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh8-4.18.0-193.6.3.vz8.4.17
------>
commit 3ed7a174b687c3dd2fab0ee255731b8efa3b44d9
Author: Konstantin Khorenko <khorenko at virtuozzo.com>
Date: Wed Nov 11 16:00:03 2020 +0300
vecalls: Add cpu stat measurement units comments to header
It's not obvious why, say, "user_jif" field does not contain
time in jiffies, so add clarification comments.
Fixes: 248ed6b2a193 ("ve: Add vecalls")
Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
Reviewed-by: Andrey Ryabinin <aryabinin at virtuozzo.com>
---
include/uapi/linux/vzcalluser.h | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/include/uapi/linux/vzcalluser.h b/include/uapi/linux/vzcalluser.h
index f2584b4b284f..8a4ff0015e40 100644
--- a/include/uapi/linux/vzcalluser.h
+++ b/include/uapi/linux/vzcalluser.h
@@ -55,13 +55,13 @@ struct vz_load_avg {
};
struct vz_cpu_stat {
- unsigned long user_jif;
- unsigned long nice_jif;
- unsigned long system_jif;
- unsigned long uptime_jif;
- __u64 idle_clk;
- __u64 strv_clk;
- __u64 uptime_clk;
+ unsigned long user_jif; /* clock_t */
+ unsigned long nice_jif; /* clock_t */
+ unsigned long system_jif /* clock_t */;
+ unsigned long uptime_jif /* clock_t */;
+ __u64 idle_clk; /* ns */
+ __u64 strv_clk; /* deprecated */
+ __u64 uptime_clk; /* ns */
struct vz_load_avg avenrun[3]; /* loadavg data */
};
More information about the Devel
mailing list