tools: Flush stdout explicitly in event loop
diff --git a/tools/softirqs.py b/tools/softirqs.py
index d98b938..2186277 100755
--- a/tools/softirqs.py
+++ b/tools/softirqs.py
@@ -17,6 +17,7 @@
 from bcc import BPF
 from time import sleep, strftime
 import argparse
+import sys
 
 # arguments
 examples = """examples:
@@ -175,6 +176,8 @@
             print("%-16s %11d" % (vec_to_name(k.vec), v.value / factor))
     dist.clear()
 
+    sys.stdout.flush()
+
     countdown -= 1
     if exiting or countdown == 0:
         exit()