Skip to content

Commit

Permalink
tracing: Have COMM event filter key be treated as a string
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Steven Rostedt (VMware) committed Feb 10, 2017
1 parent e704eff commit 4c73841
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kernel/trace/trace.h
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 4c73841

Please sign in to comment.