tracing: Add ustring operation to filtering string pointers
authorSteven Rostedt <rostedt@goodmis.org>
Fri, 14 Jan 2022 01:08:40 +0000 (20:08 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Mar 2022 18:12:33 +0000 (19:12 +0100)
commit33e22b6c53d0bf36db779ac9942471775445fff2
treeec35d43739372cd3b4996c689e70bbbd3e478d97
parenta9c6e02d223e327fa928fab3263aa47b9ba20253
tracing: Add ustring operation to filtering string pointers

[ Upstream commit f37c3bbc635994eda203a6da4ba0f9d05165a8d6 ]

Since referencing user space pointers is special, if the user wants to
filter on a field that is a pointer to user space, then they need to
specify it.

Add a ".ustring" attribute to the field name for filters to state that the
field is pointing to user space such that the kernel can take the
appropriate action to read that pointer.

Link: https://lore.kernel.org/all/yt9d8rvmt2jq.fsf@linux.ibm.com/
Fixes: 77360f9bbc7e ("tracing: Add test for user space strings when filtering on string pointers")
Tested-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Documentation/trace/events.rst
kernel/trace/trace_events_filter.c