Skip to content

Commit 4c73841

Browse files
committed
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>
1 parent e704eff commit 4c73841

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎kernel/trace/trace.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1312,7 +1312,8 @@ static inline bool is_string_field(struct ftrace_event_field *field)
13121312
{
13131313
return field->filter_type == FILTER_DYN_STRING ||
13141314
field->filter_type == FILTER_STATIC_STRING ||
1315-
field->filter_type == FILTER_PTR_STRING;
1315+
field->filter_type == FILTER_PTR_STRING ||
1316+
field->filter_type == FILTER_COMM;
13161317
}
13171318

13181319
static inline bool is_function_field(struct ftrace_event_field *field)

0 commit comments

Comments
 (0)