author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | |
Tue, 24 Mar 2015 13:57:55 +0000 (09:57 -0400) | ||
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | |
Wed, 6 May 2015 19:59:15 +0000 (21:59 +0200) | ||
commit | c3b0b52da00217d2aa04cde440193bfa8e7219e3 | |
tree | 1c714e96b73f56628943e7781cb030ea806f6605 | tree | snapshot (tar.xz tar.gz zip) |
parent | 83dffc246d8b217cd9f577a8859c97b6054806cb | commit | diff |
tools lib traceevent kbuffer: Remove extra update to data pointer in PADDING
commit c5e691928bf166ac03430e957038b60adba3cf6c upstream.
When a event PADDING is hit (a deleted event that is still in the ring
buffer), translate_data() sets the length of the padding and also updates
the data pointer which is passed back to the caller.
This is unneeded because the caller also updates the data pointer with
the passed back length. translate_data() should not update the pointer,
only set the length.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/20150324135923.461431960@goodmis.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
commit c5e691928bf166ac03430e957038b60adba3cf6c upstream.
When a event PADDING is hit (a deleted event that is still in the ring
buffer), translate_data() sets the length of the padding and also updates
the data pointer which is passed back to the caller.
This is unneeded because the caller also updates the data pointer with
the passed back length. translate_data() should not update the pointer,
only set the length.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/20150324135923.461431960@goodmis.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/lib/traceevent/kbuffer-parse.c | diff | blob | history |