summaryrefslogtreecommitdiff
path: root/src/trace.rs
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2023-10-20 08:49:20 +0200
committerSanto Cariotti <santo@dcariotti.me>2023-10-20 08:50:21 +0200
commitcd4920a2903656a9fdda6ebc99ac6a0663095d83 (patch)
tree1fca27fd7b666099e2542e50c11aae9e80f6dab2 /src/trace.rs
parent4926d71dacff261e7de1dfea4a1255c6b97cee46 (diff)
Use `name` instead of `rax` for showing the syscall name
Diffstat (limited to 'src/trace.rs')
-rw-r--r--src/trace.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/trace.rs b/src/trace.rs
index 2341394..157f2e7 100644
--- a/src/trace.rs
+++ b/src/trace.rs
@@ -66,7 +66,7 @@ pub fn trace(pid: Pid, args: &Args) -> anyhow::Result<Vec<RegistersData>> {
while let Some(reg) = trace_next(pid)? {
have_to_print ^= true;
if have_to_print {
- if !filters.is_empty() && !filters.contains(&reg.rax()) {
+ if !filters.is_empty() && !filters.contains(&reg.name()) {
continue;
}