Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Jun 2012 06:42:36 +0000 (UTC)
From:      Fabien Thomas <fabient@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r236998 - stable/9/usr.sbin/pmcstat
Message-ID:  <201206130642.q5D6ga9v001892@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206130642.q5D6ga9v001892>