Home
last modified time | relevance | path

Searched refs:intel_pt_insn (Results 1 – 9 of 9) sorted by relevance

/Linux-v4.19/tools/perf/util/intel-pt-decoder/
Dintel-pt-insn-decoder.c37 struct intel_pt_insn *intel_pt_insn) in intel_pt_insn_decoder() argument
43 intel_pt_insn->rel = 0; in intel_pt_insn_decoder()
46 intel_pt_insn->op = INTEL_PT_OP_OTHER; in intel_pt_insn_decoder()
47 intel_pt_insn->branch = INTEL_PT_BR_NO_BRANCH; in intel_pt_insn_decoder()
48 intel_pt_insn->length = insn->length; in intel_pt_insn_decoder()
138 intel_pt_insn->op = op; in intel_pt_insn_decoder()
139 intel_pt_insn->branch = branch; in intel_pt_insn_decoder()
140 intel_pt_insn->length = insn->length; in intel_pt_insn_decoder()
147 intel_pt_insn->rel = insn->immediate.value; in intel_pt_insn_decoder()
150 intel_pt_insn->rel = in intel_pt_insn_decoder()
[all …]
Dintel-pt-log.c114 void __intel_pt_log_insn(struct intel_pt_insn *intel_pt_insn, uint64_t ip) in __intel_pt_log_insn() argument
117 size_t len = intel_pt_insn->length; in __intel_pt_log_insn()
124 intel_pt_print_data(intel_pt_insn->buf, len, ip, 8); in __intel_pt_log_insn()
125 if (intel_pt_insn_desc(intel_pt_insn, desc, INTEL_PT_INSN_DESC_MAX) > 0) in __intel_pt_log_insn()
131 void __intel_pt_log_insn_no_data(struct intel_pt_insn *intel_pt_insn, in __intel_pt_log_insn_no_data() argument
140 if (intel_pt_insn_desc(intel_pt_insn, desc, INTEL_PT_INSN_DESC_MAX) > 0) in __intel_pt_log_insn_no_data()
Dintel-pt-insn-decoder.h45 struct intel_pt_insn { struct
54 struct intel_pt_insn *intel_pt_insn); argument
58 int intel_pt_insn_desc(const struct intel_pt_insn *intel_pt_insn, char *buf,
Dintel-pt-log.h32 struct intel_pt_insn;
34 void __intel_pt_log_insn(struct intel_pt_insn *intel_pt_insn, uint64_t ip);
35 void __intel_pt_log_insn_no_data(struct intel_pt_insn *intel_pt_insn,
Dintel-pt-decoder.c100 int (*walk_insn)(struct intel_pt_insn *intel_pt_insn,
944 struct intel_pt_insn *intel_pt_insn, uint64_t ip) in intel_pt_walk_insn() argument
954 err = decoder->walk_insn(intel_pt_insn, &insn_cnt, &decoder->ip, ip, in intel_pt_walk_insn()
980 if (intel_pt_insn->branch == INTEL_PT_BR_NO_BRANCH) { in intel_pt_walk_insn()
984 decoder->ip += intel_pt_insn->length; in intel_pt_walk_insn()
989 if (intel_pt_insn->op == INTEL_PT_OP_CALL) { in intel_pt_walk_insn()
991 if (intel_pt_insn->branch != INTEL_PT_BR_UNCONDITIONAL || in intel_pt_walk_insn()
992 intel_pt_insn->rel) { in intel_pt_walk_insn()
994 intel_pt_insn->length); in intel_pt_walk_insn()
998 } else if (intel_pt_insn->op == INTEL_PT_OP_RET) { in intel_pt_walk_insn()
[all …]
Dintel-pt-decoder.h92 struct intel_pt_insn;
104 int (*walk_insn)(struct intel_pt_insn *intel_pt_insn,
/Linux-v4.19/tools/perf/arch/x86/tests/
Dinsn-x86.c96 struct intel_pt_insn intel_pt_insn; in test_data_item() local
117 if (intel_pt_get_insn(dat->data, MAX_INSN_SIZE, x86_64, &intel_pt_insn)) { in test_data_item()
122 if ((int)intel_pt_insn.op != op) { in test_data_item()
124 intel_pt_insn.op, op, dat->asm_rep); in test_data_item()
128 if ((int)intel_pt_insn.branch != branch) { in test_data_item()
130 intel_pt_insn.branch, branch, dat->asm_rep); in test_data_item()
134 if (intel_pt_insn.rel != dat->expected_rel) { in test_data_item()
136 intel_pt_insn.rel, dat->expected_rel, dat->asm_rep); in test_data_item()
/Linux-v4.19/tools/perf/util/
Dintel-bts.c83 struct intel_pt_insn intel_pt_insn; member
298 sample.insn_len = btsq->intel_pt_insn.length; in intel_bts_synth_branch_sample()
299 memcpy(sample.insn, btsq->intel_pt_insn.buf, INTEL_PT_INSN_BUF_SZ); in intel_bts_synth_branch_sample()
351 if (intel_pt_get_insn(buf, len, x86_64, &btsq->intel_pt_insn)) in intel_bts_get_next_insn()
389 btsq->intel_pt_insn.length = 0; in intel_bts_get_branch_type()
393 btsq->intel_pt_insn.length = 0; in intel_bts_get_branch_type()
398 btsq->intel_pt_insn.length = 0; in intel_bts_get_branch_type()
406 btsq->sample_flags = intel_pt_insn_type(btsq->intel_pt_insn.op); in intel_bts_get_branch_type()
450 btsq->intel_pt_insn.length, in intel_bts_process_buffer()
Dintel-pt.c371 struct intel_pt_insn *intel_pt_insn) in intel_pt_cache_add() argument
386 e->op = intel_pt_insn->op; in intel_pt_cache_add()
387 e->branch = intel_pt_insn->branch; in intel_pt_cache_add()
388 e->length = intel_pt_insn->length; in intel_pt_cache_add()
389 e->rel = intel_pt_insn->rel; in intel_pt_cache_add()
390 memcpy(e->insn, intel_pt_insn->buf, INTEL_PT_INSN_BUF_SZ); in intel_pt_cache_add()
410 static int intel_pt_walk_next_insn(struct intel_pt_insn *intel_pt_insn, in intel_pt_walk_next_insn() argument
427 intel_pt_insn->length = 0; in intel_pt_walk_next_insn()
463 intel_pt_insn->op = e->op; in intel_pt_walk_next_insn()
464 intel_pt_insn->branch = e->branch; in intel_pt_walk_next_insn()
[all …]