hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
kernel/include/linux/trace_seq.h
....@@ -12,7 +12,7 @@
1212 */
1313
1414 struct trace_seq {
15
- unsigned char buffer[PAGE_SIZE];
15
+ char buffer[PAGE_SIZE];
1616 struct seq_buf seq;
1717 int full;
1818 };
....@@ -51,7 +51,7 @@
5151 * that is about to be written to and then return the result
5252 * of that write.
5353 */
54
-static inline unsigned char *
54
+static inline char *
5555 trace_seq_buffer_ptr(struct trace_seq *s)
5656 {
5757 return s->buffer + seq_buf_used(&s->seq);
....@@ -92,6 +92,10 @@
9292 extern void trace_seq_bitmask(struct trace_seq *s, const unsigned long *maskp,
9393 int nmaskbits);
9494
95
+extern int trace_seq_hex_dump(struct trace_seq *s, const char *prefix_str,
96
+ int prefix_type, int rowsize, int groupsize,
97
+ const void *buf, size_t len, bool ascii);
98
+
9599 #else /* CONFIG_TRACING */
96100 static inline void trace_seq_printf(struct trace_seq *s, const char *fmt, ...)
97101 {