[Devel] [PATCH rh9 10/11] ve: network rate-limited VE logging helpers introduced
Konstantin Khorenko
khorenko at virtuozzo.com
Wed Sep 29 22:24:46 MSK 2021
From: Stanislav Kinsburskiy <skinsbursky at virtuozzo.com>
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) \
--
2.28.0
More information about the Devel
mailing list