Linux Perf
intel-pt-log.c File Reference
#include <stdio.h>
#include <stdint.h>
#include <inttypes.h>
#include <stdarg.h>
#include <stdbool.h>
#include <string.h>
#include "intel-pt-log.h"
#include "intel-pt-insn-decoder.h"
#include "intel-pt-pkt-decoder.h"
Include dependency graph for intel-pt-log.c:

Go to the source code of this file.

Macros

#define MAX_LOG_NAME   256
 

Functions

void intel_pt_log_enable (void)
 
void intel_pt_log_disable (void)
 
void intel_pt_log_set_name (const char *name)
 
static void intel_pt_print_data (const unsigned char *buf, int len, uint64_t pos, int indent)
 
static void intel_pt_print_no_data (uint64_t pos, int indent)
 
static int intel_pt_log_open (void)
 
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,...)
 

Variables

static FILE * f
 
static char log_name [MAX_LOG_NAME]
 
bool intel_pt_enable_logging
 

Macro Definition Documentation

◆ MAX_LOG_NAME

#define MAX_LOG_NAME   256

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

Function Documentation

◆ __intel_pt_log()

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

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

Here is the call graph for this function:

◆ __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_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_open()

static int intel_pt_log_open ( void  )
static

Definition at line 81 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_print_data()

static void intel_pt_print_data ( const unsigned char *  buf,
int  len,
uint64_t  pos,
int  indent 
)
static

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

◆ intel_pt_print_no_data()

static void intel_pt_print_no_data ( uint64_t  pos,
int  indent 
)
static

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

Variable Documentation

◆ f

FILE* f
static

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

◆ intel_pt_enable_logging

bool intel_pt_enable_logging

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

◆ log_name

char log_name[MAX_LOG_NAME]
static

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