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


Groups > linux.kernel > #1628597 > unrolled thread

[for-next][PATCH 30/33] tracing/ftrace: Allow instances to have their own function probes

Started bySteven Rostedt <rostedt@goodmis.org>
First post2017-04-21 23:40 +0200
Last post2017-04-21 23:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [for-next][PATCH 30/33] tracing/ftrace: Allow instances to have their own function probes Steven Rostedt <rostedt@goodmis.org> - 2017-04-21 23:40 +0200

#1628597 — [for-next][PATCH 30/33] tracing/ftrace: Allow instances to have their own function probes

FromSteven Rostedt <rostedt@goodmis.org>
Date2017-04-21 23:40 +0200
Subject[for-next][PATCH 30/33] tracing/ftrace: Allow instances to have their own function probes
Message-ID<tyOrw-2qL-31@gated-at.bofh.it>
From: "Steven Rostedt (VMware)" <rostedt@goodmis.org>

Pass around the local trace_array that is the descriptor for tracing
instances, when enabling and disabling probes. This by default sets the
enable/disable of event probe triggers to work with instances.

The other probes will need some more work to get them working with
instances.

Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
---
 kernel/trace/ftrace.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
index 774e9108e5dc..6615197e6597 100644
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@ -3077,7 +3077,7 @@ static void *
 t_probe_next(struct seq_file *m, loff_t *pos)
 {
 	struct ftrace_iterator *iter = m->private;
-	struct trace_array *tr = global_ops.private;
+	struct trace_array *tr = iter->ops->private;
 	struct list_head *func_probes;
 	struct ftrace_hash *hash;
 	struct list_head *next;
@@ -4311,7 +4311,7 @@ static int ftrace_process_regex(struct ftrace_iterator *iter,
 				char *buff, int len, int enable)
 {
 	struct ftrace_hash *hash = iter->hash;
-	struct trace_array *tr = global_ops.private;
+	struct trace_array *tr = iter->ops->private;
 	char *func, *command, *next = buff;
 	struct ftrace_func_command *p;
 	int ret = -EINVAL;
-- 
2.10.2

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web