xen: Drop $ARCH/trace.h

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>
This commit is contained in:
Andrew Cooper committed 2023-01-10 21:17:02 +00:00
1 parent 692d04a9ca
commit 4c5edd2449
4 files changed
+6 -25

No files matched your search

-12
View File
@@ -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:
*/
-4
View File
@@ -1,4 +0,0 @@
#ifndef __ASM_TRACE_H__
#define __ASM_TRACE_H__
#endif /* __ASM_TRACE_H__ */
+1 -1
View 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;
+5 -8
View File
@@ -21,19 +21,14 @@
#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)
{
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.