Author: fabient
Date: Wed Jun 13 06:42:36 2012
New Revision: 236998
URL: http://svn.freebsd.org/changeset/base/236998

Log:
  MFC r236669:
  Remove spurious ARM symbols from lookup table.

Modified:
  stable/9/usr.sbin/pmcstat/pmcstat_log.c
Directory Properties:
  stable/9/usr.sbin/pmcstat/   (props changed)

Modified: stable/9/usr.sbin/pmcstat/pmcstat_log.c
==============================================================================
--- stable/9/usr.sbin/pmcstat/pmcstat_log.c     Wed Jun 13 06:38:25 2012        
(r236997)
+++ stable/9/usr.sbin/pmcstat/pmcstat_log.c     Wed Jun 13 06:42:36 2012        
(r236998)
@@ -554,6 +554,14 @@ pmcstat_image_add_symbols(struct pmcstat
                if ((fnname = elf_strptr(e, sh->sh_link, sym.st_name))
                    == NULL)
                        continue;
+#ifdef __arm__
+               /* Remove spurious ARM function name. */
+               if (fnname[0] == '$' &&
+                   (fnname[1] == 'a' || fnname[1] == 't' ||
+                   fnname[1] == 'd') &&
+                   fnname[2] == '\0')
+                       continue;
+#endif
 
                symptr->ps_name  = pmcstat_string_intern(fnname);
                symptr->ps_start = sym.st_value - image->pi_vaddr;
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-stable-9
To unsubscribe, send any mail to "[email protected]"

Reply via email to