diff --git a/libbpf-rs/tests/test.rs b/libbpf-rs/tests/test.rs index 589cab30..a355dde1 100644 --- a/libbpf-rs/tests/test.rs +++ b/libbpf-rs/tests/test.rs @@ -1625,7 +1625,7 @@ fn test_object_usdt_cookie() { unsafe { libc::getpid() }, &path, "test_provider", - "test_function", + "test_function2", UsdtOpts { cookie: cookie_val.into(), ..UsdtOpts::default() @@ -1636,7 +1636,7 @@ fn test_object_usdt_cookie() { let map = obj.map("ringbuf").expect("Failed to get ringbuf map"); let action = || { // Define a USDT probe point and exercise it as we are attaching to self. - probe!(test_provider, test_function, 1); + probe!(test_provider, test_function2, 1); }; let result = with_ringbuffer(map, action);