Browse Source

aya::programs::uprobe: fix bad variable name

The variable fn_name was very much *not* the fn_name, but rather the
object file path.
Andrew Werner 8 months ago
parent
commit
d413e2f285
1 changed files with 2 additions and 2 deletions
  1. 2 2
      aya/src/programs/uprobe.rs

+ 2 - 2
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.