Merge tag 'v3.3.7' into 3.3/master
[zen-stable.git] / include / trace / events / fs.h
blobe967c5568db448fa2d58b7bb5a9e4db71e390bf0
1 #undef TRACE_SYSTEM
2 #define TRACE_SYSTEM fs
4 #if !defined(_TRACE_FS_H) || defined(TRACE_HEADER_MULTI_READ)
5 #define _TRACE_FS_H
7 #include <linux/fs.h>
8 #include <linux/tracepoint.h>
10 TRACE_EVENT(do_sys_open,
12 TP_PROTO(char *filename, int flags, int mode),
14 TP_ARGS(filename, flags, mode),
16 TP_STRUCT__entry(
17 __string( filename, filename )
18 __field( int, flags )
19 __field( int, mode )
22 TP_fast_assign(
23 __assign_str(filename, filename);
24 __entry->flags = flags;
25 __entry->mode = mode;
28 TP_printk("\"%s\" %x %o",
29 __get_str(filename), __entry->flags, __entry->mode)
32 TRACE_EVENT(uselib,
34 TP_PROTO(char *filename),
36 TP_ARGS(filename),
38 TP_STRUCT__entry(
39 __string( filename, filename )
42 TP_fast_assign(
43 __assign_str(filename, filename);
46 TP_printk("\"%s\"",
47 __get_str(filename))
50 TRACE_EVENT(open_exec,
52 TP_PROTO(char *filename),
54 TP_ARGS(filename),
56 TP_STRUCT__entry(
57 __string( filename, filename )
60 TP_fast_assign(
61 __assign_str(filename, filename);
64 TP_printk("\"%s\"",
65 __get_str(filename))
68 #endif /* _TRACE_FS_H */
70 /* This part must be outside protection */
71 #include <trace/define_trace.h>