Linux Perf
cs-etm.h File Reference
#include "util/event.h"
#include "util/session.h"
Include dependency graph for cs-etm.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define KiB(x)   ((x) * 1024)
 
#define MiB(x)   ((x) * 1024 * 1024)
 
#define CS_ETM_HEADER_SIZE   (CS_HEADER_VERSION_0_MAX * sizeof(u64))
 
#define CS_ETMV3_PRIV_SIZE   (CS_ETM_PRIV_MAX * sizeof(u64))
 
#define CS_ETMV4_PRIV_SIZE   (CS_ETMV4_PRIV_MAX * sizeof(u64))
 

Enumerations

enum  { CS_HEADER_VERSION_0, CS_PMU_TYPE_CPUS, CS_ETM_SNAPSHOT, CS_HEADER_VERSION_0_MAX }
 
enum  { CS_ETM_MAGIC, CS_ETM_CPU }
 
enum  {
  CS_ETM_ETMCR = CS_ETM_CPU + 1, CS_ETM_ETMTRACEIDR, CS_ETM_ETMCCER, CS_ETM_ETMIDR,
  CS_ETM_PRIV_MAX
}
 
enum  {
  CS_ETMV4_TRCCONFIGR = CS_ETM_CPU + 1, CS_ETMV4_TRCTRACEIDR, CS_ETMV4_TRCIDR0, CS_ETMV4_TRCIDR1,
  CS_ETMV4_TRCIDR2, CS_ETMV4_TRCIDR8, CS_ETMV4_TRCAUTHSTATUS, CS_ETMV4_PRIV_MAX
}
 

Functions

static int cs_etm__process_auxtrace_info (union perf_event *event __maybe_unused, struct perf_session *session __maybe_unused)
 

Variables

struct intlisttraceid_list
 
static const u64 __perf_cs_etmv3_magic = 0x3030303030303030ULL
 
static const u64 __perf_cs_etmv4_magic = 0x4040404040404040ULL
 

Macro Definition Documentation

◆ CS_ETM_HEADER_SIZE

#define CS_ETM_HEADER_SIZE   (CS_HEADER_VERSION_0_MAX * sizeof(u64))

Definition at line 62 of file cs-etm.h.

◆ CS_ETMV3_PRIV_SIZE

#define CS_ETMV3_PRIV_SIZE   (CS_ETM_PRIV_MAX * sizeof(u64))

Definition at line 66 of file cs-etm.h.

◆ CS_ETMV4_PRIV_SIZE

#define CS_ETMV4_PRIV_SIZE   (CS_ETMV4_PRIV_MAX * sizeof(u64))

Definition at line 67 of file cs-etm.h.

◆ KiB

#define KiB (   x)    ((x) * 1024)

Definition at line 59 of file cs-etm.h.

◆ MiB

#define MiB (   x)    ((x) * 1024 * 1024)

Definition at line 60 of file cs-etm.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
CS_HEADER_VERSION_0 
CS_PMU_TYPE_CPUS 
CS_ETM_SNAPSHOT 
CS_HEADER_VERSION_0_MAX 

Definition at line 16 of file cs-etm.h.

◆ anonymous enum

anonymous enum
Enumerator
CS_ETM_MAGIC 
CS_ETM_CPU 

Definition at line 26 of file cs-etm.h.

◆ anonymous enum

anonymous enum
Enumerator
CS_ETM_ETMCR 
CS_ETM_ETMTRACEIDR 
CS_ETM_ETMCCER 
CS_ETM_ETMIDR 
CS_ETM_PRIV_MAX 

Definition at line 32 of file cs-etm.h.

◆ anonymous enum

anonymous enum
Enumerator
CS_ETMV4_TRCCONFIGR 
CS_ETMV4_TRCTRACEIDR 
CS_ETMV4_TRCIDR0 
CS_ETMV4_TRCIDR1 
CS_ETMV4_TRCIDR2 
CS_ETMV4_TRCIDR8 
CS_ETMV4_TRCAUTHSTATUS 
CS_ETMV4_PRIV_MAX 

Definition at line 43 of file cs-etm.h.

Function Documentation

◆ cs_etm__process_auxtrace_info()

static int cs_etm__process_auxtrace_info ( union perf_event *event  __maybe_unused,
struct perf_session *session  __maybe_unused 
)
inlinestatic

Definition at line 74 of file cs-etm.h.

Variable Documentation

◆ __perf_cs_etmv3_magic

const u64 __perf_cs_etmv3_magic = 0x3030303030303030ULL
static

Definition at line 64 of file cs-etm.h.

◆ __perf_cs_etmv4_magic

const u64 __perf_cs_etmv4_magic = 0x4040404040404040ULL
static

Definition at line 65 of file cs-etm.h.

◆ traceid_list

struct intlist* traceid_list

Definition at line 57 of file cs-etm.h.