From a648015f95d9ba5827c5b80b23787e68850fba9e Mon Sep 17 00:00:00 2001 From: David Smith Date: Mon, 23 Jul 2012 13:30:31 -0500 Subject: [PATCH] Another PR11424 fix: For ppc64, map ".sys_foo" to "sys_foo". * tapsets.cxx (load_function_name_cache): For ppc64, map ".sys_foo" symbols to "sys_foo". --- tapsets.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tapsets.cxx b/tapsets.cxx index 5fce581a8..570933eed 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -8264,6 +8264,12 @@ kprobe_builder::load_function_name_cache(systemtap_session &sess) if (type != "t" && type != "T") continue; +#ifdef __powerpc__ + // Map ".sys_foo" to "sys_foo". + if (name[0] == '.') + name.erase(0, 1); +#endif + // FIXME: better things to do here - look for _stext before // remembering symbols. Also: // - stop remembering names at ??? -- 2.43.5