From 9213cf446c642a941f15011b4847576017a9f846 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20M=C3=BCller?= Date: Mon, 24 Jun 2024 11:15:36 -0700 Subject: [PATCH] Use different target names in USDT tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We probably shouldn't be sharing the same target name for the static probes created in the USDT tests, if for no other reason than it being stupidly confusing. Rename one of them. Signed-off-by: Daniel Müller --- libbpf-rs/tests/test.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);