• Home
  • Raw
  • Download

Lines Matching refs:state

151 	const struct intel_pt_state *state;  member
1137 if (ptq->state->flags & INTEL_PT_ABORT_TX) { in intel_pt_sample_flags()
1139 } else if (ptq->state->flags & INTEL_PT_ASYNC) { in intel_pt_sample_flags()
1140 if (ptq->state->to_ip) in intel_pt_sample_flags()
1149 if (ptq->state->from_ip) in intel_pt_sample_flags()
1150 ptq->flags = intel_pt_insn_type(ptq->state->insn_op); in intel_pt_sample_flags()
1154 if (ptq->state->flags & INTEL_PT_IN_TX) in intel_pt_sample_flags()
1156 ptq->insn_len = ptq->state->insn_len; in intel_pt_sample_flags()
1157 memcpy(ptq->insn, ptq->state->insn, INTEL_PT_INSN_BUF_SZ); in intel_pt_sample_flags()
1160 if (ptq->state->type & INTEL_PT_TRACE_BEGIN) in intel_pt_sample_flags()
1162 if (ptq->state->type & INTEL_PT_TRACE_END) in intel_pt_sample_flags()
1216 const struct intel_pt_state *state; in intel_pt_setup_queue() local
1234 state = intel_pt_decode(ptq->decoder); in intel_pt_setup_queue()
1235 if (state->err) { in intel_pt_setup_queue()
1236 if (state->err == INTEL_PT_ERR_NODATA) { in intel_pt_setup_queue()
1243 if (state->timestamp) in intel_pt_setup_queue()
1247 ptq->timestamp = state->timestamp; in intel_pt_setup_queue()
1250 ptq->state = state; in intel_pt_setup_queue()
1319 sample->ip = ptq->state->from_ip; in intel_pt_prep_b_sample()
1321 sample->addr = ptq->state->to_ip; in intel_pt_prep_b_sample()
1400 if (ptq->state->flags & INTEL_PT_SAMPLE_IPC) in intel_pt_synth_branch_sample()
1449 sample.period = ptq->state->tot_insn_cnt - ptq->last_insn_cnt; in intel_pt_synth_instruction_sample()
1451 if (ptq->state->flags & INTEL_PT_SAMPLE_IPC) in intel_pt_synth_instruction_sample()
1459 ptq->last_insn_cnt = ptq->state->tot_insn_cnt; in intel_pt_synth_instruction_sample()
1514 raw.ip = !!(ptq->state->flags & INTEL_PT_FUP_IP); in intel_pt_synth_ptwrite_sample()
1515 raw.payload = cpu_to_le64(ptq->state->ptw_payload); in intel_pt_synth_ptwrite_sample()
1535 ptq->cbr_seen = ptq->state->cbr; in intel_pt_synth_cbr_sample()
1542 flags = (u16)ptq->state->cbr_payload | (pt->max_non_turbo_ratio << 16); in intel_pt_synth_cbr_sample()
1570 raw.payload = cpu_to_le64(ptq->state->mwait_payload); in intel_pt_synth_mwait_sample()
1595 raw.payload = cpu_to_le64(ptq->state->pwre_payload); in intel_pt_synth_pwre_sample()
1620 raw.ip = !!(ptq->state->flags & INTEL_PT_FUP_IP); in intel_pt_synth_exstop_sample()
1645 raw.payload = cpu_to_le64(ptq->state->pwrx_payload); in intel_pt_synth_pwrx_sample()
1783 const struct intel_pt_blk_items *items = &ptq->state->items; in intel_pt_synth_pebs_sample()
1810 sample.ip = ptq->state->from_ip; in intel_pt_synth_pebs_sample()
1931 const struct intel_pt_state *state) in intel_ptq_synth_error() argument
1938 return intel_pt_synth_error(pt, state->err, ptq->cpu, ptq->pid, in intel_ptq_synth_error()
1939 ptq->tid, state->from_ip, tm); in intel_ptq_synth_error()
1978 const struct intel_pt_state *state = ptq->state; in intel_pt_sample() local
1987 ptq->ipc_insn_cnt = ptq->state->tot_insn_cnt; in intel_pt_sample()
1988 ptq->ipc_cyc_cnt = ptq->state->tot_cyc_cnt; in intel_pt_sample()
1994 if (pt->sample_pebs && state->type & INTEL_PT_BLK_ITEMS) { in intel_pt_sample()
2001 if (ptq->state->cbr != ptq->cbr_seen) { in intel_pt_sample()
2006 if (state->type & INTEL_PT_PWR_EVT) { in intel_pt_sample()
2007 if (state->type & INTEL_PT_MWAIT_OP) { in intel_pt_sample()
2012 if (state->type & INTEL_PT_PWR_ENTRY) { in intel_pt_sample()
2017 if (state->type & INTEL_PT_EX_STOP) { in intel_pt_sample()
2022 if (state->type & INTEL_PT_PWR_EXIT) { in intel_pt_sample()
2030 if (pt->sample_instructions && (state->type & INTEL_PT_INSTRUCTION)) { in intel_pt_sample()
2036 if (pt->sample_transactions && (state->type & INTEL_PT_TRANSACTION)) { in intel_pt_sample()
2042 if (pt->sample_ptwrites && (state->type & INTEL_PT_PTW)) { in intel_pt_sample()
2048 if (!(state->type & INTEL_PT_BRANCH)) in intel_pt_sample()
2053 state->from_ip, state->to_ip, ptq->insn_len, in intel_pt_sample()
2054 state->trace_nr, pt->callstack, in intel_pt_sample()
2058 thread_stack__set_trace_nr(ptq->thread, ptq->cpu, state->trace_nr); in intel_pt_sample()
2070 if (intel_pt_is_switch_ip(ptq, state->to_ip)) { in intel_pt_sample()
2084 } else if (!state->to_ip) { in intel_pt_sample()
2089 state->to_ip == pt->ptss_ip && in intel_pt_sample()
2238 const struct intel_pt_state *state = ptq->state; in intel_pt_run_decoder() local
2265 state = intel_pt_decode(ptq->decoder); in intel_pt_run_decoder()
2266 if (state->err) { in intel_pt_run_decoder()
2267 if (state->err == INTEL_PT_ERR_NODATA) in intel_pt_run_decoder()
2270 state->from_ip >= pt->kernel_start) { in intel_pt_run_decoder()
2274 ptq->timestamp = state->est_timestamp; in intel_pt_run_decoder()
2276 err = intel_ptq_synth_error(ptq, state); in intel_pt_run_decoder()
2283 ptq->state = state; in intel_pt_run_decoder()
2289 (state->from_ip >= pt->kernel_start || !state->from_ip) && in intel_pt_run_decoder()
2290 state->to_ip && state->to_ip < pt->kernel_start) { in intel_pt_run_decoder()
2292 state->timestamp, state->est_timestamp); in intel_pt_run_decoder()
2293 ptq->timestamp = state->est_timestamp; in intel_pt_run_decoder()
2297 intel_pt_is_switch_ip(ptq, state->to_ip) && in intel_pt_run_decoder()
2300 state->timestamp, state->est_timestamp); in intel_pt_run_decoder()
2301 ptq->timestamp = state->est_timestamp; in intel_pt_run_decoder()
2302 } else if (state->timestamp > ptq->timestamp) { in intel_pt_run_decoder()
2303 ptq->timestamp = state->timestamp; in intel_pt_run_decoder()