]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit195c9a6277e0bec42b6490b809157becce53a639
tree0d0cd245f1558617503c7f61dd9f426ff6200d6e
parent16ace6c6b715141be494c2018cf7b414855551c6
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: 705baa47e3b8 ("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