aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/trace_seq.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/trace_seq.h')
-rw-r--r--include/linux/trace_seq.h37
1 files changed, 15 insertions, 22 deletions
diff --git a/include/linux/trace_seq.h b/include/linux/trace_seq.h
index 07eda413dfcf..db8a73224f1a 100644
--- a/include/linux/trace_seq.h
+++ b/include/linux/trace_seq.h
@@ -57,40 +57,37 @@ static inline bool trace_seq_has_overflowed(struct trace_seq *s)
57 */ 57 */
58#ifdef CONFIG_TRACING 58#ifdef CONFIG_TRACING
59extern __printf(2, 3) 59extern __printf(2, 3)
60int trace_seq_printf(struct trace_seq *s, const char *fmt, ...); 60void trace_seq_printf(struct trace_seq *s, const char *fmt, ...);
61extern __printf(2, 0) 61extern __printf(2, 0)
62int trace_seq_vprintf(struct trace_seq *s, const char *fmt, va_list args); 62void trace_seq_vprintf(struct trace_seq *s, const char *fmt, va_list args);
63extern int 63extern void
64trace_seq_bprintf(struct trace_seq *s, const char *fmt, const u32 *binary); 64trace_seq_bprintf(struct trace_seq *s, const char *fmt, const u32 *binary);
65extern int trace_print_seq(struct seq_file *m, struct trace_seq *s); 65extern int trace_print_seq(struct seq_file *m, struct trace_seq *s);
66extern int trace_seq_to_user(struct trace_seq *s, char __user *ubuf, 66extern int trace_seq_to_user(struct trace_seq *s, char __user *ubuf,
67 int cnt); 67 int cnt);
68extern int trace_seq_puts(struct trace_seq *s, const char *str); 68extern void trace_seq_puts(struct trace_seq *s, const char *str);
69extern int trace_seq_putc(struct trace_seq *s, unsigned char c); 69extern void trace_seq_putc(struct trace_seq *s, unsigned char c);
70extern int trace_seq_putmem(struct trace_seq *s, const void *mem, unsigned int len); 70extern void trace_seq_putmem(struct trace_seq *s, const void *mem, unsigned int len);
71extern int trace_seq_putmem_hex(struct trace_seq *s, const void *mem, 71extern void trace_seq_putmem_hex(struct trace_seq *s, const void *mem,
72 unsigned int len); 72 unsigned int len);
73extern int trace_seq_path(struct trace_seq *s, const struct path *path); 73extern int trace_seq_path(struct trace_seq *s, const struct path *path);
74 74
75extern int trace_seq_bitmask(struct trace_seq *s, const unsigned long *maskp, 75extern void trace_seq_bitmask(struct trace_seq *s, const unsigned long *maskp,
76 int nmaskbits); 76 int nmaskbits);
77 77
78#else /* CONFIG_TRACING */ 78#else /* CONFIG_TRACING */
79static inline int trace_seq_printf(struct trace_seq *s, const char *fmt, ...) 79static inline void trace_seq_printf(struct trace_seq *s, const char *fmt, ...)
80{ 80{
81 return 0;
82} 81}
83static inline int 82static inline void
84trace_seq_bprintf(struct trace_seq *s, const char *fmt, const u32 *binary) 83trace_seq_bprintf(struct trace_seq *s, const char *fmt, const u32 *binary)
85{ 84{
86 return 0;
87} 85}
88 86
89static inline int 87static inline void
90trace_seq_bitmask(struct trace_seq *s, const unsigned long *maskp, 88trace_seq_bitmask(struct trace_seq *s, const unsigned long *maskp,
91 int nmaskbits) 89 int nmaskbits)
92{ 90{
93 return 0;
94} 91}
95 92
96static inline int trace_print_seq(struct seq_file *m, struct trace_seq *s) 93static inline int trace_print_seq(struct seq_file *m, struct trace_seq *s)
@@ -102,23 +99,19 @@ static inline int trace_seq_to_user(struct trace_seq *s, char __user *ubuf,
102{ 99{
103 return 0; 100 return 0;
104} 101}
105static inline int trace_seq_puts(struct trace_seq *s, const char *str) 102static inline void trace_seq_puts(struct trace_seq *s, const char *str)
106{ 103{
107 return 0;
108} 104}
109static inline int trace_seq_putc(struct trace_seq *s, unsigned char c) 105static inline void trace_seq_putc(struct trace_seq *s, unsigned char c)
110{ 106{
111 return 0;
112} 107}
113static inline int 108static inline void
114trace_seq_putmem(struct trace_seq *s, const void *mem, unsigned int len) 109trace_seq_putmem(struct trace_seq *s, const void *mem, unsigned int len)
115{ 110{
116 return 0;
117} 111}
118static inline int trace_seq_putmem_hex(struct trace_seq *s, const void *mem, 112static inline void trace_seq_putmem_hex(struct trace_seq *s, const void *mem,
119 unsigned int len) 113 unsigned int len)
120{ 114{
121 return 0;
122} 115}
123static inline int trace_seq_path(struct trace_seq *s, const struct path *path) 116static inline int trace_seq_path(struct trace_seq *s, const struct path *path)
124{ 117{