[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH V2 7/9] xentrace: Support for ARM platform

Modified to provide support for xentrace on the ARM platform. Moved
get_cycles() to time.c and added function prototype for inclusion.
get_cycles() was moved to the C file to avoid including the register
specific header file in the time.h file and to commonize it with the
get_s_time() function. Also defined cycles_t as uint64_t to simplify

Signed-off-by: Benjamin Sanda <ben.sanda@xxxxxxxxxxxxxxx>

Changed since v1:
  * Moved get_cycles() to time.c
  * Added function prototype for get_cycles()
 xen/include/asm-arm/time.h | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/xen/include/asm-arm/time.h b/xen/include/asm-arm/time.h
index 5b9a31d..b57f4c1 100644
--- a/xen/include/asm-arm/time.h
+++ b/xen/include/asm-arm/time.h
@@ -5,12 +5,8 @@
     DT_MATCH_COMPATIBLE("arm,armv7-timer"), \
-typedef unsigned long cycles_t;
-static inline cycles_t get_cycles (void)
-        return 0;
+/* Tick count type */
+typedef uint64_t cycles_t;
 /* List of timer's IRQ */
 enum timer_ppi
@@ -37,6 +33,9 @@ extern void init_timer_interrupt(void);
 /* Counter value at boot time */
 extern uint64_t boot_count;
+/* Get raw system tick count */
+cycles_t get_cycles(void);
 extern s_time_t ticks_to_ns(uint64_t ticks);
 extern uint64_t ns_to_ticks(s_time_t ns);

Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.