Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1581332

[for-next][PATCH 1/8] tracing: Have COMM event filter key be treated as a string

From Steven Rostedt <rostedt@goodmis.org>
Newsgroups linux.kernel
Subject [for-next][PATCH 1/8] tracing: Have COMM event filter key be treated as a string
Date 2017-02-15 15:10 +0100
Message-ID <tb8rp-107-29@gated-at.bofh.it> (permalink)
References <tb8ro-107-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: "Steven Rostedt (VMware)" <rostedt@goodmis.org>

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>
---
 kernel/trace/trace.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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)
-- 
2.10.2

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[for-next][PATCH 0/8] tracing: More updates for 4.11 Steven Rostedt <rostedt@goodmis.org> - 2017-02-15 15:10 +0100
  [for-next][PATCH 4/8] tracing/hwlat: Update old comment about migration Steven Rostedt <rostedt@goodmis.org> - 2017-02-15 15:10 +0100
  [for-next][PATCH 3/8] timers: Make flags output in the timer_start tracepoint useful Steven Rostedt <rostedt@goodmis.org> - 2017-02-15 15:10 +0100
  [for-next][PATCH 5/8] tracing/probe: Show subsystem name in messages Steven Rostedt <rostedt@goodmis.org> - 2017-02-15 15:10 +0100
  [for-next][PATCH 7/8] tracing: Use modern function declaration Steven Rostedt <rostedt@goodmis.org> - 2017-02-15 15:10 +0100
  [for-next][PATCH 1/8] tracing: Have COMM event filter key be treated as a string Steven Rostedt <rostedt@goodmis.org> - 2017-02-15 15:10 +0100
  [for-next][PATCH 2/8] tracing: Have traceprobe_probes_write() not access userspace  unnecessarily Steven Rostedt <rostedt@goodmis.org> - 2017-02-15 15:10 +0100
  [for-next][PATCH 6/8] jump_label: Reduce the size of struct static_key Steven Rostedt <rostedt@goodmis.org> - 2017-02-15 15:10 +0100
  [for-next][PATCH 8/8] tracing: Fix return value check in trace_benchmark_reg() Steven Rostedt <rostedt@goodmis.org> - 2017-02-15 15:10 +0100

csiph-web