Signed-off-by: Mathieu Desnoyers CC: benh@kernel.crashing.org CC: paulus@samba.org CC: linux-arch@vger.kernel.org --- arch/powerpc/Kconfig | 1 + include/asm-powerpc/ltt.h | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) Index: linux-2.6-lttng/include/asm-powerpc/ltt.h =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ linux-2.6-lttng/include/asm-powerpc/ltt.h 2008-10-16 19:18:51.000000000 -0400 @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2005, Mathieu Desnoyers + * + * POWERPC definitions for tracing system + */ + +#ifndef _ASM_POWERPC_LTT_H +#define _ASM_POWERPC_LTT_H + +#include +#include +#include + +static inline u32 ltt_get_timestamp32(void) +{ + return get_tbl(); +} + +static inline u64 ltt_get_timestamp64(void) +{ + return get_tb(); +} + +static inline void ltt_add_timestamp(unsigned long ticks) +{ } + +static inline unsigned int ltt_frequency(void) +{ + return tb_ticks_per_sec; +} + +static inline u32 ltt_freq_scale(void) +{ + return 1; +} + +#endif /* _ASM_POWERPC_LTT_H */ Index: linux-2.6-lttng/arch/powerpc/Kconfig =================================================================== --- linux-2.6-lttng.orig/arch/powerpc/Kconfig 2008-10-16 19:14:07.000000000 -0400 +++ linux-2.6-lttng/arch/powerpc/Kconfig 2008-10-16 19:20:22.000000000 -0400 @@ -115,6 +115,7 @@ config PPC select HAVE_IOREMAP_PROT select HAVE_EFFICIENT_UNALIGNED_ACCESS select HAVE_KPROBES + select HAVE_LTT_CLOCK select HAVE_ARCH_KGDB select HAVE_KRETPROBES select HAVE_ARCH_TRACEHOOK -- Mathieu Desnoyers Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/