summaryrefslogtreecommitdiff
path: root/lib/locking-selftest-spin.h
diff options
context:
space:
mode:
authorPratyush Anand <panand@redhat.com>2015-08-27 04:31:33 (GMT)
committerJ. Bruce Fields <bfields@redhat.com>2015-08-31 20:32:15 (GMT)
commit051ac3848a94f21cfdec899cc9c65ce7f9f116fa (patch)
tree9987429bd04444a201604cd27457d3eb825fe9dd /lib/locking-selftest-spin.h
parent51a545685905c934237e640083bc3aa40b36dc14 (diff)
downloadlinux-051ac3848a94f21cfdec899cc9c65ce7f9f116fa.tar.xz
net: sunrpc: fix tracepoint Warning: unknown op '->'
`perf stat -e sunrpc:svc_xprt_do_enqueue true` results in Warning: unknown op '->' Warning: [sunrpc:svc_xprt_do_enqueue] unknown op '->' Similar warning for svc_handle_xprt as well. Actually TP_printk() should never dereference an address saved in the ring buffer that points somewhere in the kernel. There's no guarantee that that object still exists (with the exception of static strings). Therefore change all the arguments for TP_printk(), so that it references values existing in the ring buffer only. While doing that, also fix another possible bug when argument xprt could be NULL and TP_fast_assign() tries to access it's elements. Signed-off-by: Pratyush Anand <panand@redhat.com> Reviewed-by: Jeff Layton <jeff.layton@primarydata.com> Acked-by: Steven Rostedt <rostedt@goodmis.org> Cc: stable@vger.kernel.org Fixes: 83a712e0afef "sunrpc: add some tracepoints around ..." Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'lib/locking-selftest-spin.h')
0 files changed, 0 insertions, 0 deletions