From d413e2f285643cbeb665fd3c517e2c9d93d45825 Mon Sep 17 00:00:00 2001 From: Andrew Werner Date: Wed, 10 Jul 2024 15:36:21 -0400 Subject: [PATCH] aya::programs::uprobe: fix bad variable name The variable fn_name was very much *not* the fn_name, but rather the object file path. --- aya/src/programs/uprobe.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aya/src/programs/uprobe.rs b/aya/src/programs/uprobe.rs index 74298219..28d6749f 100644 --- a/aya/src/programs/uprobe.rs +++ b/aya/src/programs/uprobe.rs @@ -95,8 +95,8 @@ impl UProbe { 0 }; - let fn_name = path.as_os_str(); - attach(&mut self.data, self.kind, fn_name, sym_offset + offset, pid) + let path = path.as_os_str(); + attach(&mut self.data, self.kind, path, sym_offset + offset, pid) } /// Detaches the program.