]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Update print fmt check to handle new __get_sockaddr() macro
authorSteven Rostedt (Google) <rostedt@goodmis.org>
Tue, 25 Jan 2022 15:44:08 +0000 (10:44 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 28 Feb 2022 15:26:38 +0000 (10:26 -0500)
commitdb61077b9784a14396f512e6480bc9e0e0c8c03b
tree14bb8e4b437f5a01e321267697a8d76e5c5a39e9
parente09d4bb6bdbfc24a7c3998901f84c14689feff76
tracing: Update print fmt check to handle new __get_sockaddr() macro

A helper macro was added to make reading socket addresses easier in trace
events. It pairs %pISpc with __get_sockaddr() that reads the socket
address from the ring buffer into a human readable format.

The boot up check that makes sure that trace events do not reference
pointers to memory that can later be freed when the trace event is read,
incorrectly flagged this as a delayed reference. Update the check to
handle "__get_sockaddr" and not report an error on it.

Link: https://lore.kernel.org/all/20220125160505.068dbb52@canb.auug.org.au/
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
kernel/trace/trace_events.c