16 #ifndef INCLUDE__INTEL_PT_LOG_H__ 17 #define INCLUDE__INTEL_PT_LOG_H__ 19 #include <linux/compiler.h> 30 uint64_t pos,
const unsigned char *buf);
40 #define intel_pt_log(fmt, ...) \ 42 if (intel_pt_enable_logging) \ 43 __intel_pt_log(fmt, ##__VA_ARGS__); \ 46 #define intel_pt_log_packet(arg, ...) \ 48 if (intel_pt_enable_logging) \ 49 __intel_pt_log_packet(arg, ##__VA_ARGS__); \ 52 #define intel_pt_log_insn(arg, ...) \ 54 if (intel_pt_enable_logging) \ 55 __intel_pt_log_insn(arg, ##__VA_ARGS__); \ 58 #define intel_pt_log_insn_no_data(arg, ...) \ 60 if (intel_pt_enable_logging) \ 61 __intel_pt_log_insn_no_data(arg, ##__VA_ARGS__); \ 64 #define x64_fmt "0x%" PRIx64 void __intel_pt_log_insn(struct intel_pt_insn *intel_pt_insn, uint64_t ip)
#define intel_pt_log(fmt,...)
void intel_pt_log_enable(void)
void intel_pt_log_disable(void)
void __intel_pt_log(const char *fmt,...) __printf(1
bool intel_pt_enable_logging
void intel_pt_log_set_name(const char *name)
static void intel_pt_log_at(const char *msg, uint64_t u)
static int __printf(2, 3)
void __intel_pt_log_packet(const struct intel_pt_pkt *packet, int pkt_len, uint64_t pos, const unsigned char *buf)
static void intel_pt_log_to(const char *msg, uint64_t u)
void __intel_pt_log_insn_no_data(struct intel_pt_insn *intel_pt_insn, uint64_t ip)