]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
tracing: Apply trace_clock changes to instance max buffer
authorBaohong Liu <baohong.liu@intel.com>
Tue, 5 Sep 2017 21:57:19 +0000 (16:57 -0500)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Thu, 5 Oct 2017 17:56:26 +0000 (14:56 -0300)
commit2532dcc79c844a995d6acc42e0cbbc8ef2c41198
treedec24e4718d4f40535310d8a7dfed479755c4c73
parentf4ae096cd2c2312f2278727e311964a9cab73027
tracing: Apply trace_clock changes to instance max buffer

BugLink: http://bugs.launchpad.net/bugs/1721477
commit 170b3b1050e28d1ba0700e262f0899ffa4fccc52 upstream.

Currently trace_clock timestamps are applied to both regular and max
buffers only for global trace. For instance trace, trace_clock
timestamps are applied only to regular buffer. But, regular and max
buffers can be swapped, for example, following a snapshot. So, for
instance trace, bad timestamps can be seen following a snapshot.
Let's apply trace_clock timestamps to instance max buffer as well.

Link: http://lkml.kernel.org/r/ebdb168d0be042dcdf51f81e696b17fabe3609c1.1504642143.git.tom.zanussi@linux.intel.com
Fixes: 277ba0446 ("tracing: Add interface to allow multiple trace buffers")
Signed-off-by: Baohong Liu <baohong.liu@intel.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
kernel/trace/trace.c