[PATCH v2] powerpc/ftrace: add powerpc timebase as a trace clock source
Steven Rostedt
rostedt at goodmis.org
Sat Apr 25 00:32:32 AEST 2015
On Fri, 24 Apr 2015 14:24:44 +0530
"Naveen N. Rao" <naveen.n.rao at linux.vnet.ibm.com> wrote:
> 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 at linux.vnet.ibm.com>
> ---
> Changes since v1:
> - removed unnecessary #ifdef in trace_clock.h
> - changed config build dependency for trace_clock.o from TRACE_CLOCK to TRACING
>
Looks fine to me.
Acked-by: Steven Rostedt <rostedt at goodmis.org>
-- Steve
>
> Documentation/trace/ftrace.txt | 5 +++++
> arch/powerpc/include/asm/Kbuild | 1 -
> arch/powerpc/include/asm/trace_clock.h | 19 +++++++++++++++++++
> arch/powerpc/kernel/Makefile | 1 +
> arch/powerpc/kernel/trace_clock.c | 15 +++++++++++++++
> 5 files changed, 40 insertions(+), 1 deletion(-)
> create mode 100644 arch/powerpc/include/asm/trace_clock.h
> create mode 100644 arch/powerpc/kernel/trace_clock.c
>
More information about the Linuxppc-dev
mailing list