Go to the source code of this file.
Data Structures | |
struct | ibs_translation_table |
Functions | |
void | trans_ibs_fetch (struct transient *trans, unsigned int selected_flag) |
void | trans_ibs_op (struct transient *trans, unsigned int selected_flag) |
void | trans_ibs_op_ls (struct transient *trans, unsigned int selected_flag) |
void | trans_ibs_op_nb (struct transient *trans, unsigned int selected_flag) |
int | trans_ibs_op_rip_invalid (struct transient *trans) |
void | trans_ibs_op_mask_reserved (unsigned int family, struct transient *trans) |
void | trans_ibs_op_ls_memaccess (struct transient *trans) |
void | trans_ibs_op_bta (struct transient *trans) |
AMD Family10h Instruction Based Sampling (IBS) translation.
Definition in file opd_ibs_trans.h.
void trans_ibs_fetch | ( | struct transient * | trans, | |
unsigned int | selected_flag | |||
) |
Definition at line 29 of file opd_ibs_trans.c.
References AGG_IBS_COUNT, AGG_IBS_EVENT, CHECK_FETCH_SELECTED_FLAG, DE_IBS_FETCH_1G_PAGE, DE_IBS_FETCH_2M_PAGE, DE_IBS_FETCH_4K_PAGE, DE_IBS_FETCH_ABORTED, DE_IBS_FETCH_ALL, DE_IBS_FETCH_ATTEMPTED, DE_IBS_FETCH_COMPLETED, DE_IBS_FETCH_KILLED, DE_IBS_FETCH_LATENCY, DE_IBS_FETCH_XX_PAGE, DE_IBS_IC_HIT, DE_IBS_IC_MISS, DE_IBS_ITLB_L1M_L2H, DE_IBS_ITLB_L1M_L2M, DE_IBS_L1_ITLB_HIT, ibs_sample::fetch, IBS_FETCH_FETCH_COMPLETION, IBS_FETCH_FETCH_LATENCY, IBS_FETCH_INST_CACHE_HIT, IBS_FETCH_INST_CACHE_MISS, IBS_FETCH_ITLB_L1M_L2H, IBS_FETCH_ITLB_L1M_L2M, IBS_FETCH_KILLED, IBS_FETCH_L1_TLB_HIT, IBS_FETCH_PHYS_ADDR_VALID, IBS_FETCH_TLB_PAGE_SIZE_1G, IBS_FETCH_TLB_PAGE_SIZE_2M, IBS_FETCH_TLB_PAGE_SIZE_4K, and trans.
Referenced by opd_log_ibs_fetch().
void trans_ibs_op | ( | struct transient * | trans, | |
unsigned int | selected_flag | |||
) |
Definition at line 127 of file opd_ibs_trans.c.
References AGG_IBS_COUNT, AGG_IBS_EVENT, CHECK_OP_SELECTED_FLAG, DE_IBS_BRANCH_MISP, DE_IBS_BRANCH_MISP_TAKEN, DE_IBS_BRANCH_RETIRED, DE_IBS_BRANCH_TAKEN, DE_IBS_OP_ALL, DE_IBS_OP_COMP_TO_RETIRE, DE_IBS_OP_TAG_TO_RETIRE, DE_IBS_RESYNC, DE_IBS_RETURN, DE_IBS_RETURN_MISP, IBS_OP_BRANCH_MISPREDICT, IBS_OP_BRANCH_RESYNC, IBS_OP_BRANCH_RETIRED, IBS_OP_BRANCH_TAKEN, IBS_OP_COM_TO_RETIRE_CYCLES, IBS_OP_RETURN, IBS_OP_TAG_TO_RETIRE_CYCLES, ibs_sample::op, and trans.
Referenced by opd_log_ibs_op().
void trans_ibs_op_bta | ( | struct transient * | trans | ) |
Definition at line 564 of file opd_ibs_trans.c.
References bta_log, operf_transient::cpu, ibs_op_sample::ibs_op_brtgt_addr, operf_transient::in_kernel, INVALID_COOKIE, NO_COOKIE, ibs_sample::op, operf_transient::pc, operf_transient::tgid, operf_transient::tid, and trans.
Referenced by opd_log_ibs_op().
void trans_ibs_op_ls | ( | struct transient * | trans, | |
unsigned int | selected_flag | |||
) |
Definition at line 209 of file opd_ibs_trans.c.
References AGG_IBS_COUNT, AGG_IBS_EVENT, CHECK_OP_LS_SELECTED_FLAG, DE_IBS_LS_ALL_OP, DE_IBS_LS_BNK_CONF_LOAD, DE_IBS_LS_BNK_CONF_STORE, DE_IBS_LS_DC_HIT, DE_IBS_LS_DC_LOAD_LAT, DE_IBS_LS_DC_MISS, DE_IBS_LS_DTLB_L1H, DE_IBS_LS_DTLB_L1M_L2H, DE_IBS_LS_DTLB_L1M_L2M, DE_IBS_LS_L1_DTLB_1G, DE_IBS_LS_L1_DTLB_2M, DE_IBS_LS_L1_DTLB_4K, DE_IBS_LS_L1_DTLB_RES, DE_IBS_LS_L2_DTLB_1G, DE_IBS_LS_L2_DTLB_2M, DE_IBS_LS_L2_DTLB_4K, DE_IBS_LS_L2_DTLB_RES2, DE_IBS_LS_LOAD_OP, DE_IBS_LS_LOCKED_OP, DE_IBS_LS_MAB_HIT, DE_IBS_LS_MISALIGNED, DE_IBS_LS_STL_CANCELLED, DE_IBS_LS_STL_FORWARDED, DE_IBS_LS_STORE_OP, DE_IBS_LS_UC_MEM_ACCESS, DE_IBS_LS_WC_MEM_ACCESS, IBS_OP_DC_MISS_LATENCY, IBS_OP_IBS_DC_L1_TLB_HIT_1GB, IBS_OP_IBS_DC_L1_TLB_HIT_2MB, IBS_OP_IBS_DC_L1_TLB_MISS, IBS_OP_IBS_DC_L2_TLB_HIT_1GB, IBS_OP_IBS_DC_L2_TLB_HIT_2MB, IBS_OP_IBS_DC_L2_TLB_MISS, IBS_OP_IBS_DC_LD_BNK_CON, IBS_OP_IBS_DC_LIN_ADDR_VALID, IBS_OP_IBS_DC_MAB_HIT, IBS_OP_IBS_DC_MISS, IBS_OP_IBS_DC_MISS_ACC, IBS_OP_IBS_DC_ST_BNK_CON, IBS_OP_IBS_DC_ST_TO_LD_CAN, IBS_OP_IBS_DC_ST_TO_LD_FWD, IBS_OP_IBS_DC_UC_MEM_ACC, IBS_OP_IBS_DC_WC_MEM_ACC, IBS_OP_IBS_LD_OP, IBS_OP_IBS_LOCKED_OP, IBS_OP_IBS_ST_OP, ibs_sample::op, and trans.
Referenced by opd_log_ibs_op().
void trans_ibs_op_ls_memaccess | ( | struct transient * | trans | ) |
Definition at line 598 of file opd_ibs_trans.c.
References operf_transient::cpu, IBS_OP_DC_MISS_LATENCY, IBS_OP_IBS_LD_OP, ibs_op_sample::ibs_op_ldst_linaddr_high, ibs_op_sample::ibs_op_ldst_linaddr_low, ibs_op_sample::ibs_op_phys_addr_high, ibs_op_sample::ibs_op_phys_addr_low, operf_transient::in_kernel, INVALID_COOKIE, memaccess_log, NO_COOKIE, ibs_sample::op, operf_transient::pc, operf_transient::tgid, operf_transient::tid, and trans.
Referenced by opd_log_ibs_op().
void trans_ibs_op_mask_reserved | ( | unsigned int | family, | |
struct transient * | trans | |||
) |
Definition at line 524 of file opd_ibs_trans.c.
References DC_MASK_L1_HIT_1G, DC_MASK_L2_HIT_1G, DC_MASK_LD_BANK_CONFLICT, DC_MASK_ST_BANK_CONFLICT, DC_MASK_ST_TO_LD_CANCEL, ibs_op_sample::ibs_op_data1_high, ibs_op_sample::ibs_op_data2_low, ibs_op_sample::ibs_op_data3_low, MASK_RIP_INVALID, NB_MASK_L3_STATE, NB_MASK_REQ_DST_PROC, ibs_sample::op, and trans.
Referenced by opd_log_ibs_op().
void trans_ibs_op_nb | ( | struct transient * | trans, | |
unsigned int | selected_flag | |||
) |
Definition at line 414 of file opd_ibs_trans.c.
References AGG_IBS_COUNT, AGG_IBS_EVENT, CHECK_OP_NB_SELECTED_FLAG, DE_IBS_NB_CACHE_STATE_M, DE_IBS_NB_CACHE_STATE_O, DE_IBS_NB_LOCAL, DE_IBS_NB_LOCAL_CACHE, DE_IBS_NB_LOCAL_DRAM, DE_IBS_NB_LOCAL_L3, DE_IBS_NB_LOCAL_LATENCY, DE_IBS_NB_LOCAL_OTHER, DE_IBS_NB_REMOTE, DE_IBS_NB_REMOTE_CACHE, DE_IBS_NB_REMOTE_DRAM, DE_IBS_NB_REMOTE_LATENCY, DE_IBS_NB_REMOTE_OTHER, IBS_OP_DC_MISS_LATENCY, IBS_OP_IBS_DC_MISS, IBS_OP_IBS_LD_OP, IBS_OP_NB_IBS_CACHE_HIT_ST, IBS_OP_NB_IBS_REQ_DST_PROC, IBS_OP_NB_IBS_REQ_SRC, IBS_OP_NB_IBS_REQ_SRC_01, IBS_OP_NB_IBS_REQ_SRC_02, IBS_OP_NB_IBS_REQ_SRC_03, IBS_OP_NB_IBS_REQ_SRC_07, ibs_sample::op, and trans.
Referenced by opd_log_ibs_op().
int trans_ibs_op_rip_invalid | ( | struct transient * | trans | ) |
Definition at line 513 of file opd_ibs_trans.c.
References IBS_OP_RIP_INVALID, ibs_sample::op, and trans.
Referenced by opd_log_ibs_op().