Home
last modified time | relevance | path

Searched refs:intel_pt_insn (Results 1 - 18 of 18) sorted by relevance

/kernel/linux/linux-6.6/tools/perf/util/intel-pt-decoder/
H A Dintel-pt-insn-decoder.c29 struct intel_pt_insn *intel_pt_insn) in intel_pt_insn_decoder()
35 intel_pt_insn->rel = 0; in intel_pt_insn_decoder()
36 intel_pt_insn->emulated_ptwrite = false; in intel_pt_insn_decoder()
39 intel_pt_insn->op = INTEL_PT_OP_OTHER; in intel_pt_insn_decoder()
40 intel_pt_insn->branch = INTEL_PT_BR_NO_BRANCH; in intel_pt_insn_decoder()
41 intel_pt_insn->length = insn->length; in intel_pt_insn_decoder()
156 intel_pt_insn->op = op; in intel_pt_insn_decoder()
157 intel_pt_insn->branch = branch; in intel_pt_insn_decoder()
158 intel_pt_insn in intel_pt_insn_decoder()
28 intel_pt_insn_decoder(struct insn *insn, struct intel_pt_insn *intel_pt_insn) intel_pt_insn_decoder() argument
184 intel_pt_get_insn(const unsigned char *buf, size_t len, int x86_64, struct intel_pt_insn *intel_pt_insn) intel_pt_get_insn() argument
256 intel_pt_insn_desc(const struct intel_pt_insn *intel_pt_insn, char *buf, size_t buf_len) intel_pt_insn_desc() argument
[all...]
H A Dintel-pt-insn-decoder.h39 struct intel_pt_insn { struct
49 struct intel_pt_insn *intel_pt_insn);
53 int intel_pt_insn_desc(const struct intel_pt_insn *intel_pt_insn, char *buf,
H A Dintel-pt-log.h25 struct intel_pt_insn;
27 void __intel_pt_log_insn(struct intel_pt_insn *intel_pt_insn, uint64_t ip);
28 void __intel_pt_log_insn_no_data(struct intel_pt_insn *intel_pt_insn,
H A Dintel-pt-log.c225 void __intel_pt_log_insn(struct intel_pt_insn *intel_pt_insn, uint64_t ip) in __intel_pt_log_insn() argument
228 size_t len = intel_pt_insn->length; in __intel_pt_log_insn()
235 intel_pt_print_data(intel_pt_insn->buf, len, ip, 8); in __intel_pt_log_insn()
236 if (intel_pt_insn_desc(intel_pt_insn, desc, INTEL_PT_INSN_DESC_MAX) > 0) in __intel_pt_log_insn()
242 void __intel_pt_log_insn_no_data(struct intel_pt_insn *intel_pt_insn, in __intel_pt_log_insn_no_data() argument
251 if (intel_pt_insn_desc(intel_pt_insn, desc, INTEL_PT_INSN_DESC_MAX) > 0) in __intel_pt_log_insn_no_data()
H A Dintel-pt-decoder.c119 int (*walk_insn)(struct intel_pt_insn *intel_pt_insn,
1118 struct intel_pt_insn intel_pt_insn; in intel_pt_sample_fup_insn() local
1136 err = decoder->walk_insn(&intel_pt_insn, &insn_cnt, &decoder->ip, in intel_pt_sample_fup_insn()
1142 if (intel_pt_insn.branch != INTEL_PT_BR_NO_BRANCH) { in intel_pt_sample_fup_insn()
1155 decoder->ip += intel_pt_insn.length; in intel_pt_sample_fup_insn()
1159 struct intel_pt_insn *intel_pt_insn, uint64_t ip) in intel_pt_walk_insn()
1169 err = decoder->walk_insn(intel_pt_insn, in intel_pt_walk_insn()
1158 intel_pt_walk_insn(struct intel_pt_decoder *decoder, struct intel_pt_insn *intel_pt_insn, uint64_t ip) intel_pt_walk_insn() argument
1410 intel_pt_fup_with_nlip(struct intel_pt_decoder *decoder, struct intel_pt_insn *intel_pt_insn, uint64_t ip, int err) intel_pt_fup_with_nlip() argument
1421 struct intel_pt_insn intel_pt_insn; intel_pt_walk_fup() local
1464 struct intel_pt_insn intel_pt_insn; intel_pt_walk_tip() local
1629 struct intel_pt_insn intel_pt_insn; intel_pt_walk_tnt() local
[all...]
H A Dintel-pt-decoder.h261 struct intel_pt_insn;
275 int (*walk_insn)(struct intel_pt_insn *intel_pt_insn,
/kernel/linux/linux-5.10/tools/perf/util/intel-pt-decoder/
H A Dintel-pt-insn-decoder.c28 struct intel_pt_insn *intel_pt_insn) in intel_pt_insn_decoder()
34 intel_pt_insn->rel = 0; in intel_pt_insn_decoder()
37 intel_pt_insn->op = INTEL_PT_OP_OTHER; in intel_pt_insn_decoder()
38 intel_pt_insn->branch = INTEL_PT_BR_NO_BRANCH; in intel_pt_insn_decoder()
39 intel_pt_insn->length = insn->length; in intel_pt_insn_decoder()
129 intel_pt_insn->op = op; in intel_pt_insn_decoder()
130 intel_pt_insn->branch = branch; in intel_pt_insn_decoder()
131 intel_pt_insn->length = insn->length; in intel_pt_insn_decoder()
138 intel_pt_insn in intel_pt_insn_decoder()
27 intel_pt_insn_decoder(struct insn *insn, struct intel_pt_insn *intel_pt_insn) intel_pt_insn_decoder() argument
157 intel_pt_get_insn(const unsigned char *buf, size_t len, int x86_64, struct intel_pt_insn *intel_pt_insn) intel_pt_get_insn() argument
223 intel_pt_insn_desc(const struct intel_pt_insn *intel_pt_insn, char *buf, size_t buf_len) intel_pt_insn_desc() argument
[all...]
H A Dintel-pt-log.c110 void __intel_pt_log_insn(struct intel_pt_insn *intel_pt_insn, uint64_t ip) in __intel_pt_log_insn() argument
113 size_t len = intel_pt_insn->length; in __intel_pt_log_insn()
120 intel_pt_print_data(intel_pt_insn->buf, len, ip, 8); in __intel_pt_log_insn()
121 if (intel_pt_insn_desc(intel_pt_insn, desc, INTEL_PT_INSN_DESC_MAX) > 0) in __intel_pt_log_insn()
127 void __intel_pt_log_insn_no_data(struct intel_pt_insn *intel_pt_insn, in __intel_pt_log_insn_no_data() argument
136 if (intel_pt_insn_desc(intel_pt_insn, desc, INTEL_PT_INSN_DESC_MAX) > 0) in __intel_pt_log_insn_no_data()
H A Dintel-pt-insn-decoder.h36 struct intel_pt_insn { struct
45 struct intel_pt_insn *intel_pt_insn);
49 int intel_pt_insn_desc(const struct intel_pt_insn *intel_pt_insn, char *buf,
H A Dintel-pt-log.h24 struct intel_pt_insn;
26 void __intel_pt_log_insn(struct intel_pt_insn *intel_pt_insn, uint64_t ip);
27 void __intel_pt_log_insn_no_data(struct intel_pt_insn *intel_pt_insn,
H A Dintel-pt-decoder.c103 int (*walk_insn)(struct intel_pt_insn *intel_pt_insn,
1007 struct intel_pt_insn *intel_pt_insn, uint64_t ip) in intel_pt_walk_insn()
1017 err = decoder->walk_insn(intel_pt_insn, &insn_cnt, &decoder->ip, ip, in intel_pt_walk_insn()
1043 if (intel_pt_insn->branch == INTEL_PT_BR_NO_BRANCH) { in intel_pt_walk_insn()
1047 decoder->ip += intel_pt_insn->length; in intel_pt_walk_insn()
1052 if (intel_pt_insn->op == INTEL_PT_OP_CALL) { in intel_pt_walk_insn()
1054 if (intel_pt_insn->branch != INTEL_PT_BR_UNCONDITIONAL || in intel_pt_walk_insn()
1055 intel_pt_insn in intel_pt_walk_insn()
1006 intel_pt_walk_insn(struct intel_pt_decoder *decoder, struct intel_pt_insn *intel_pt_insn, uint64_t ip) intel_pt_walk_insn() argument
1184 intel_pt_fup_with_nlip(struct intel_pt_decoder *decoder, struct intel_pt_insn *intel_pt_insn, uint64_t ip, int err) intel_pt_fup_with_nlip() argument
1195 struct intel_pt_insn intel_pt_insn; intel_pt_walk_fup() local
1238 struct intel_pt_insn intel_pt_insn; intel_pt_walk_tip() local
1314 struct intel_pt_insn intel_pt_insn; intel_pt_walk_tnt() local
[all...]
H A Dintel-pt-decoder.h225 struct intel_pt_insn;
239 int (*walk_insn)(struct intel_pt_insn *intel_pt_insn,
/kernel/linux/linux-5.10/tools/perf/arch/x86/tests/
H A Dinsn-x86.c97 struct intel_pt_insn intel_pt_insn; in test_data_item() local
118 if (intel_pt_get_insn(dat->data, MAX_INSN_SIZE, x86_64, &intel_pt_insn)) { in test_data_item()
123 if ((int)intel_pt_insn.op != op) { in test_data_item()
125 intel_pt_insn.op, op, dat->asm_rep); in test_data_item()
129 if ((int)intel_pt_insn.branch != branch) { in test_data_item()
131 intel_pt_insn.branch, branch, dat->asm_rep); in test_data_item()
135 if (intel_pt_insn.rel != dat->expected_rel) { in test_data_item()
137 intel_pt_insn.rel, dat->expected_rel, dat->asm_rep); in test_data_item()
/kernel/linux/linux-6.6/tools/perf/arch/x86/tests/
H A Dinsn-x86.c102 struct intel_pt_insn intel_pt_insn; in test_data_item() local
122 if (intel_pt_get_insn(dat->data, MAX_INSN_SIZE, x86_64, &intel_pt_insn)) { in test_data_item()
127 if ((int)intel_pt_insn.op != op) { in test_data_item()
129 intel_pt_insn.op, op, dat->asm_rep); in test_data_item()
133 if ((int)intel_pt_insn.branch != branch) { in test_data_item()
135 intel_pt_insn.branch, branch, dat->asm_rep); in test_data_item()
139 if (intel_pt_insn.rel != dat->expected_rel) { in test_data_item()
141 intel_pt_insn.rel, dat->expected_rel, dat->asm_rep); in test_data_item()
/kernel/linux/linux-5.10/tools/perf/util/
H A Dintel-bts.c76 struct intel_pt_insn intel_pt_insn; member
294 sample.insn_len = btsq->intel_pt_insn.length; in intel_bts_synth_branch_sample()
295 memcpy(sample.insn, btsq->intel_pt_insn.buf, INTEL_PT_INSN_BUF_SZ); in intel_bts_synth_branch_sample()
335 if (intel_pt_get_insn(buf, len, x86_64, &btsq->intel_pt_insn)) in intel_bts_get_next_insn()
373 btsq->intel_pt_insn.length = 0; in intel_bts_get_branch_type()
377 btsq->intel_pt_insn.length = 0; in intel_bts_get_branch_type()
382 btsq->intel_pt_insn.length = 0; in intel_bts_get_branch_type()
390 btsq->sample_flags = intel_pt_insn_type(btsq->intel_pt_insn.op); in intel_bts_get_branch_type()
434 btsq->intel_pt_insn in intel_bts_process_buffer()
[all...]
H A Dintel-pt.c502 struct intel_pt_insn *intel_pt_insn) in intel_pt_cache_add()
517 e->op = intel_pt_insn->op; in intel_pt_cache_add()
518 e->branch = intel_pt_insn->branch; in intel_pt_cache_add()
519 e->length = intel_pt_insn->length; in intel_pt_cache_add()
520 e->rel = intel_pt_insn->rel; in intel_pt_cache_add()
521 memcpy(e->insn, intel_pt_insn->buf, INTEL_PT_INSN_BUF_SZ); in intel_pt_cache_add()
559 static int intel_pt_walk_next_insn(struct intel_pt_insn *intel_pt_insn, in intel_pt_walk_next_insn() argument
576 intel_pt_insn in intel_pt_walk_next_insn()
500 intel_pt_cache_add(struct dso *dso, struct machine *machine, u64 offset, u64 insn_cnt, u64 byte_cnt, struct intel_pt_insn *intel_pt_insn) intel_pt_cache_add() argument
[all...]
/kernel/linux/linux-6.6/tools/perf/util/
H A Dintel-bts.c76 struct intel_pt_insn intel_pt_insn; member
294 sample.insn_len = btsq->intel_pt_insn.length; in intel_bts_synth_branch_sample()
295 memcpy(sample.insn, btsq->intel_pt_insn.buf, INTEL_PT_INSN_BUF_SZ); in intel_bts_synth_branch_sample()
335 if (intel_pt_get_insn(buf, len, x86_64, &btsq->intel_pt_insn)) in intel_bts_get_next_insn()
373 btsq->intel_pt_insn.length = 0; in intel_bts_get_branch_type()
377 btsq->intel_pt_insn.length = 0; in intel_bts_get_branch_type()
382 btsq->intel_pt_insn.length = 0; in intel_bts_get_branch_type()
390 btsq->sample_flags = intel_pt_insn_type(btsq->intel_pt_insn.op); in intel_bts_get_branch_type()
434 btsq->intel_pt_insn in intel_bts_process_buffer()
[all...]
H A Dintel-pt.c616 struct intel_pt_insn *intel_pt_insn) in intel_pt_cache_add()
631 e->op = intel_pt_insn->op; in intel_pt_cache_add()
632 e->branch = intel_pt_insn->branch; in intel_pt_cache_add()
633 e->emulated_ptwrite = intel_pt_insn->emulated_ptwrite; in intel_pt_cache_add()
634 e->length = intel_pt_insn->length; in intel_pt_cache_add()
635 e->rel = intel_pt_insn->rel; in intel_pt_cache_add()
636 memcpy(e->insn, intel_pt_insn->buf, INTEL_PT_INSN_BUF_SZ); in intel_pt_cache_add()
724 static inline bool intel_pt_jmp_16(struct intel_pt_insn *intel_pt_insn) in intel_pt_jmp_16() argument
614 intel_pt_cache_add(struct dso *dso, struct machine *machine, u64 offset, u64 insn_cnt, u64 byte_cnt, struct intel_pt_insn *intel_pt_insn) intel_pt_cache_add() argument
746 intel_pt_walk_next_insn(struct intel_pt_insn *intel_pt_insn, uint64_t *insn_cnt_ptr, uint64_t *ip, uint64_t to_ip, uint64_t max_insn_cnt, void *data) intel_pt_walk_next_insn() argument
931 *ip - start_ip, intel_pt_insn); intel_pt_walk_next_insn() local
[all...]

Completed in 19 milliseconds