[Devel] [PATCH RHEL COMMIT] ve: network rate-limited VE logging helpers introduced

Konstantin Khorenko khorenko at virtuozzo.com
Fri Oct 1 18:26:06 MSK 2021


The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after ark-5.14
------>
commit cbaafa58257131d57849356a0bd9cb2fcd90466a
Author: Stanislav Kinsburskiy <skinsbursky at virtuozzo.com>
Date:   Tue Dec 19 17:24:01 2017 +0300

    ve: network rate-limited VE logging helpers introduced
    
    Signed-off-by: Stanislav Kinsburskiy <skinsbursky at virtuozzo.com>
    
    (cherry picked from vz8 commit be39a8143e91103c6185598c26b47f14751876ff)
    Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
---
 include/linux/net.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/include/linux/net.h b/include/linux/net.h
index ba736b457a06..13d517b91c3b 100644
--- a/include/linux/net.h
+++ b/include/linux/net.h
@@ -282,6 +282,11 @@ do {									\
 	} while (0)
 #endif
 
+#define net_velog_ratelimited(fmt, ...)                                \
+	net_ratelimited_function(ve_printk, VE_LOG, fmt, ##__VA_ARGS__)
+#define net_veboth_ratelimited(fmt, ...)                               \
+	net_ratelimited_function(ve_printk, VE_LOG_BOTH, fmt, ##__VA_ARGS__)
+
 #define net_get_random_once(buf, nbytes)			\
 	get_random_once((buf), (nbytes))
 #define net_get_random_once_wait(buf, nbytes)			\


More information about the Devel mailing list