Lines Matching refs:ip

52 	uint64_t ip[INTEL_PT_BLK_SIZE];  member
120 uint64_t *insn_cnt_ptr, uint64_t *ip, uint64_t to_ip,
122 bool (*pgd_ip)(uint64_t ip, void *data);
153 uint64_t ip; member
408 return stack->blk->ip[--stack->pos]; in intel_pt_pop()
430 static int intel_pt_push(struct intel_pt_stack *stack, uint64_t ip) in intel_pt_push() argument
440 stack->blk->ip[stack->pos++] = ip; in intel_pt_push()
517 uint64_t ip; in intel_pt_calc_ip() local
521 ip = (last_ip & (uint64_t)0xffffffffffff0000ULL) | in intel_pt_calc_ip()
525 ip = (last_ip & (uint64_t)0xffffffff00000000ULL) | in intel_pt_calc_ip()
529 ip = packet->payload; in intel_pt_calc_ip()
531 if (ip & (uint64_t)0x800000000000ULL) in intel_pt_calc_ip()
532 ip |= (uint64_t)0xffff000000000000ULL; in intel_pt_calc_ip()
535 ip = (last_ip & (uint64_t)0xffff000000000000ULL) | in intel_pt_calc_ip()
539 ip = packet->payload; in intel_pt_calc_ip()
545 return ip; in intel_pt_calc_ip()
557 decoder->ip = decoder->last_ip; in intel_pt_set_ip()
628 decoder->ip = 0; in intel_pt_reposition()
1126 decoder->ip != decoder->last_ip) in intel_pt_sample_fup_insn()
1136 err = decoder->walk_insn(&intel_pt_insn, &insn_cnt, &decoder->ip, in intel_pt_sample_fup_insn()
1143 intel_pt_log_at("ERROR: Unexpected branch at FUP instruction", decoder->ip); 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() argument
1169 err = decoder->walk_insn(intel_pt_insn, &insn_cnt, &decoder->ip, ip, in intel_pt_walk_insn()
1181 decoder->ip); in intel_pt_walk_insn()
1187 if (ip && decoder->ip == ip) { in intel_pt_walk_insn()
1197 decoder->state.from_ip = decoder->ip; in intel_pt_walk_insn()
1199 decoder->ip += intel_pt_insn->length; in intel_pt_walk_insn()
1208 err = intel_pt_push(&decoder->stack, decoder->ip + in intel_pt_walk_insn()
1220 decoder->state.from_ip = decoder->ip; in intel_pt_walk_insn()
1221 decoder->ip += intel_pt_insn->length + in intel_pt_walk_insn()
1223 decoder->state.to_ip = decoder->ip; in intel_pt_walk_insn()
1326 bool ip = decoder->set_fup_cfe_ip; in intel_pt_fup_event() local
1331 if (!ip && decoder->pge) in intel_pt_fup_event()
1338 if (ip || decoder->pge) in intel_pt_fup_event()
1397 decoder->state.to_ip = decoder->ip; in intel_pt_fup_event()
1402 decoder->state.from_ip = decoder->ip; in intel_pt_fup_event()
1414 uint64_t ip, int err) in intel_pt_fup_with_nlip() argument
1418 ip == decoder->ip + intel_pt_insn->length; in intel_pt_fup_with_nlip()
1424 uint64_t ip; in intel_pt_walk_fup() local
1427 ip = decoder->last_ip; in intel_pt_walk_fup()
1430 err = intel_pt_walk_insn(decoder, &intel_pt_insn, ip); in intel_pt_walk_fup()
1434 intel_pt_fup_with_nlip(decoder, &intel_pt_insn, ip, err)) { in intel_pt_walk_fup()
1448 decoder->ip); in intel_pt_walk_fup()
1455 decoder->ip); in intel_pt_walk_fup()
1497 decoder->state.from_ip = decoder->ip; in intel_pt_walk_tip()
1502 decoder->ip = decoder->last_ip; in intel_pt_walk_tip()
1507 decoder->state.from_ip = decoder->ip; in intel_pt_walk_tip()
1512 decoder->ip = decoder->last_ip; in intel_pt_walk_tip()
1519 uint64_t to_ip = decoder->ip + intel_pt_insn.length + in intel_pt_walk_tip()
1529 decoder->ip = to_ip; in intel_pt_walk_tip()
1530 decoder->state.from_ip = decoder->ip; in intel_pt_walk_tip()
1536 decoder->ip); in intel_pt_walk_tip()
1623 decoder->state.from_ip = decoder->ip; in intel_pt_emulated_ptwrite()
1650 decoder->ip); in intel_pt_walk_tnt()
1656 decoder->ip); in intel_pt_walk_tnt()
1662 decoder->ip); in intel_pt_walk_tnt()
1672 decoder->state.from_ip = decoder->ip; in intel_pt_walk_tnt()
1673 decoder->ip = decoder->ret_addr; in intel_pt_walk_tnt()
1674 decoder->state.to_ip = decoder->ip; in intel_pt_walk_tnt()
1686 decoder->ip); in intel_pt_walk_tnt()
1692 decoder->state.from_ip = decoder->ip; in intel_pt_walk_tnt()
1694 decoder->ip = decoder->last_ip; in intel_pt_walk_tnt()
1708 decoder->state.from_ip = decoder->ip; in intel_pt_walk_tnt()
1709 decoder->ip += intel_pt_insn.length + in intel_pt_walk_tnt()
1711 decoder->state.to_ip = decoder->ip; in intel_pt_walk_tnt()
1718 decoder->state.from_ip = decoder->ip; in intel_pt_walk_tnt()
1720 decoder->ip += intel_pt_insn.length; in intel_pt_walk_tnt()
1724 decoder->ip += intel_pt_insn.length; in intel_pt_walk_tnt()
1863 decoder->state.from_ip = decoder->ip; in intel_pt_overflow()
1864 decoder->ip = 0; in intel_pt_overflow()
2237 decoder->state.from_ip = decoder->ip; in intel_pt_walk_fup_tip()
2242 decoder->state.to_ip = decoder->ip; in intel_pt_walk_fup_tip()
2253 decoder->ip); in intel_pt_walk_fup_tip()
2259 decoder->state.to_ip = decoder->ip; in intel_pt_walk_fup_tip()
2267 decoder->state.from_ip = decoder->ip; in intel_pt_walk_fup_tip()
2272 decoder->state.to_ip = decoder->ip; in intel_pt_walk_fup_tip()
2311 decoder->state.from_ip = decoder->ip; in intel_pt_resample()
2961 decoder->state.to_ip = decoder->ip; in intel_pt_hop_trace()
2972 decoder->state.from_ip = decoder->ip; in intel_pt_hop_trace()
2988 decoder->state.from_ip = decoder->ip; in intel_pt_hop_trace()
3013 decoder->ip = decoder->psb_ip; in intel_pt_hop_trace()
3163 if (decoder->ip != decoder->last_ip) { in intel_pt_fup_in_psb()
3260 decoder->state.to_ip = decoder->ip; in intel_pt_walk_trace()
3289 decoder->ip = decoder->last_ip; in intel_pt_walk_trace()
3346 decoder->state.from_ip = decoder->ip; in intel_pt_walk_trace()
3418 decoder->state.from_ip = decoder->ip; in intel_pt_walk_trace()
3436 decoder->state.from_ip = decoder->ip; in intel_pt_walk_trace()
3456 decoder->state.from_ip = decoder->ip; in intel_pt_walk_trace()
3462 decoder->state.from_ip = decoder->ip; in intel_pt_walk_trace()
3477 decoder->state.from_ip = decoder->ip; in intel_pt_walk_trace()
3575 uint64_t current_ip = decoder->ip; in intel_pt_walk_psb()
3578 decoder->psb_ip = decoder->ip; in intel_pt_walk_psb()
3581 decoder->ip); in intel_pt_walk_psb()
3626 if (decoder->ip) in intel_pt_walk_psb()
3674 if (!decoder->ip) in intel_pt_walk_to_ip()
3684 if (!decoder->ip) in intel_pt_walk_to_ip()
3693 if (!decoder->ip) in intel_pt_walk_to_ip()
3700 if (decoder->ip) in intel_pt_walk_to_ip()
3803 if (err || ((decoder->state.type & INTEL_PT_PSB_EVT) && !decoder->ip)) in intel_pt_sync_ip()
3813 decoder->state.to_ip = decoder->ip; in intel_pt_sync_ip()
3814 intel_pt_log_to("Setting IP", decoder->ip); in intel_pt_sync_ip()
3915 decoder->ip = 0; in intel_pt_sync()
3942 if (decoder->ip) { in intel_pt_sync()
3984 decoder->ip = 0; in intel_pt_decode()
4030 decoder->state.from_ip = decoder->ip; in intel_pt_decode()
4039 decoder->state.from_ip = decoder->ip; in intel_pt_decode()