strace: display mutex() calls as well

This commit is contained in:
Mark Poliakov 2025-03-01 21:09:01 +02:00
parent c069982ed9
commit 3291df4eeb

View File

@ -189,7 +189,7 @@ fn format_byte_slice(bytes: &[u8], real_len: usize, allow_ascii: bool) -> String
if bytes.is_empty() {
return "<empty>".into();
}
if bytes[0].is_ascii_graphic() && allow_ascii {
if allow_ascii {
// Format as ASCII string
write!(result, "\"").ok();
for &byte in bytes {
@ -372,11 +372,6 @@ impl Result {
}
pub fn format_syscall(tracer: &mut CommandTracer, syscall: &SyscallTrace) {
// Ignore mutex calls for now, they're too noisy
if syscall.function == SyscallFunction::Mutex as usize {
return;
}
if let Some(Some(formatter)) = FORMATTERS.get(syscall.function) {
formatter.print(tracer, &syscall.args, syscall.result);
}