Lines Matching refs:s
31 trace_seq_init(struct trace_seq *s) in trace_seq_init() argument
33 seq_buf_init(&s->seq, s->buffer, TRACE_SEQ_BUFFER_SIZE); in trace_seq_init()
34 s->full = 0; in trace_seq_init()
35 s->readpos = 0; in trace_seq_init()
51 static inline int trace_seq_used(struct trace_seq *s) in trace_seq_used() argument
53 return seq_buf_used(&s->seq); in trace_seq_used()
66 trace_seq_buffer_ptr(struct trace_seq *s) in trace_seq_buffer_ptr() argument
68 return s->buffer + seq_buf_used(&s->seq); in trace_seq_buffer_ptr()
78 static inline bool trace_seq_has_overflowed(struct trace_seq *s) in trace_seq_has_overflowed() argument
80 return s->full || seq_buf_has_overflowed(&s->seq); in trace_seq_has_overflowed()
88 void trace_seq_printf(struct trace_seq *s, const char *fmt, ...);
90 void trace_seq_vprintf(struct trace_seq *s, const char *fmt, va_list args);
92 void trace_seq_bprintf(struct trace_seq *s, const char *fmt, const u32 *binary);
93 extern int trace_print_seq(struct seq_file *m, struct trace_seq *s);
94 extern int trace_seq_to_user(struct trace_seq *s, char __user *ubuf,
96 extern void trace_seq_puts(struct trace_seq *s, const char *str);
97 extern void trace_seq_putc(struct trace_seq *s, unsigned char c);
98 extern void trace_seq_putmem(struct trace_seq *s, const void *mem, unsigned int len);
99 extern void trace_seq_putmem_hex(struct trace_seq *s, const void *mem,
101 extern int trace_seq_path(struct trace_seq *s, const struct path *path);
103 extern void trace_seq_bitmask(struct trace_seq *s, const unsigned long *maskp,
106 extern int trace_seq_hex_dump(struct trace_seq *s, const char *prefix_str,
109 char *trace_seq_acquire(struct trace_seq *s, unsigned int len);
113 void trace_seq_printf(struct trace_seq *s, const char *fmt, ...) in trace_seq_printf() argument
117 void trace_seq_bprintf(struct trace_seq *s, const char *fmt, const u32 *binary) in trace_seq_bprintf() argument
122 trace_seq_bitmask(struct trace_seq *s, const unsigned long *maskp, in trace_seq_bitmask() argument
127 static inline int trace_print_seq(struct seq_file *m, struct trace_seq *s) in trace_print_seq() argument
131 static inline int trace_seq_to_user(struct trace_seq *s, char __user *ubuf, in trace_seq_to_user() argument
136 static inline void trace_seq_puts(struct trace_seq *s, const char *str) in trace_seq_puts() argument
139 static inline void trace_seq_putc(struct trace_seq *s, unsigned char c) in trace_seq_putc() argument
143 trace_seq_putmem(struct trace_seq *s, const void *mem, unsigned int len) in trace_seq_putmem() argument
146 static inline void trace_seq_putmem_hex(struct trace_seq *s, const void *mem, in trace_seq_putmem_hex() argument
150 static inline int trace_seq_path(struct trace_seq *s, const struct path *path) in trace_seq_path() argument
154 static inline char *trace_seq_acquire(struct trace_seq *s, unsigned int len) in trace_seq_acquire() argument