Skip to content

Commit

Permalink
fix dmesg and strace
Browse files Browse the repository at this point in the history
  • Loading branch information
debnatkh committed Jan 20, 2025
1 parent 12e67f7 commit 63e9cc8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cloud/storage/core/tools/testing/fio/lib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ def monitor_fio_progress():
stderr=dmesg_output,
timeout=10,
)
logging.info("Saved dmesg output to dmesg.txt")
except Exception as dmesg_error:
logging.info(
f"Failed to save dmesg output: {dmesg_error}"
Expand All @@ -404,11 +405,14 @@ def monitor_fio_progress():
) as strace_output:
try:
subprocess.run(
["sudo", "-n", "strace", "-p", str(pid)],
["strace", "-p", str(pid)],
stdout=strace_output,
stderr=strace_output,
timeout=10,
)
logging.info(
f"Saved strace output for PID {pid} to strace_{pid}.txt"
)
except Exception as strace_error:
logging.info(
f"Failed to save strace output: {strace_error}"
Expand Down

0 comments on commit 63e9cc8

Please sign in to comment.