Reputation: 325
I'm now trying to using perf to measure L3_Miss(LLC Miss) with PEBS.
Here is the command: perf record -d -e cpu/event=0xd1,umask=0x20/ppu -c 1 test
, and when the perf finished, I using perf script -F ip,sym,addr
to check the result.
According to the SDM from intel, Vol. 3B Table 18-55. PEBS record contains a field named Data Linear Address, stands for address of load or destination of store, is what I need.
My question is, the field addr I specified in perf-script
is same as Data Linear Address in PEBS record?
If not, how to retrieve this field? (and another related field such like CPU register R8~R15)
ps. I'm using i7-6700 CPU (Skylake Microarchitecture)
Thanks, and any suggestion will be appreciated.
Upvotes: 1
Views: 892
Reputation: 2431
Yes, you are right. The addr field in perf script does, in fact, give you the data linear address in a PEBS record. This data linear address is associated with the source of the load or the destination of the store, as you correctly specified. The switch -d that you used in your command perf record -d
helps to record the linear addresses of the data accessed or written to in memory.
This mechanism to record Data Linear Addresses has started from the processor microarchitecture name Haswell replacing precise-store events. It has carried on to Skylake as well.
If you want to see this in code, here you go.
Upvotes: 4