[RHEL8,COMMIT] vecalls: Add cpu stat measurement units comments to header

Submitted by Konstantin Khorenko on Nov. 11, 2020, 1 p.m.

Details

Message ID 202011111300.0ABD03A33319671@finist-co8.sw.ru
State New
Series "vecalls: Implement VZCTL_GET_CPU_STAT ioctl"
Headers show

Commit Message

Konstantin Khorenko Nov. 11, 2020, 1 p.m.
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@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@virtuozzo.com>
    Reviewed-by: Andrey Ryabinin <aryabinin@virtuozzo.com>
---
 include/uapi/linux/vzcalluser.h | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

Patch hide | download patch | download mbox

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 */
 };