The AMD uProf profiler does not run on 15-current for a variety of reasons:
- It gets back our PMC_VERSION from modv and quits with "The driver failed to start profiling. (error code 0x80070005)"
- It fails to parse the produced pmc log files if they are marked with the newer PMC_VERSION. I've also worked around a change in the format of the procexec log (introduced in 94426d21bf62f) by collecting the entryaddr as well, and logging that rather than base/dyndaddr for older applications
- It leaves garbage in cl.pm_flags, so I zero them.
- It fails to select which set of counters its using PMC_F_EV_PMU, so I force the selection
This change is very specific to uprof builds, but ideally leaves room to grow. This change is a no-op by default; the user needs to specify kern.hwpmc.compat_verson=0x09040000