Lines Matching refs:status
53 decoder->status = 0; in pt_insn_reset()
68 int status; in pt_insn_status() local
73 status = decoder->status; in pt_insn_status()
87 if ((status & pts_eos) && !decoder->process_event) in pt_insn_status()
258 int status, errcode; in pt_insn_indirect_branch() local
265 status = pt_qry_indirect_branch(&decoder->query, ip); in pt_insn_indirect_branch()
266 if (status < 0) in pt_insn_indirect_branch()
267 return status; in pt_insn_indirect_branch()
275 return status; in pt_insn_indirect_branch()
284 int status, errcode; in pt_insn_cond_branch() local
289 status = pt_qry_cond_branch(&decoder->query, taken); in pt_insn_cond_branch()
290 if (status < 0) in pt_insn_cond_branch()
291 return status; in pt_insn_cond_branch()
299 return status; in pt_insn_cond_branch()
302 static int pt_insn_start(struct pt_insn_decoder *decoder, int status) in pt_insn_start() argument
307 if (status < 0) in pt_insn_start()
308 return status; in pt_insn_start()
310 decoder->status = status; in pt_insn_start()
312 if (!(status & pts_ip_suppressed)) in pt_insn_start()
330 int status; in pt_insn_sync_forward() local
337 status = pt_qry_sync_forward(&decoder->query, &decoder->ip); in pt_insn_sync_forward()
339 return pt_insn_start(decoder, status); in pt_insn_sync_forward()
344 int status; in pt_insn_sync_backward() local
351 status = pt_qry_sync_backward(&decoder->query, &decoder->ip); in pt_insn_sync_backward()
353 return pt_insn_start(decoder, status); in pt_insn_sync_backward()
358 int status; in pt_insn_sync_set() local
365 status = pt_qry_sync_set(&decoder->query, &decoder->ip, offset); in pt_insn_sync_set()
367 return pt_insn_start(decoder, status); in pt_insn_sync_set()
445 int status; in event_pending() local
453 status = decoder->status; in event_pending()
454 if (!(status & pts_event_pending)) in event_pending()
457 status = pt_qry_event(&decoder->query, &decoder->event, in event_pending()
459 if (status < 0) in event_pending()
460 return status; in event_pending()
463 decoder->status = status; in event_pending()
541 int status, taken; in pt_insn_proceed() local
543 status = pt_insn_cond_branch(decoder, &taken); in pt_insn_proceed()
544 if (status < 0) in pt_insn_proceed()
545 return status; in pt_insn_proceed()
547 decoder->status = status; in pt_insn_proceed()
567 int taken, status; in pt_insn_proceed() local
570 status = pt_insn_cond_branch(decoder, &taken); in pt_insn_proceed()
571 if (status >= 0) { in pt_insn_proceed()
572 decoder->status = status; in pt_insn_proceed()
606 int status; in pt_insn_proceed() local
608 status = pt_insn_indirect_branch(decoder, &decoder->ip); in pt_insn_proceed()
610 if (status < 0) in pt_insn_proceed()
611 return status; in pt_insn_proceed()
613 decoder->status = status; in pt_insn_proceed()
616 if (status & pts_ip_suppressed) in pt_insn_proceed()
629 int status; in pt_insn_at_skl014() local
649 status = pt_filter_addr_check(&config->addr_filter, ip); in pt_insn_at_skl014()
650 if (status <= 0) { in pt_insn_at_skl014()
651 if (status < 0) in pt_insn_at_skl014()
652 return status; in pt_insn_at_skl014()
774 int status; in pt_insn_proceed_postponed() local
786 status = pt_insn_proceed(decoder, &decoder->insn, &decoder->iext); in pt_insn_proceed_postponed()
787 if (status < 0) in pt_insn_proceed_postponed()
788 return status; in pt_insn_proceed_postponed()
813 int status; in pt_insn_check_insn_event() local
818 status = event_pending(decoder); in pt_insn_check_insn_event()
819 if (status <= 0) in pt_insn_check_insn_event()
820 return status; in pt_insn_check_insn_event()
844 status = pt_insn_at_disabled_event(ev, insn, iext, in pt_insn_check_insn_event()
846 if (status <= 0) in pt_insn_check_insn_event()
847 return status; in pt_insn_check_insn_event()
853 status = pt_insn_next_ip(&decoder->ip, insn, iext); in pt_insn_check_insn_event()
854 if (status < 0) { in pt_insn_check_insn_event()
866 if (status != -pte_bad_query) in pt_insn_check_insn_event()
867 return status; in pt_insn_check_insn_event()
970 int status; in handle_erratum_bdm64() local
988 status = pt_insn_range_is_contiguous(decoder->ip, ev->variant.tsx.ip, in handle_erratum_bdm64()
991 if (status > 0) in handle_erratum_bdm64()
1018 int status; in pt_insn_postpone_tsx() local
1027 status = handle_erratum_bdm64(decoder, ev, insn, iext); in pt_insn_postpone_tsx()
1028 if (status < 0) in pt_insn_postpone_tsx()
1029 return status; in pt_insn_postpone_tsx()
1051 int status; in pt_insn_check_ip_event() local
1056 status = event_pending(decoder); in pt_insn_check_ip_event()
1057 if (status <= 0) { in pt_insn_check_ip_event()
1058 if (status < 0) in pt_insn_check_ip_event()
1059 return status; in pt_insn_check_ip_event()
1095 status = pt_insn_postpone_tsx(decoder, insn, iext, ev); in pt_insn_check_ip_event()
1096 if (status != 0) { in pt_insn_check_ip_event()
1097 if (status < 0) in pt_insn_check_ip_event()
1098 return status; in pt_insn_check_ip_event()
1218 int status; in pt_insn_decode_cached() local
1235 status = pt_msec_read(msec, insn->raw, sizeof(insn->raw), insn->ip); in pt_insn_decode_cached()
1236 if (status < 0) { in pt_insn_decode_cached()
1237 if (status != -pte_nomap) in pt_insn_decode_cached()
1238 return status; in pt_insn_decode_cached()
1247 insn->size = (uint8_t) status; in pt_insn_decode_cached()
1249 status = pt_ild_decode(insn, iext); in pt_insn_decode_cached()
1250 if (status < 0) { in pt_insn_decode_cached()
1251 if (status != -pte_bad_insn) in pt_insn_decode_cached()
1252 return status; in pt_insn_decode_cached()
1258 return status; in pt_insn_decode_cached()
1294 int status, isid; in pt_insn_next() local
1305 if (decoder->status & pts_eos) in pt_insn_next()
1339 status = pt_insn_decode_cached(decoder, msec, pinsn, &iext); in pt_insn_next()
1340 if (status < 0) { in pt_insn_next()
1345 return status; in pt_insn_next()
1351 status = insn_to_user(uinsn, size, pinsn); in pt_insn_next()
1352 if (status < 0) in pt_insn_next()
1353 return status; in pt_insn_next()
1359 status = pt_insn_check_insn_event(decoder, pinsn, &iext); in pt_insn_next()
1360 if (status != 0) { in pt_insn_next()
1361 if (status < 0) in pt_insn_next()
1362 return status; in pt_insn_next()
1364 if (status & pts_event_pending) in pt_insn_next()
1365 return status; in pt_insn_next()
1369 status = pt_insn_proceed(decoder, pinsn, &iext); in pt_insn_next()
1370 if (status < 0) in pt_insn_next()
1371 return status; in pt_insn_next()
1596 int status; in pt_insn_event() local
1623 status = pt_insn_process_enabled(decoder); in pt_insn_event()
1624 if (status < 0) in pt_insn_event()
1625 return status; in pt_insn_event()
1636 status = pt_insn_process_disabled(decoder); in pt_insn_event()
1637 if (status < 0) in pt_insn_event()
1638 return status; in pt_insn_event()
1646 status = pt_insn_process_async_branch(decoder); in pt_insn_event()
1647 if (status < 0) in pt_insn_event()
1648 return status; in pt_insn_event()
1659 status = pt_insn_process_paging(decoder); in pt_insn_event()
1660 if (status < 0) in pt_insn_event()
1661 return status; in pt_insn_event()
1672 status = pt_insn_process_vmcs(decoder); in pt_insn_event()
1673 if (status < 0) in pt_insn_event()
1674 return status; in pt_insn_event()
1679 status = pt_insn_process_overflow(decoder); in pt_insn_event()
1680 if (status < 0) in pt_insn_event()
1681 return status; in pt_insn_event()
1686 status = pt_insn_process_exec_mode(decoder); in pt_insn_event()
1687 if (status < 0) in pt_insn_event()
1688 return status; in pt_insn_event()
1693 status = pt_insn_process_tsx(decoder); in pt_insn_event()
1694 if (status < 0) in pt_insn_event()
1695 return status; in pt_insn_event()
1700 status = pt_insn_process_stop(decoder); in pt_insn_event()
1701 if (status < 0) in pt_insn_event()
1702 return status; in pt_insn_event()
1750 status = pt_insn_check_insn_event(decoder, &decoder->insn, in pt_insn_event()
1753 if (status != 0) { in pt_insn_event()
1754 if (status < 0) in pt_insn_event()
1755 return status; in pt_insn_event()
1757 if (status & pts_event_pending) in pt_insn_event()
1758 return status; in pt_insn_event()
1762 status = pt_insn_proceed_postponed(decoder); in pt_insn_event()
1763 if (status < 0) in pt_insn_event()
1764 return status; in pt_insn_event()