summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pmcstat
diff options
context:
space:
mode:
authorfabient <fabient@FreeBSD.org>2012-06-06 08:58:31 +0000
committerfabient <fabient@FreeBSD.org>2012-06-06 08:58:31 +0000
commit10cf7e89f9bf02a50c59f5d1a08765f8cb399797 (patch)
tree437b221717121fba5c632f7cb9b013da0beb0e00 /usr.sbin/pmcstat
parent094302f3c1312138efcedf4f1b6e152f565a13de (diff)
downloadFreeBSD-src-10cf7e89f9bf02a50c59f5d1a08765f8cb399797.zip
FreeBSD-src-10cf7e89f9bf02a50c59f5d1a08765f8cb399797.tar.gz
Remove spurious ARM symbols from lookup table.
MFC after: 3 days
Diffstat (limited to 'usr.sbin/pmcstat')
-rw-r--r--usr.sbin/pmcstat/pmcstat_log.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/usr.sbin/pmcstat/pmcstat_log.c b/usr.sbin/pmcstat/pmcstat_log.c
index b7f5a23..e5fee35 100644
--- a/usr.sbin/pmcstat/pmcstat_log.c
+++ b/usr.sbin/pmcstat/pmcstat_log.c
@@ -554,6 +554,14 @@ pmcstat_image_add_symbols(struct pmcstat_image *image, Elf *e,
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;
OpenPOWER on IntegriCloud