b764bb1c50
This patch is based on an original patch of David Hildenbrand. The perf core implementation calls architecture specific code in order to ask for specific information for a particular sample: perf_instruction_pointer() When perf core code asks for the instruction pointer, architecture specific code must detect if a KVM guest was running when the sample was taken. A sample can be associated with a KVM guest when the PSW supervisor state bit is set and the PSW instruction pointer part contains the address of 'sie_exit'. A KVM guest's instruction pointer information is then retrieved via gpsw entry pointed to by the sie control-block. perf_misc_flags() perf code code calls this function in order to associate the kernel vs. user state infomation with a particular sample. Architecture specific code must also first detectif a KVM guest was running at the time the sample was taken. Signed-off-by: Heinz Graalfs <graalfs@linux.vnet.ibm.com> Reviewed-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> |
||
---|---|---|
.. | ||
vdso32 | ||
vdso64 | ||
.gitignore | ||
asm-offsets.c | ||
audit.c | ||
audit.h | ||
base.S | ||
bitmap.c | ||
cache.c | ||
compat_audit.c | ||
compat_exec_domain.c | ||
compat_linux.c | ||
compat_linux.h | ||
compat_ptrace.h | ||
compat_signal.c | ||
compat_wrapper.S | ||
cpcmd.c | ||
crash_dump.c | ||
debug.c | ||
diag.c | ||
dis.c | ||
dumpstack.c | ||
early.c | ||
ebcdic.c | ||
entry64.S | ||
entry.h | ||
entry.S | ||
ftrace.c | ||
head31.S | ||
head64.S | ||
head_kdump.S | ||
head.S | ||
ipl.c | ||
irq.c | ||
jump_label.c | ||
kprobes.c | ||
lgr.c | ||
machine_kexec.c | ||
Makefile | ||
mcount64.S | ||
mcount.S | ||
module.c | ||
nmi.c | ||
os_info.c | ||
perf_cpum_cf.c | ||
perf_event.c | ||
pgm_check.S | ||
process.c | ||
processor.c | ||
ptrace.c | ||
reipl64.S | ||
reipl.S | ||
relocate_kernel64.S | ||
relocate_kernel.S | ||
runtime_instr.c | ||
s390_ksyms.c | ||
sclp.S | ||
setup.c | ||
signal.c | ||
smp.c | ||
stacktrace.c | ||
suspend.c | ||
swsusp_asm64.S | ||
sys_s390.c | ||
syscalls.S | ||
sysinfo.c | ||
time.c | ||
topology.c | ||
traps.c | ||
vdso.c | ||
vmlinux.lds.S | ||
vtime.c |