Hello,
For analysis functions, I must learn the host TSC inside a VMware VM. So as to take action, I would like to have the ability to execute rdpmc 0x10000. I’ve had no concern doing that in C++, utilizing inline meeting (I don’t really want the code to be transportable). Nevertheless, when I attempt to strategy the identical downside from Go, I’m fully unable to succeed in the identical end result.
I’ve tried utilizing C and in addition utilizing meeting immediately. As of now, I’ve the next code in the identical listing inside a pre-existing undertaking:
#embody "textflag.h"
// func RdPmcTsc() uint64
TEXT .RdPmcTsc(SB), NOSPLIT, $0
MOVL $0x10000, DX
RDPMC
RET
and
bundle rdpmctsc
func RdPmcTsc() uint64
I’ve regarded all over the place for extra info on how to do that, however I haven’t succeeded in implementing it but. I can present no matter different info you could want, however any assist could be actually appreciated