diff options
author | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2017-02-08 13:36:37 -0500 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2017-02-10 14:19:45 -0500 |
commit | 4c7384131c8d343c0bf79abac3b3e78596d85b10 (patch) | |
tree | 64a425bf8b52d95e6cbff18524a3c0be64d43600 /kernel/trace/trace.h | |
parent | e704eff3ff5138a462443dcd64d071165df18782 (diff) | |
download | linux-4c7384131c8d343c0bf79abac3b3e78596d85b10.tar.bz2 |
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>
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r-- | kernel/trace/trace.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index afbec961eab1..d2d068b36341 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h @@ -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) |