xen/trace: Adjust types in trace_var() declarations
PATCH 1/1 xen/trace: Adjust types in trace_var() declarations
Use bool rather than int/bool_t for 'cycles' to match the !CONFIG_TRACEBUFFER version, and use unsigned int rather than int for 'extra' to match the function it is forwarded to.
---
CC: George Dunlap <[email protected]>
CC: Ian Jackson <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Tim Deegan <[email protected]>
CC: Wei Liu <[email protected]>
CC: Julien Grall <[email protected]>
--- xen/include/xen/trace.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
xen/include/xen/trace.h +2 -2
@@ -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 (u32 event,bool cycles,unsigned int extra,const void *); -static inline void trace_var (u32 event,int cycles,int extra, +static inline void trace_var (u32 event,bool cycles,unsigned int extra,const void *extra_data) {if (unlikely (tb_init_done) )
Signature · 7 lines
2.11.0 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 5 lines · Andrew Cooper
Use bool rather than int/bool_t for 'cycles' to match the !CONFIG_TRACEBUFFER version, and use unsigned int rather than int for 'extra' to match the function it is forwarded to.
Signed-off-by Andrew Cooper <[email protected]>
albeit I'd have expected the file to by part of the XENTRACE section of ./MAINTAINERS.
xen/include/xen/trace.h int tb_control(struct xen_sysctl_tbuf_op *tbc); · line 47
Quoted 12 lines
xen/include/xen/trace.h +2
-2@@ -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 (u32 event,bool cycles,unsigned int extra,const void *); -static inline void trace_var (u32 event,int cycles,int extra, +static inline void trace_var (u32 event,bool cycles,unsigned int extra,const void *extra_data)
Would be nice if the u32-s here could go away at the same time. Ideally they'd become unsigned int, but I guess you're once again rather seeing them be uint32_t.
Also wouldn't you better adjust __trace_var()'s definition as well at this occasion?
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel