summaryrefslogtreecommitdiff
path: root/usr.sbin/pmcstat/pmcpl_callgraph.c
diff options
context:
space:
mode:
authorMatt Macy <mmacy@FreeBSD.org>2018-05-24 06:47:04 +0000
committerMatt Macy <mmacy@FreeBSD.org>2018-05-24 06:47:04 +0000
commit4bd2a4b58ed6da6f21c2f7dbc86ccd18c49a7927 (patch)
treea8e3dca3cbf42bf1e2b08abb4a308781cfd4d678 /usr.sbin/pmcstat/pmcpl_callgraph.c
parent2e09fe9116e19f6addd501ed79393e6352e64fea (diff)
downloadsrc-test2-4bd2a4b58ed6da6f21c2f7dbc86ccd18c49a7927.tar.gz
src-test2-4bd2a4b58ed6da6f21c2f7dbc86ccd18c49a7927.zip
Notes
Diffstat (limited to 'usr.sbin/pmcstat/pmcpl_callgraph.c')
-rw-r--r--usr.sbin/pmcstat/pmcpl_callgraph.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pmcstat/pmcpl_callgraph.c b/usr.sbin/pmcstat/pmcpl_callgraph.c
index 2c36865e53fe..324bee85b9d0 100644
--- a/usr.sbin/pmcstat/pmcpl_callgraph.c
+++ b/usr.sbin/pmcstat/pmcpl_callgraph.c
@@ -495,7 +495,7 @@ pmcstat_cgnode_topprint(struct pmcstat_cgnode *cg,
pmcstat_string_unintern(sym->ps_name));
} else
snprintf(ns, sizeof(ns), "%p",
- (void *)cg->pcg_func);
+ (void *)(cg->pcg_image->pi_vaddr + cg->pcg_func));
PMCSTAT_ATTRON(v_attrs);
PMCSTAT_PRINTW("%5.5s", vs);