c21fd5b663
When examining existing processes pmcstat fails to correctly determine the locations of executable sections of the process due to a miscalculated virtual load address. This does not affect the newly launched processes as the same value passed as a "start address" to the pmcstat_image_link() thus nullifying the effect of it. The issue manifests itself in processes not being reported in the pmcstat(8) output and "dubious frames" being reported. Fix it for now by ignoring all the sections except the executable one. This won't fix the issue for objects with multiple executable sections but helps in majority of real world usecases. The real solution would be to modify the MAP-IN event to include the appropriate load address so pmcstat(8) won't have to manually parse object files to try to determine it. PR: 198147, 198148 Reviewed by: jhb, rpaulo MFC after: 2 weeks |
||
---|---|---|
.. | ||
Makefile | ||
pmcpl_annotate_cg.c | ||
pmcpl_annotate_cg.h | ||
pmcpl_annotate.c | ||
pmcpl_annotate.h | ||
pmcpl_callgraph.c | ||
pmcpl_callgraph.h | ||
pmcpl_calltree.c | ||
pmcpl_calltree.h | ||
pmcpl_gprof.c | ||
pmcpl_gprof.h | ||
pmcstat_log.c | ||
pmcstat_log.h | ||
pmcstat_top.h | ||
pmcstat.8 | ||
pmcstat.c | ||
pmcstat.h |