Lines Matching refs:trace_chan_id

67 	u8 trace_chan_id;  member
112 #define TO_CS_QUEUE_NR(queue_nr, trace_chan_id) \ argument
113 (queue_nr << 16 | trace_chan_id)
127 static int cs_etm__get_magic(u8 trace_chan_id, u64 *magic) in cs_etm__get_magic() argument
132 inode = intlist__find(traceid_list, trace_chan_id); in cs_etm__get_magic()
141 int cs_etm__get_cpu(u8 trace_chan_id, int *cpu) in cs_etm__get_cpu() argument
146 inode = intlist__find(traceid_list, trace_chan_id); in cs_etm__get_cpu()
167 int cs_etm__get_pid_fmt(u8 trace_chan_id, u64 *pid_fmt) in cs_etm__get_pid_fmt() argument
172 inode = intlist__find(traceid_list, trace_chan_id); in cs_etm__get_pid_fmt()
197 u8 trace_chan_id) in cs_etm__etmq_set_traceid_queue_timestamp() argument
206 etmq->pending_timestamp_chan_id = trace_chan_id; in cs_etm__etmq_set_traceid_queue_timestamp()
210 u8 *trace_chan_id) in cs_etm__etmq_get_timestamp() argument
217 if (trace_chan_id) in cs_etm__etmq_get_timestamp()
218 *trace_chan_id = etmq->pending_timestamp_chan_id; in cs_etm__etmq_get_timestamp()
251 queue->packet_buffer[i].trace_chan_id = UINT8_MAX; in cs_etm__clear_packet_queue()
272 u8 trace_chan_id) in cs_etm__init_traceid_queue() argument
283 tidq->trace_chan_id = trace_chan_id; in cs_etm__init_traceid_queue()
322 *cs_etm__etmq_get_traceid_queue(struct cs_etm_queue *etmq, u8 trace_chan_id) in cs_etm__etmq_get_traceid_queue() argument
331 trace_chan_id = CS_ETM_PER_THREAD_TRACEID; in cs_etm__etmq_get_traceid_queue()
339 inode = intlist__find(traceid_queues_list, trace_chan_id); in cs_etm__etmq_get_traceid_queue()
355 inode = intlist__findnew(traceid_queues_list, trace_chan_id); in cs_etm__etmq_get_traceid_queue()
362 if (cs_etm__init_traceid_queue(etmq, tidq, trace_chan_id)) in cs_etm__etmq_get_traceid_queue()
395 *cs_etm__etmq_get_packet_queue(struct cs_etm_queue *etmq, u8 trace_chan_id) in cs_etm__etmq_get_packet_queue() argument
399 tidq = cs_etm__etmq_get_traceid_queue(etmq, trace_chan_id); in cs_etm__etmq_get_packet_queue()
695 static u32 cs_etm__mem_access(struct cs_etm_queue *etmq, u8 trace_chan_id, in cs_etm__mem_access() argument
711 tidq = cs_etm__etmq_get_traceid_queue(etmq, trace_chan_id); in cs_etm__mem_access()
842 u8 trace_chan_id; in cs_etm__queue_first_cs_timestamp() local
875 cs_timestamp = cs_etm__etmq_get_timestamp(etmq, &trace_chan_id); in cs_etm__queue_first_cs_timestamp()
901 cs_queue_nr = TO_CS_QUEUE_NR(queue_nr, trace_chan_id); in cs_etm__queue_first_cs_timestamp()
959 u8 trace_chan_id, u64 addr) in cs_etm__t32_instr_size() argument
963 cs_etm__mem_access(etmq, trace_chan_id, addr, in cs_etm__t32_instr_size()
993 u64 trace_chan_id, in cs_etm__instr_addr() argument
1002 trace_chan_id, addr); in cs_etm__instr_addr()
1106 pid_t tid, u8 trace_chan_id) in cs_etm__etmq_set_tid() argument
1112 tidq = cs_etm__etmq_get_traceid_queue(etmq, trace_chan_id); in cs_etm__etmq_set_tid()
1116 if (cs_etm__get_cpu(trace_chan_id, &cpu) < 0) in cs_etm__etmq_set_tid()
1136 u64 trace_chan_id, in cs_etm__copy_insn() argument
1154 sample->insn_len = cs_etm__t32_instr_size(etmq, trace_chan_id, in cs_etm__copy_insn()
1160 cs_etm__mem_access(etmq, trace_chan_id, sample->ip, in cs_etm__copy_insn()
1189 cs_etm__copy_insn(etmq, tidq->trace_chan_id, tidq->packet, &sample); in cs_etm__synth_instruction_sample()
1248 cs_etm__copy_insn(etmq, tidq->trace_chan_id, tidq->prev_packet, in cs_etm__synth_branch_sample()
1402 u8 trace_chan_id = tidq->trace_chan_id; in cs_etm__sample() local
1488 addr = cs_etm__instr_addr(etmq, trace_chan_id, in cs_etm__sample()
1665 static bool cs_etm__is_svc_instr(struct cs_etm_queue *etmq, u8 trace_chan_id, in cs_etm__is_svc_instr() argument
1689 cs_etm__mem_access(etmq, trace_chan_id, addr, in cs_etm__is_svc_instr()
1705 cs_etm__mem_access(etmq, trace_chan_id, addr, in cs_etm__is_svc_instr()
1722 cs_etm__mem_access(etmq, trace_chan_id, addr, in cs_etm__is_svc_instr()
1739 u8 trace_chan_id = tidq->trace_chan_id; in cs_etm__is_syscall() local
1754 cs_etm__is_svc_instr(etmq, trace_chan_id, prev_packet, in cs_etm__is_syscall()
1792 u8 trace_chan_id = tidq->trace_chan_id; in cs_etm__is_sync_exception() local
1818 !cs_etm__is_svc_instr(etmq, trace_chan_id, prev_packet, in cs_etm__is_sync_exception()
1842 u8 trace_chan_id = tidq->trace_chan_id; in cs_etm__set_sample_flags() local
1923 cs_etm__is_svc_instr(etmq, trace_chan_id, in cs_etm__set_sample_flags()
1940 ret = cs_etm__get_magic(packet->trace_chan_id, &magic); in cs_etm__set_sample_flags()
2207 u8 trace_chan_id; in cs_etm__process_queues() local
2234 trace_chan_id = TO_TRACE_CHAN_ID(cs_queue_nr); in cs_etm__process_queues()
2244 tidq = cs_etm__etmq_get_traceid_queue(etmq, trace_chan_id); in cs_etm__process_queues()
2284 cs_timestamp = cs_etm__etmq_get_timestamp(etmq, &trace_chan_id); in cs_etm__process_queues()
2308 cs_queue_nr = TO_CS_QUEUE_NR(queue_nr, trace_chan_id); in cs_etm__process_queues()