aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorZenghui Yu <[email protected]>2018-11-28 03:35:23 +0000
committerSteven Rostedt (VMware) <[email protected]>2018-11-29 22:08:38 -0500
commit0c7a52e4d4b5c4d35b31f3c3ad32af814f1bf491 (patch)
tree9a4f0aa2071f6b1561c3b0f8b382368ab49eb834 /tools/perf/scripts/python/export-to-postgresql.py
parent3054426dc68e5d63aa6a6e9b91ac4ec78e3f3805 (diff)
tracepoint: Use __idx instead of idx in DO_TRACE macro to make it unique
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 <[email protected]> Cc: Wang Haibin <[email protected]> Cc: [email protected] Cc: [email protected] Fixes: e6753f23d961 ("tracepoint: Make rcuidle tracepoint callers use SRCU") Reviewed-by: Joel Fernandes (Google) <[email protected]> Signed-off-by: Zenghui Yu <[email protected]> Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions