From 1608c4b949af2bbc13c969466b827d1d31c43b18 Mon Sep 17 00:00:00 2001 From: Adrian Moreno Date: Fri, 17 Jan 2025 15:25:45 +0100 Subject: [PATCH] utilities: upcall_monitor: Remove sleep in loop. It increases the chances of events being lost on highly loaded systems. Signed-off-by: Adrian Moreno Signed-off-by: 0-day Robot --- utilities/usdt-scripts/upcall_monitor.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/utilities/usdt-scripts/upcall_monitor.py b/utilities/usdt-scripts/upcall_monitor.py index d856547f033..3a758b2d26d 100755 --- a/utilities/usdt-scripts/upcall_monitor.py +++ b/utilities/usdt-scripts/upcall_monitor.py @@ -120,7 +120,6 @@ import re import struct import sys -import time # # Actual eBPF source code @@ -513,7 +512,6 @@ def main(): while 1: try: b.ring_buffer_poll() - time.sleep(0.5) except KeyboardInterrupt: break