Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0+ */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) #undef TRACE_SYSTEM
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) #define TRACE_SYSTEM rseq
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) #if !defined(_TRACE_RSEQ_H) || defined(TRACE_HEADER_MULTI_READ)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) #define _TRACE_RSEQ_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) #include <linux/tracepoint.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) #include <linux/types.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) TRACE_EVENT(rseq_update,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 	TP_PROTO(struct task_struct *t),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 	TP_ARGS(t),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 	TP_STRUCT__entry(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 		__field(s32, cpu_id)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 	),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 	TP_fast_assign(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 		__entry->cpu_id = raw_smp_processor_id();
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 	),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 	TP_printk("cpu_id=%d", __entry->cpu_id)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) );
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) TRACE_EVENT(rseq_ip_fixup,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 	TP_PROTO(unsigned long regs_ip, unsigned long start_ip,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 		unsigned long post_commit_offset, unsigned long abort_ip),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 	TP_ARGS(regs_ip, start_ip, post_commit_offset, abort_ip),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 	TP_STRUCT__entry(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 		__field(unsigned long, regs_ip)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) 		__field(unsigned long, start_ip)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) 		__field(unsigned long, post_commit_offset)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) 		__field(unsigned long, abort_ip)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) 	),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) 	TP_fast_assign(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) 		__entry->regs_ip = regs_ip;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) 		__entry->start_ip = start_ip;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) 		__entry->post_commit_offset = post_commit_offset;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) 		__entry->abort_ip = abort_ip;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) 	),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) 	TP_printk("regs_ip=0x%lx start_ip=0x%lx post_commit_offset=%lu abort_ip=0x%lx",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) 		__entry->regs_ip, __entry->start_ip,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) 		__entry->post_commit_offset, __entry->abort_ip)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) );
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) #endif /* _TRACE_SOCK_H */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) /* This part must be outside protection */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) #include <trace/define_trace.h>