summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorZenghui Yu <yuzenghui@huawei.com>2018-11-28 03:35:23 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-12-08 12:59:07 +0100
commitd49297b5c77ae818f33b6ee63e418097e0ff98e8 (patch)
tree069349e919a4389f96d04eb11cd20c30501bc375 /kernel
parentfd8152818f11435557a18311603220d8bbdf7272 (diff)
tracepoint: Use __idx instead of idx in DO_TRACE macro to make it unique
commit 0c7a52e4d4b5c4d35b31f3c3ad32af814f1bf491 upstream. After enabling KVM event tracing, almost all of trace_kvm_exit()'s printk shows "kvm_exit: IRQ: ..." even if the actual exception_type is NOT IRQ. More specifically, trace_kvm_exit() is defined in virt/kvm/arm/trace.h by TRACE_EVENT. This slight problem may have existed after commit e6753f23d961 ("tracepoint: Make rcuidle tracepoint callers use SRCU"). There are two variables in trace_kvm_exit() and __DO_TRACE() which have the same name, *idx*. Thus the actual value of *idx* will be overwritten when tracing. Fix it by adding a simple prefix. Cc: Joel Fernandes <joel@joelfernandes.org> Cc: Wang Haibin <wanghaibin.wang@huawei.com> Cc: linux-trace-devel@vger.kernel.org Cc: stable@vger.kernel.org Fixes: e6753f23d961 ("tracepoint: Make rcuidle tracepoint callers use SRCU") Reviewed-by: Joel Fernandes (Google) <joel@joelfernandes.org> Signed-off-by: Zenghui Yu <yuzenghui@huawei.com> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions