1 #ifndef _LINUX_TRACE_SEQ_H
2 #define _LINUX_TRACE_SEQ_H
9 * Trace sequences are used to allow a function to call several other functions
10 * to create a string of data to use (up to a max of PAGE_SIZE).
14 unsigned char buffer
[PAGE_SIZE
];
21 trace_seq_init(struct trace_seq
*s
)
28 #define MAX_MEMHEX_BYTES 8
31 * Currently only defined when tracing is enabled.
35 int trace_seq_printf(struct trace_seq
*s
, const char *fmt
, ...);
37 int trace_seq_vprintf(struct trace_seq
*s
, const char *fmt
, va_list args
);
39 trace_seq_bprintf(struct trace_seq
*s
, const char *fmt
, const u32
*binary
);
40 extern int trace_print_seq(struct seq_file
*m
, struct trace_seq
*s
);
41 extern int trace_seq_to_user(struct trace_seq
*s
, char __user
*ubuf
,
43 extern int trace_seq_puts(struct trace_seq
*s
, const char *str
);
44 extern int trace_seq_putc(struct trace_seq
*s
, unsigned char c
);
45 extern int trace_seq_putmem(struct trace_seq
*s
, const void *mem
, unsigned int len
);
46 extern int trace_seq_putmem_hex(struct trace_seq
*s
, const void *mem
,
48 extern void *trace_seq_reserve(struct trace_seq
*s
, unsigned int len
);
49 extern int trace_seq_path(struct trace_seq
*s
, const struct path
*path
);
51 extern int trace_seq_bitmask(struct trace_seq
*s
, const unsigned long *maskp
,
54 #else /* CONFIG_TRACING */
55 static inline int trace_seq_printf(struct trace_seq
*s
, const char *fmt
, ...)
60 trace_seq_bprintf(struct trace_seq
*s
, const char *fmt
, const u32
*binary
)
66 trace_seq_bitmask(struct trace_seq
*s
, const unsigned long *maskp
,
72 static inline int trace_print_seq(struct seq_file
*m
, struct trace_seq
*s
)
76 static inline int trace_seq_to_user(struct trace_seq
*s
, char __user
*ubuf
,
81 static inline int trace_seq_puts(struct trace_seq
*s
, const char *str
)
85 static inline int trace_seq_putc(struct trace_seq
*s
, unsigned char c
)
90 trace_seq_putmem(struct trace_seq
*s
, const void *mem
, unsigned int len
)
94 static inline int trace_seq_putmem_hex(struct trace_seq
*s
, const void *mem
,
99 static inline void *trace_seq_reserve(struct trace_seq
*s
, unsigned int len
)
103 static inline int trace_seq_path(struct trace_seq
*s
, const struct path
*path
)
107 #endif /* CONFIG_TRACING */
109 #endif /* _LINUX_TRACE_SEQ_H */
This page took 0.058844 seconds and 5 git commands to generate.