* Wangnan (F) <wangnan0@xxxxxxxxxx> wrote:
PEBS is an asynchronous hardware tracing mechanism, when batched PEBS is used it
On 2015/11/19 14:37, Ingo Molnar wrote:
* Wangnan (F) <wangnan0@xxxxxxxxxx> wrote:Just for curiosity:
Well, that's how our PEBS sampling works: we roll back the instruction pointer toperf cmdline isTestetd 'cycles', 'cycles:p' and 'cycles:pp'. Only 'cycles:pp' captures
# ./pref record -g -F 9 --call-graph dwarf ./test_dwarf_unwind
Use default events, precise_ip == 2 so uses PEBS.
sample at callq. So maybe a PEBS problem?
point at the instruction generating the sample. The state itself is
post-instruction.
how the interrupted process continue to execute, when the PC
saved in pt_regs still pointed to 'callq' but SP and stack has
already changes? Do we fix it in kernel, or by hardware?
might not even result in any interruption of execution. The 'pt_regs' does not
necessarily correspond to an interrupted, restartable context - we take the RIP
from the PEBS machinery and also use LBR and disassembly to determine the previous
instruction, before reporting it to user-space.