mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
tracing: Have COMM event filter key be treated as a string
The GLOB operation "~" should be able to work with the COMM filter key in order to trace programs with a glob. For example echo 'COMM ~ "systemd*"' > events/syscalls/filter Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
This commit is contained in:
parent
e704eff3ff
commit
4c7384131c
1 changed files with 2 additions and 1 deletions
|
|
@ -1312,7 +1312,8 @@ static inline bool is_string_field(struct ftrace_event_field *field)
|
|||
{
|
||||
return field->filter_type == FILTER_DYN_STRING ||
|
||||
field->filter_type == FILTER_STATIC_STRING ||
|
||||
field->filter_type == FILTER_PTR_STRING;
|
||||
field->filter_type == FILTER_PTR_STRING ||
|
||||
field->filter_type == FILTER_COMM;
|
||||
}
|
||||
|
||||
static inline bool is_function_field(struct ftrace_event_field *field)
|
||||
|
|
|
|||
Loading…
Reference in a new issue