]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Fix trace_seq_bitmask() to start at current position
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Thu, 13 Nov 2014 02:11:59 +0000 (21:11 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 19 Nov 2014 20:25:38 +0000 (15:25 -0500)
commitcc64eed540080417622142f081aaaecaad70c14f
tree3f47e176dc3bdd8c3cfe469a1095dce8c5139f4c
parent60737e38714763bd3fda0c18b8b5322e675c0be9
tracing: Fix trace_seq_bitmask() to start at current position

In trace_seq_bitmask() it calls bitmap_scnprintf() not from the current
position of the trace_seq buffer (s->buffer + s->len), but instead from
the beginning of the buffer (s->buffer).

Luckily, the only user of this "ipi_raise tracepoint" uses it as the
first parameter, and as such, the start of the temp buffer in
include/trace/ftrace.h (see __get_bitmask()).

Reported-by: Petr Mladek <pmladek@suse.cz>
Reviewed-by: Petr Mladek <pmladek@suse.cz>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_seq.c