Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'trace-fixes-v4.1-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace

Pull tracing fix from Steven Rostedt:
"The newly added ftrace_print_array_seq() function had a bug in it.
Luckily, the only user of it didn't make the 4.1 merge window.

But the helper function should be fixed before 4.2 when the users
start coming in"

* tag 'trace-fixes-v4.1-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
tracing: Make ftrace_print_array_seq compute buf_len

+3 -2
+1 -1
include/linux/ftrace_event.h
··· 46 46 const unsigned char *buf, int len); 47 47 48 48 const char *ftrace_print_array_seq(struct trace_seq *p, 49 - const void *buf, int buf_len, 49 + const void *buf, int count, 50 50 size_t el_size); 51 51 52 52 struct trace_iterator;
+2 -1
kernel/trace/trace_output.c
··· 178 178 EXPORT_SYMBOL(ftrace_print_hex_seq); 179 179 180 180 const char * 181 - ftrace_print_array_seq(struct trace_seq *p, const void *buf, int buf_len, 181 + ftrace_print_array_seq(struct trace_seq *p, const void *buf, int count, 182 182 size_t el_size) 183 183 { 184 184 const char *ret = trace_seq_buffer_ptr(p); 185 185 const char *prefix = ""; 186 186 void *ptr = (void *)buf; 187 + size_t buf_len = count * el_size; 187 188 188 189 trace_seq_putc(p, '{'); 189 190