linux/arch/powerpc
Michael Ellerman a7e0fb6c20 powerpc/powernv: Fix opal_exit tracepoint opcode
Currently the opal_exit tracepoint usually shows the opcode as 0:

  <idle>-0     [047] d.h.   635.654292: opal_entry: opcode=63
  <idle>-0     [047] d.h.   635.654296: opal_exit: opcode=0 retval=0
  kopald-1209  [019] d...   636.420943: opal_entry: opcode=10
  kopald-1209  [019] d...   636.420959: opal_exit: opcode=0 retval=0

This is because we incorrectly load the opcode into r0 before calling
__trace_opal_exit(), whereas it expects the opcode in r3 (first function
parameter). In fact we are leaving the retval in r3, so opcode and
retval will always show the same value.

Instead load the opcode into r3, resulting in:

  <idle>-0     [040] d.h.   636.618625: opal_entry: opcode=63
  <idle>-0     [040] d.h.   636.618627: opal_exit: opcode=63 retval=0

Fixes: c49f63530b ("powernv: Add OPAL tracepoints")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2017-02-10 13:40:22 +11:00
..
boot powerpc/boot: Update .gitignore 2017-02-02 16:35:26 +11:00
configs powerpc/powernv: Add XHCI and USB storage to defconfig 2017-02-09 10:31:36 +11:00
crypto crypto: crc32c-vpmsum - Rename CRYPT_CRC32C_VPMSUM option 2016-11-28 21:23:17 +08:00
include powerpc: Add a prototype for mcount() so it can be versioned 2017-02-10 13:28:06 +11:00
kernel powerpc/kprobes: Optimize kprobe in kretprobe_trampoline() 2017-02-10 13:28:05 +11:00
kvm ktime: Cleanup ktime_set() usage 2016-12-25 17:21:22 +01:00
lib powerpc/kprobes: Implement Optprobes 2017-02-10 13:28:04 +11:00
math-emu Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
mm powerpc: Drop GPL from of_node_to_nid() export to match other arches 2017-02-10 13:28:05 +11:00
net powerpc/bpf: Introduce __PPC_SH64() 2017-02-10 13:28:03 +11:00
oprofile ktime: Cleanup ktime_set() usage 2016-12-25 17:21:22 +01:00
perf powerpc/perf: Use MSR to report privilege level on P9 DD1 2017-01-18 16:15:58 +11:00
platforms powerpc/powernv: Fix opal_exit tracepoint opcode 2017-02-10 13:40:22 +11:00
purgatory powerpc: Add purgatory for kexec_file_load() implementation. 2016-11-30 23:15:26 +11:00
scripts powerpc/ftrace: Add Kconfig & Make glue for mprofile-kernel 2016-03-07 14:53:56 +11:00
sysdev powerpc/icp-opal: Fix missing KVM case and harden replay 2017-01-17 11:50:03 +11:00
xmon powerpc/xmon: Cleanup to use is_kernel_addr macro 2017-02-02 16:44:14 +11:00
Kconfig powerpc/kprobes: Implement Optprobes 2017-02-10 13:28:04 +11:00
Kconfig.debug powerpc/debug: PTDUMP should depend on DEBUG_FS 2017-02-02 16:35:25 +11:00
Makefile powerpc: Add purgatory for kexec_file_load() implementation. 2016-11-30 23:15:26 +11:00
relocs_check.sh powerpc/64: whitelist unresolved modversions CRCs 2016-09-22 14:46:31 +02:00