mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2025-12-31 21:06:25 +00:00
10 lines
221 B
Python
10 lines
221 B
Python
import subprocess
|
|
|
|
|
|
def trace_pipe():
|
|
"""Util to read from the trace pipe."""
|
|
try:
|
|
subprocess.run(["cat", "/sys/kernel/tracing/trace_pipe"])
|
|
except KeyboardInterrupt:
|
|
print("Tracing stopped.")
|