From: Steven Rostedt (VMware) Date: Wed, 8 Feb 2017 18:36:37 +0000 (-0500) Subject: tracing: Have COMM event filter key be treated as a string X-Git-Tag: v4.11-rc2~40^2~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4c7384131c8d343c0bf79abac3b3e78596d85b10;p=platform%2Fkernel%2Flinux-exynos.git 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) --- diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index afbec96..d2d068b 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)