powerpc/ftrace: add powerpc timebase as a trace clock source
commit197165d44925bd0fa892990851dee4d312a44b39
authorNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Fri, 24 Apr 2015 08:54:44 +0000 (24 14:24 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 6 Aug 2015 06:36:23 +0000 (6 16:36 +1000)
tree5a3c35443e155b69a87456624ce458ee08a4ba08
parent35a7f41cc6bb7013e344502b03c5583d04228bd3
powerpc/ftrace: add powerpc timebase as a trace clock source

Add a new powerpc-specific trace clock using the timebase register,
similar to x86-tsc. This gives us
- a fast, monotonic, hardware clock source for trace entries, and
- a clock that can be used to correlate events across cpus as well as across
  hypervisor and guests.

Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Documentation/trace/ftrace.txt
arch/powerpc/include/asm/Kbuild
arch/powerpc/include/asm/trace_clock.h [new file with mode: 0644]
arch/powerpc/kernel/Makefile
arch/powerpc/kernel/trace_clock.c [new file with mode: 0644]