OSDN Git Service

tracing: Add ustring operation to filtering string pointers
authorSteven Rostedt <rostedt@goodmis.org>
Fri, 14 Jan 2022 01:08:40 +0000 (20:08 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 14 Jan 2022 08:42:24 +0000 (03:42 -0500)
commitf37c3bbc635994eda203a6da4ba0f9d05165a8d6
tree0d0cd245f1558617503c7f61dd9f426ff6200d6e
parent5dce5904e3b9bc11d9635dd3458c7ff32caebb59
tracing: Add ustring operation to filtering string pointers

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>
Documentation/trace/events.rst
kernel/trace/trace_events_filter.c