Linux Perf
intel-pt-log.h File Reference
#include <linux/compiler.h>
#include <stdint.h>
#include <inttypes.h>
Include dependency graph for intel-pt-log.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define intel_pt_log(fmt, ...)
 
#define intel_pt_log_packet(arg, ...)
 
#define intel_pt_log_insn(arg, ...)
 
#define intel_pt_log_insn_no_data(arg, ...)
 
#define x64_fmt   "0x%" PRIx64
 

Functions

void intel_pt_log_enable (void)
 
void intel_pt_log_disable (void)
 
void intel_pt_log_set_name (const char *name)
 
void __intel_pt_log_packet (const struct intel_pt_pkt *packet, int pkt_len, uint64_t pos, const unsigned char *buf)
 
void __intel_pt_log_insn (struct intel_pt_insn *intel_pt_insn, uint64_t ip)
 
void __intel_pt_log_insn_no_data (struct intel_pt_insn *intel_pt_insn, uint64_t ip)
 
void __intel_pt_log (const char *fmt,...) __printf(1
 
static void intel_pt_log_at (const char *msg, uint64_t u)
 
static void intel_pt_log_to (const char *msg, uint64_t u)
 

Variables

bool intel_pt_enable_logging
 

Macro Definition Documentation

◆ intel_pt_log

#define intel_pt_log (   fmt,
  ... 
)
Value:
do { \
__intel_pt_log(fmt, ##__VA_ARGS__); \
} while (0)
const char * fmt
Definition: dso.c:193
bool intel_pt_enable_logging
Definition: intel-pt-log.c:32

Definition at line 40 of file intel-pt-log.h.

◆ intel_pt_log_insn

#define intel_pt_log_insn (   arg,
  ... 
)
Value:
do { \
__intel_pt_log_insn(arg, ##__VA_ARGS__); \
} while (0)
bool intel_pt_enable_logging
Definition: intel-pt-log.c:32

Definition at line 52 of file intel-pt-log.h.

◆ intel_pt_log_insn_no_data

#define intel_pt_log_insn_no_data (   arg,
  ... 
)
Value:
do { \
__intel_pt_log_insn_no_data(arg, ##__VA_ARGS__); \
} while (0)
bool intel_pt_enable_logging
Definition: intel-pt-log.c:32

Definition at line 58 of file intel-pt-log.h.

◆ intel_pt_log_packet

#define intel_pt_log_packet (   arg,
  ... 
)
Value:
do { \
__intel_pt_log_packet(arg, ##__VA_ARGS__); \
} while (0)
bool intel_pt_enable_logging
Definition: intel-pt-log.c:32

Definition at line 46 of file intel-pt-log.h.

◆ x64_fmt

#define x64_fmt   "0x%" PRIx64

Definition at line 64 of file intel-pt-log.h.

Function Documentation

◆ __intel_pt_log()

void __intel_pt_log ( const char *  fmt,
  ... 
)

◆ __intel_pt_log_insn()

void __intel_pt_log_insn ( struct intel_pt_insn intel_pt_insn,
uint64_t  ip 
)

Definition at line 114 of file intel-pt-log.c.

Here is the call graph for this function:

◆ __intel_pt_log_insn_no_data()

void __intel_pt_log_insn_no_data ( struct intel_pt_insn intel_pt_insn,
uint64_t  ip 
)

Definition at line 131 of file intel-pt-log.c.

Here is the call graph for this function:

◆ __intel_pt_log_packet()

void __intel_pt_log_packet ( const struct intel_pt_pkt packet,
int  pkt_len,
uint64_t  pos,
const unsigned char *  buf 
)

Definition at line 101 of file intel-pt-log.c.

Here is the call graph for this function:

◆ intel_pt_log_at()

static void intel_pt_log_at ( const char *  msg,
uint64_t  u 
)
inlinestatic

Definition at line 68 of file intel-pt-log.h.

◆ intel_pt_log_disable()

void intel_pt_log_disable ( void  )

Definition at line 39 of file intel-pt-log.c.

◆ intel_pt_log_enable()

void intel_pt_log_enable ( void  )

Definition at line 34 of file intel-pt-log.c.

◆ intel_pt_log_set_name()

void intel_pt_log_set_name ( const char *  name)

Definition at line 46 of file intel-pt-log.c.

◆ intel_pt_log_to()

static void intel_pt_log_to ( const char *  msg,
uint64_t  u 
)
inlinestatic

Definition at line 73 of file intel-pt-log.h.

Variable Documentation

◆ intel_pt_enable_logging

bool intel_pt_enable_logging

Definition at line 32 of file intel-pt-log.c.