diff options
author | fabient <fabient@FreeBSD.org> | 2010-09-03 13:54:02 +0000 |
---|---|---|
committer | fabient <fabient@FreeBSD.org> | 2010-09-03 13:54:02 +0000 |
commit | 757a8d026a387961065e755dace6ecc97f0b12c3 (patch) | |
tree | 73bfd0bd3805598ab724fffe235798ea9c7bad8d /usr.sbin/pmcstat/pmcpl_callgraph.c | |
parent | 9cb74fce5a363515c8f4250b344250d6f4d3c688 (diff) | |
download | FreeBSD-src-757a8d026a387961065e755dace6ecc97f0b12c3.zip FreeBSD-src-757a8d026a387961065e755dace6ecc97f0b12c3.tar.gz |
When an asm location cannot be resolved to a function the cost
will be spread as small value and then filtered by the threshold.
As a first step solution display the number of event that cannot
be resolved as a valid function location.
MFC after: 1week
Diffstat (limited to 'usr.sbin/pmcstat/pmcpl_callgraph.c')
-rw-r--r-- | usr.sbin/pmcstat/pmcpl_callgraph.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/pmcstat/pmcpl_callgraph.c b/usr.sbin/pmcstat/pmcpl_callgraph.c index d948b77..33998b5 100644 --- a/usr.sbin/pmcstat/pmcpl_callgraph.c +++ b/usr.sbin/pmcstat/pmcpl_callgraph.c @@ -149,6 +149,8 @@ pmcstat_cgnode_hash_lookup_pc(struct pmcstat_process *pp, pmc_id_t pmcid, */ if ((sym = pmcstat_symbol_search(image, pc)) != NULL) pc = sym->ps_start; + else + pmcstat_stats.ps_samples_unknown_function++; for (hash = i = 0; i < sizeof(uintfptr_t); i++) hash += (pc >> i) & 0xFF; |