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 namei
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) #if !defined(_TRACE_INODEPATH_H) || defined(TRACE_HEADER_MULTI_READ)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) #define _TRACE_INODEPATH_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) #include <linux/types.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/mm.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #include <linux/memcontrol.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #include <linux/device.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #include <linux/kdev_t.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) TRACE_EVENT(inodepath,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 		TP_PROTO(struct inode *inode, char *path),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 		TP_ARGS(inode, path),
^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) 			/* dev_t and ino_t are arch dependent bit width
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 			 * so just use 64-bit
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 			 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 			__field(unsigned long, ino)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 			__field(unsigned long, dev)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 			__string(path, path)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 		),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 		TP_fast_assign(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 			__entry->ino = inode->i_ino;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 			__entry->dev = inode->i_sb->s_dev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 			__assign_str(path, path);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 		),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 		TP_printk("dev %d:%d ino=%lu path=%s",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 			MAJOR(__entry->dev), MINOR(__entry->dev),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) 			__entry->ino, __get_str(path))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) );
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) #endif /* _TRACE_INODEPATH_H */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) /* This part must be outside protection */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) #include <trace/define_trace.h>