]> git.lttng.org Git - lttng-tools.git/commitdiff
uprobe: log binary path on failure to open
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 15 Nov 2024 16:22:00 +0000 (11:22 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 22 Nov 2024 20:32:54 +0000 (20:32 +0000)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Iacf81482ffe71272a4cc4eea306d6bf99d03bd24

src/common/userspace-probe.cpp

index 426f12860aec441ce96354b122fd81f2cd1114b4..cc5615f22b5bb57cdc7f6308beedcd354fa9a22f 100644 (file)
@@ -268,7 +268,7 @@ lttng_userspace_probe_location_function_create_no_check(
        if (open_binary) {
                binary_fd = open(binary_path, O_RDONLY);
                if (binary_fd < 0) {
-                       PERROR("Error opening the binary");
+                       PERROR("Error opening the binary: path=`%s`", binary_path);
                        goto error;
                }
 
This page took 0.02986 seconds and 4 git commands to generate.