hc
2024-02-19 151fecfb72a0d602dfe79790602ef64b4e241574
kernel/include/trace/events/android_fs_template.h
....@@ -8,13 +8,13 @@
88 pid_t pid, char *pathname, char *command),
99 TP_ARGS(inode, offset, bytes, pid, pathname, command),
1010 TP_STRUCT__entry(
11
- __string(pathbuf, pathname);
12
- __field(loff_t, offset);
13
- __field(int, bytes);
14
- __field(loff_t, i_size);
15
- __string(cmdline, command);
16
- __field(pid_t, pid);
17
- __field(ino_t, ino);
11
+ __string(pathbuf, pathname)
12
+ __field(loff_t, offset)
13
+ __field(int, bytes)
14
+ __field(loff_t, i_size)
15
+ __string(cmdline, command)
16
+ __field(pid_t, pid)
17
+ __field(ino_t, ino)
1818 ),
1919 TP_fast_assign(
2020 {
....@@ -45,9 +45,9 @@
4545 TP_PROTO(struct inode *inode, loff_t offset, int bytes),
4646 TP_ARGS(inode, offset, bytes),
4747 TP_STRUCT__entry(
48
- __field(ino_t, ino);
49
- __field(loff_t, offset);
50
- __field(int, bytes);
48
+ __field(ino_t, ino)
49
+ __field(loff_t, offset)
50
+ __field(int, bytes)
5151 ),
5252 TP_fast_assign(
5353 {
....@@ -59,40 +59,6 @@
5959 TP_printk("ino %lu, offset %llu, bytes %d",
6060 (unsigned long) __entry->ino,
6161 __entry->offset, __entry->bytes)
62
-);
63
-
64
-DECLARE_EVENT_CLASS(android_fs_fsync_start_template,
65
- TP_PROTO(struct inode *inode,
66
- pid_t pid, char *pathname, char *command),
67
- TP_ARGS(inode, pid, pathname, command),
68
- TP_STRUCT__entry(
69
- __string(pathbuf, pathname);
70
- __field(loff_t, i_size);
71
- __string(cmdline, command);
72
- __field(pid_t, pid);
73
- __field(ino_t, ino);
74
- ),
75
- TP_fast_assign(
76
- {
77
- /*
78
- * Replace the spaces in filenames and cmdlines
79
- * because this screws up the tooling that parses
80
- * the traces.
81
- */
82
- __assign_str(pathbuf, pathname);
83
- (void)strreplace(__get_str(pathbuf), ' ', '_');
84
- __entry->i_size = i_size_read(inode);
85
- __assign_str(cmdline, command);
86
- (void)strreplace(__get_str(cmdline), ' ', '_');
87
- __entry->pid = pid;
88
- __entry->ino = inode->i_ino;
89
- }
90
- ),
91
- TP_printk("entry_name %s, cmdline %s,"
92
- " pid %d, i_size %llu, ino %lu",
93
- __get_str(pathbuf),
94
- __get_str(cmdline), __entry->pid, __entry->i_size,
95
- (unsigned long) __entry->ino)
9662 );
9763
9864 #endif /* _TRACE_ANDROID_FS_TEMPLATE_H */