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 napi
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) #if !defined(_TRACE_NAPI_H) || defined(TRACE_HEADER_MULTI_READ)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) #define _TRACE_NAPI_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) #include <linux/netdevice.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) #include <linux/tracepoint.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #include <linux/ftrace.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #define NO_DEV "(no_device)"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) TRACE_EVENT(napi_poll,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 	TP_PROTO(struct napi_struct *napi, int work, int budget),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 	TP_ARGS(napi, work, budget),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 	TP_STRUCT__entry(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 		__field(	struct napi_struct *,	napi)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 		__string(	dev_name, napi->dev ? napi->dev->name : NO_DEV)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 		__field(	int,			work)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 		__field(	int,			budget)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 	),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 	TP_fast_assign(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 		__entry->napi = napi;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 		__assign_str(dev_name, napi->dev ? napi->dev->name : NO_DEV);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 		__entry->work = work;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 		__entry->budget = budget;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 	),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 	TP_printk("napi poll on napi struct %p for device %s work %d budget %d",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 		  __entry->napi, __get_str(dev_name),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 		  __entry->work, __entry->budget)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) );
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) #undef NO_DEV
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) #endif /* _TRACE_NAPI_H */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) /* This part must be outside protection */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) #include <trace/define_trace.h>