.. | .. |
---|
8 | 8 | pid_t pid, char *pathname, char *command), |
---|
9 | 9 | TP_ARGS(inode, offset, bytes, pid, pathname, command), |
---|
10 | 10 | 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) |
---|
18 | 18 | ), |
---|
19 | 19 | TP_fast_assign( |
---|
20 | 20 | { |
---|
.. | .. |
---|
45 | 45 | TP_PROTO(struct inode *inode, loff_t offset, int bytes), |
---|
46 | 46 | TP_ARGS(inode, offset, bytes), |
---|
47 | 47 | 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) |
---|
51 | 51 | ), |
---|
52 | 52 | TP_fast_assign( |
---|
53 | 53 | { |
---|
.. | .. |
---|
59 | 59 | TP_printk("ino %lu, offset %llu, bytes %d", |
---|
60 | 60 | (unsigned long) __entry->ino, |
---|
61 | 61 | __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) |
---|
96 | 62 | ); |
---|
97 | 63 | |
---|
98 | 64 | #endif /* _TRACE_ANDROID_FS_TEMPLATE_H */ |
---|