Lines Matching refs:prev_packet
95 struct cs_etm_packet *prev_packet; member
620 tidq->prev_packet = zalloc(sizeof(struct cs_etm_packet)); in cs_etm__init_traceid_queue()
621 if (!tidq->prev_packet) in cs_etm__init_traceid_queue()
646 zfree(&tidq->prev_packet); in cs_etm__init_traceid_queue()
757 tidq->packet = tidq->prev_packet; in cs_etm__packet_swap()
758 tidq->prev_packet = tmp; in cs_etm__packet_swap()
939 zfree(&tidq->prev_packet); in cs_etm__free_traceid_queues()
1405 be->from = cs_etm__last_executed_instr(tidq->prev_packet); in cs_etm__update_last_branch_rb()
1579 sample.flags = tidq->prev_packet->flags; in cs_etm__synth_instruction_sample()
1622 ip = cs_etm__last_executed_instr(tidq->prev_packet); in cs_etm__synth_branch_sample()
1640 sample.flags = tidq->prev_packet->flags; in cs_etm__synth_branch_sample()
1643 cs_etm__copy_insn(etmq, tidq->trace_chan_id, tidq->prev_packet, in cs_etm__synth_branch_sample()
1781 tidq->prev_packet->sample_type == CS_ETM_RANGE && in cs_etm__sample()
1782 tidq->prev_packet->last_instr_taken_branch) in cs_etm__sample()
1872 if (tidq->prev_packet->sample_type == CS_ETM_DISCONTINUITY) in cs_etm__sample()
1876 if (tidq->prev_packet->sample_type == CS_ETM_RANGE && in cs_etm__sample()
1877 tidq->prev_packet->last_instr_taken_branch) in cs_etm__sample()
1905 if (tidq->prev_packet->sample_type == CS_ETM_RANGE) in cs_etm__exception()
1906 tidq->prev_packet->last_instr_taken_branch = true; in cs_etm__exception()
1918 if (tidq->prev_packet->sample_type == CS_ETM_EMPTY) in cs_etm__flush()
1923 tidq->prev_packet->sample_type == CS_ETM_RANGE) { in cs_etm__flush()
1936 addr = cs_etm__last_executed_instr(tidq->prev_packet); in cs_etm__flush()
1949 tidq->prev_packet->sample_type == CS_ETM_RANGE) { in cs_etm__flush()
1981 tidq->prev_packet->sample_type == CS_ETM_RANGE) { in cs_etm__end_block()
1991 addr = cs_etm__last_executed_instr(tidq->prev_packet); in cs_etm__end_block()
2107 struct cs_etm_packet *prev_packet = tidq->prev_packet; in cs_etm__is_syscall() local
2120 cs_etm__is_svc_instr(etmq, trace_chan_id, prev_packet, in cs_etm__is_syscall()
2121 prev_packet->end_addr)) in cs_etm__is_syscall()
2160 struct cs_etm_packet *prev_packet = tidq->prev_packet; in cs_etm__is_sync_exception() local
2184 !cs_etm__is_svc_instr(etmq, trace_chan_id, prev_packet, in cs_etm__is_sync_exception()
2185 prev_packet->end_addr)) in cs_etm__is_sync_exception()
2207 struct cs_etm_packet *prev_packet = tidq->prev_packet; in cs_etm__set_sample_flags() local
2276 if (prev_packet->sample_type == CS_ETM_DISCONTINUITY) in cs_etm__set_sample_flags()
2277 prev_packet->flags |= PERF_IP_FLAG_BRANCH | in cs_etm__set_sample_flags()
2286 if (prev_packet->flags == (PERF_IP_FLAG_BRANCH | in cs_etm__set_sample_flags()
2291 prev_packet->flags = PERF_IP_FLAG_BRANCH | in cs_etm__set_sample_flags()
2301 if (prev_packet->sample_type == CS_ETM_RANGE) in cs_etm__set_sample_flags()
2302 prev_packet->flags |= PERF_IP_FLAG_BRANCH | in cs_etm__set_sample_flags()
2340 if (prev_packet->sample_type == CS_ETM_RANGE) in cs_etm__set_sample_flags()
2341 prev_packet->flags = packet->flags; in cs_etm__set_sample_flags()
2369 if (prev_packet->sample_type == CS_ETM_RANGE) in cs_etm__set_sample_flags()
2370 prev_packet->flags = PERF_IP_FLAG_BRANCH | in cs_etm__set_sample_flags()