]> xenbits.xensource.com Git - people/dariof/xen.git/commitdiff
xen/trace: Adjust types in function declarations
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 18 Jul 2019 13:41:48 +0000 (14:41 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 19 Jul 2019 09:53:14 +0000 (10:53 +0100)
Use uint32_t consistently for 'event', bool consistently for 'cycles',
and unsigned int consistently for 'extra'.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: George Dunlap <george.dunlap@citrix.com>
xen/include/xen/trace.h

index e6a4ef93ccf8601174ca09578b42e11b87d2516e..bd5168f56859e8b742bc247145d0fb47d18e4009 100644 (file)
@@ -41,9 +41,9 @@ int tb_control(struct xen_sysctl_tbuf_op *tbc);
 
 int trace_will_trace_event(u32 event);
 
-void __trace_var(u32 event, bool_t cycles, unsigned int extra, const void *);
+void __trace_var(uint32_t event, bool cycles, unsigned int extra, const void *);
 
-static inline void trace_var(u32 event, int cycles, int extra,
+static inline void trace_var(uint32_t event, bool cycles, unsigned int extra,
                              const void *extra_data)
 {
     if ( unlikely(tb_init_done) )
@@ -68,7 +68,7 @@ static inline int trace_will_trace_event(uint32_t event)
     return 0;
 }
 
-static inline void trace_var(uint32_t event, int cycles, int extra,
+static inline void trace_var(uint32_t event, bool cycles, unsigned int extra,
                              const void *extra_data) {}
 static inline void __trace_var(uint32_t event, bool cycles, unsigned int extra,
                                const void *extra_data) {}