]> xenbits.xensource.com Git - xen.git/commitdiff
xen: Drop $ARCH/trace.h
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 20 Sep 2021 16:12:56 +0000 (17:12 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 10 Jan 2023 21:17:02 +0000 (21:17 +0000)
Each architecture's main trace.h is empty.  Drop them all, so as not force all
new architectures to create an empty file too.

While moving the declaration of tb_init_done, change from int to bool.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Julien Grall <jgrall@amazon.com>
xen/arch/arm/include/asm/trace.h [deleted file]
xen/arch/x86/include/asm/trace.h [deleted file]
xen/common/trace.c
xen/include/xen/trace.h

diff --git a/xen/arch/arm/include/asm/trace.h b/xen/arch/arm/include/asm/trace.h
deleted file mode 100644 (file)
index e06def6..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-#ifndef __ASM_TRACE_H__
-#define __ASM_TRACE_H__
-
-#endif /* __ASM_TRACE_H__ */
-/*
- * Local variables:
- * mode: C
- * c-file-style: "BSD"
- * c-basic-offset: 4
- * indent-tabs-mode: nil
- * End:
- */
diff --git a/xen/arch/x86/include/asm/trace.h b/xen/arch/x86/include/asm/trace.h
deleted file mode 100644 (file)
index edef1bb..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-#ifndef __ASM_TRACE_H__
-#define __ASM_TRACE_H__
-
-#endif /* __ASM_TRACE_H__ */
index fb3752ce628657b896e84923c35e0172c7db1817..9b4c696843293d757cf966d42b76789068961b3c 100644 (file)
@@ -67,7 +67,7 @@ static DEFINE_PER_CPU(unsigned long, lost_records_first_tsc);
 
 /* a flag recording whether initialization has been done */
 /* or more properly, if the tbuf subsystem is enabled right now */
-int tb_init_done __read_mostly;
+bool __read_mostly tb_init_done;
 
 /* which CPUs tracing is enabled on */
 static cpumask_t tb_cpu_mask;
index 3cbb542af88848a02c83b4c856ea68bc8f6ae7f6..055883287e8c3ab91342876a00b5c56fbcb0dca5 100644 (file)
 #ifndef __XEN_TRACE_H__
 #define __XEN_TRACE_H__
 
-/* Put 'tb_init_done' here because 'asm/trace.h' may use it */
-#ifdef CONFIG_TRACEBUFFER
-extern int tb_init_done;
-#else
-#define tb_init_done false
-#endif
-
 #include <xen/types.h>
 #include <public/sysctl.h>
 #include <public/trace.h>
-#include <asm/trace.h>
 
 #ifdef CONFIG_TRACEBUFFER
+
+extern bool tb_init_done;
+
 /* Used to initialise trace buffer functionality */
 void init_trace_bufs(void);
 
@@ -58,6 +53,8 @@ void __trace_hypercall(uint32_t event, unsigned long op,
 
 #include <xen/errno.h>
 
+#define tb_init_done false
+
 static inline void init_trace_bufs(void) {}
 static inline int tb_control(struct xen_sysctl_tbuf_op *tbc)
 {