blob: 19fc1ab1426b19295c60ae6f719e1d8af9c05346 [file] [log] [blame]
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __ARM64_KVM_HYP_TRACE_H__
#define __ARM64_KVM_HYP_TRACE_H__
#include <linux/trace_seq.h>
#include <linux/workqueue.h>
struct ht_iterator {
struct ring_buffer_iter **buf_iter;
struct hyp_entry_hdr *ent;
struct trace_seq seq;
struct list_head list;
u64 ts;
void *spare;
size_t copy_leftover;
size_t ent_size;
struct delayed_work poke_work;
unsigned long lost_events;
cpumask_var_t cpus;
int ent_cpu;
int cpu;
};
#ifdef CONFIG_TRACING
int init_hyp_tracefs(void);
#else
static inline int init_hyp_tracefs(void) { return 0; }
#endif
#endif