]> sourceware.org Git - systemtap.git/commitdiff
Another PR11424 fix: For ppc64, map ".sys_foo" to "sys_foo".
authorDavid Smith <dsmith@redhat.com>
Mon, 23 Jul 2012 18:30:31 +0000 (13:30 -0500)
committerDavid Smith <dsmith@redhat.com>
Mon, 23 Jul 2012 18:30:31 +0000 (13:30 -0500)
* tapsets.cxx (load_function_name_cache): For ppc64, map ".sys_foo"
  symbols to "sys_foo".

tapsets.cxx

index 5fce581a88954ac78a71db1410d7a1ac85ba37e1..570933eed7ede8d6b42a51bfa9b5806fe527479f 100644 (file)
@@ -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 ???
This page took 0.033433 seconds and 5 git commands to generate.