Linux Perf
cs-etm-decoder.h File Reference
#include <linux/types.h>
#include <stdio.h>
Include dependency graph for cs-etm-decoder.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  cs_etm_buffer
 
struct  cs_etm_packet
 
struct  cs_etmv4_trace_params
 
struct  cs_etm_trace_params
 
struct  cs_etm_decoder_params
 

Typedefs

typedef u32(* cs_etm_mem_cb_type) (struct cs_etm_queue *, u64, size_t, u8 *)
 

Enumerations

enum  cs_etm_sample_type { CS_ETM_RANGE = 1 << 0, CS_ETM_TRACE_ON = 1 << 1 }
 
enum  { CS_ETM_PROTO_ETMV3 = 1, CS_ETM_PROTO_ETMV4i, CS_ETM_PROTO_ETMV4d }
 
enum  { CS_ETM_OPERATION_PRINT = 1, CS_ETM_OPERATION_DECODE }
 

Functions

int cs_etm_decoder__process_data_block (struct cs_etm_decoder *decoder, u64 indx, const u8 *buf, size_t len, size_t *consumed)
 
struct cs_etm_decodercs_etm_decoder__new (int num_cpu, struct cs_etm_decoder_params *d_params, struct cs_etm_trace_params t_params[])
 
void cs_etm_decoder__free (struct cs_etm_decoder *decoder)
 
int cs_etm_decoder__add_mem_access_cb (struct cs_etm_decoder *decoder, u64 start, u64 end, cs_etm_mem_cb_type cb_func)
 
int cs_etm_decoder__get_packet (struct cs_etm_decoder *decoder, struct cs_etm_packet *packet)
 
int cs_etm_decoder__reset (struct cs_etm_decoder *decoder)
 

Typedef Documentation

◆ cs_etm_mem_cb_type

typedef u32(* cs_etm_mem_cb_type) (struct cs_etm_queue *, u64, size_t, u8 *)

Definition at line 42 of file cs-etm-decoder.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
CS_ETM_PROTO_ETMV3 
CS_ETM_PROTO_ETMV4i 
CS_ETM_PROTO_ETMV4d 

Definition at line 76 of file cs-etm-decoder.h.

◆ anonymous enum

anonymous enum
Enumerator
CS_ETM_OPERATION_PRINT 
CS_ETM_OPERATION_DECODE 

Definition at line 82 of file cs-etm-decoder.h.

◆ cs_etm_sample_type

Enumerator
CS_ETM_RANGE 
CS_ETM_TRACE_ON 

Definition at line 25 of file cs-etm-decoder.h.

Function Documentation

◆ cs_etm_decoder__add_mem_access_cb()

int cs_etm_decoder__add_mem_access_cb ( struct cs_etm_decoder decoder,
u64  start,
u64  end,
cs_etm_mem_cb_type  cb_func 
)

Definition at line 62 of file cs-etm-decoder.c.

Here is the call graph for this function:

◆ cs_etm_decoder__free()

void cs_etm_decoder__free ( struct cs_etm_decoder decoder)

Definition at line 554 of file cs-etm-decoder.c.

Here is the call graph for this function:

◆ cs_etm_decoder__get_packet()

int cs_etm_decoder__get_packet ( struct cs_etm_decoder decoder,
struct cs_etm_packet packet 
)

Definition at line 90 of file cs-etm-decoder.c.

◆ cs_etm_decoder__new()

struct cs_etm_decoder* cs_etm_decoder__new ( int  num_cpu,
struct cs_etm_decoder_params d_params,
struct cs_etm_trace_params  t_params[] 
)

Definition at line 443 of file cs-etm-decoder.c.

Here is the call graph for this function:

◆ cs_etm_decoder__process_data_block()

int cs_etm_decoder__process_data_block ( struct cs_etm_decoder decoder,
u64  indx,
const u8 *  buf,
size_t  len,
size_t *  consumed 
)

Definition at line 506 of file cs-etm-decoder.c.

◆ cs_etm_decoder__reset()

int cs_etm_decoder__reset ( struct cs_etm_decoder decoder)

Definition at line 76 of file cs-etm-decoder.c.