From f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Wed, 31 Jan 2024 01:04:47 +0000
Subject: [PATCH] add driver 5G

---
 kernel/include/trace/events/android_fs_template.h |   54 ++++++++++--------------------------------------------
 1 files changed, 10 insertions(+), 44 deletions(-)

diff --git a/kernel/include/trace/events/android_fs_template.h b/kernel/include/trace/events/android_fs_template.h
index 0832c26..efc4878 100644
--- a/kernel/include/trace/events/android_fs_template.h
+++ b/kernel/include/trace/events/android_fs_template.h
@@ -8,13 +8,13 @@
 		 pid_t pid, char *pathname, char *command),
 	TP_ARGS(inode, offset, bytes, pid, pathname, command),
 	TP_STRUCT__entry(
-		__string(pathbuf, pathname);
-		__field(loff_t,	offset);
-		__field(int,	bytes);
-		__field(loff_t,	i_size);
-		__string(cmdline, command);
-		__field(pid_t,	pid);
-		__field(ino_t,	ino);
+		__string(pathbuf, pathname)
+		__field(loff_t,	offset)
+		__field(int,	bytes)
+		__field(loff_t,	i_size)
+		__string(cmdline, command)
+		__field(pid_t,	pid)
+		__field(ino_t,	ino)
 	),
 	TP_fast_assign(
 		{
@@ -45,9 +45,9 @@
 	TP_PROTO(struct inode *inode, loff_t offset, int bytes),
 	TP_ARGS(inode, offset, bytes),
 	TP_STRUCT__entry(
-		__field(ino_t,	ino);
-		__field(loff_t,	offset);
-		__field(int,	bytes);
+		__field(ino_t,	ino)
+		__field(loff_t,	offset)
+		__field(int,	bytes)
 	),
 	TP_fast_assign(
 		{
@@ -59,40 +59,6 @@
 	TP_printk("ino %lu, offset %llu, bytes %d",
 		  (unsigned long) __entry->ino,
 		  __entry->offset, __entry->bytes)
-);
-
-DECLARE_EVENT_CLASS(android_fs_fsync_start_template,
-	TP_PROTO(struct inode *inode,
-		 pid_t pid, char *pathname, char *command),
-	TP_ARGS(inode, pid, pathname, command),
-	TP_STRUCT__entry(
-		__string(pathbuf, pathname);
-		__field(loff_t,	i_size);
-		__string(cmdline, command);
-		__field(pid_t,	pid);
-		__field(ino_t,	ino);
-	),
-	TP_fast_assign(
-		{
-			/*
-			 * Replace the spaces in filenames and cmdlines
-			 * because this screws up the tooling that parses
-			 * the traces.
-			 */
-			__assign_str(pathbuf, pathname);
-			(void)strreplace(__get_str(pathbuf), ' ', '_');
-			__entry->i_size		= i_size_read(inode);
-			__assign_str(cmdline, command);
-			(void)strreplace(__get_str(cmdline), ' ', '_');
-			__entry->pid		= pid;
-			__entry->ino		= inode->i_ino;
-		}
-	),
-	TP_printk("entry_name %s, cmdline %s,"
-		  " pid %d, i_size %llu, ino %lu",
-		  __get_str(pathbuf),
-		  __get_str(cmdline), __entry->pid, __entry->i_size,
-		  (unsigned long) __entry->ino)
 );
 
 #endif /* _TRACE_ANDROID_FS_TEMPLATE_H */

--
Gitblit v1.6.2