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