3 ms·
I don't know about Linux, but on FreeBSD you can use pmcstat to instrument a running process; see pmc(3) and pmcstat(8). Linux probably has something similar.
by Freaky 17y ago
I don't know about Linux, but on FreeBSD you can use pmcstat to instrument a running process; see pmc(3) and pmcstat(8).
Linux probably has something similar.
kldload: can't load hwpmc: Exec format error
Meh, need a custom kernel from the look of it, HWPMC_HOOKS isn't in GENERIC :(
- jbert 17y agoThanks for the pointers. Looks like the linux/ubuntu equivalent may be 'pfmon', also not enabled in the stock kernel. I think this is the relevant project page: http://perfmon2.sourceforge.net/man/pfm_get_cycle_event.html http://perfmon2.sourceforge.net/man/pfm_get_cycle_event.html