[DTrace-devel] [PATCH 5/7] fbt: ignore compiler-generated internal symbols

Kris Van Hees kris.van.hees at oracle.com
Tue May 9 22:32:00 UTC 2023


Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>
---
 libdtrace/dt_prov_fbt.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libdtrace/dt_prov_fbt.c b/libdtrace/dt_prov_fbt.c
index 462ab7ed..47e0a5c7 100644
--- a/libdtrace/dt_prov_fbt.c
+++ b/libdtrace/dt_prov_fbt.c
@@ -100,6 +100,10 @@ static int populate(dtrace_hdl_t *dtp)
 				p++;
 		}
 
+		/* Weed out synthetic symbol names (that are invalid). */
+		if (strchr(buf, '.') != NULL)
+			continue;
+
 		/*
 		 * If we did not see a module name, perform a symbol lookup to
 		 * try to determine the module name.
-- 
2.40.1




More information about the DTrace-devel mailing list