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 rwsem
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) #define TRACE_INCLUDE_PATH trace/hooks
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) #if !defined(_TRACE_HOOK_RWSEM_H) || defined(TRACE_HEADER_MULTI_READ)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) #define _TRACE_HOOK_RWSEM_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) #include <linux/tracepoint.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) #include <trace/hooks/vendor_hooks.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)  * Following tracepoints are not exported in tracefs and provide a
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)  * mechanism for vendor modules to hook and extend functionality
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #ifdef __GENKSYMS__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) struct rw_semaphore;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) struct rwsem_waiter;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) /* struct rw_semaphore, struct rwsem_waiter */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) #include <linux/rwsem.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) #endif /* __GENKSYMS__ */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) DECLARE_HOOK(android_vh_rwsem_init,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 	TP_PROTO(struct rw_semaphore *sem),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 	TP_ARGS(sem));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) DECLARE_HOOK(android_vh_rwsem_wake,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 	TP_PROTO(struct rw_semaphore *sem),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 	TP_ARGS(sem));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) DECLARE_HOOK(android_vh_rwsem_write_finished,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 	TP_PROTO(struct rw_semaphore *sem),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 	TP_ARGS(sem));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) DECLARE_HOOK(android_vh_alter_rwsem_list_add,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 	TP_PROTO(struct rwsem_waiter *waiter,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 		 struct rw_semaphore *sem,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 		 bool *already_on_list),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 	TP_ARGS(waiter, sem, already_on_list));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) DECLARE_HOOK(android_vh_rwsem_wake_finish,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 	TP_PROTO(struct rw_semaphore *sem),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 	TP_ARGS(sem));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) DECLARE_HOOK(android_vh_rwsem_set_owner,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) 	TP_PROTO(struct rw_semaphore *sem),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) 	TP_ARGS(sem));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) DECLARE_HOOK(android_vh_rwsem_set_reader_owned,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) 	TP_PROTO(struct rw_semaphore *sem),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) 	TP_ARGS(sem));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) DECLARE_HOOK(android_vh_rwsem_up_write_end,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) 	TP_PROTO(struct rw_semaphore *sem),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) 	TP_ARGS(sem));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) DECLARE_HOOK(android_vh_rwsem_up_read_end,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) 	TP_PROTO(struct rw_semaphore *sem),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) 	TP_ARGS(sem));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) DECLARE_HOOK(android_vh_rwsem_mark_wake_readers,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) 	TP_PROTO(struct rw_semaphore *sem, struct rwsem_waiter *waiter),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) 	TP_ARGS(sem, waiter));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) /* macro versions of hooks are no longer required */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) #endif /* _TRACE_HOOK_RWSEM_H */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) /* This part must be outside protection */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) #include <trace/define_trace.h>