mirror of
				https://github.com/torvalds/linux.git
				synced 2025-10-31 16:48:26 +02:00 
			
		
		
		
	tracing/ftrace: Allow instances to have their own function probes
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>
This commit is contained in:
		
							parent
							
								
									6e4443199e
								
							
						
					
					
						commit
						d2afd57a4b
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -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; | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Steven Rostedt (VMware)
						Steven Rostedt (VMware)