Searched refs:pid_list (Results 1 – 6 of 6) sorted by relevance
/kernel/trace/ |
D | pid_list.c | 12 static inline union lower_chunk *get_lower_chunk(struct trace_pid_list *pid_list) in get_lower_chunk() argument 16 lockdep_assert_held(&pid_list->lock); in get_lower_chunk() 18 if (!pid_list->lower_list) in get_lower_chunk() 21 chunk = pid_list->lower_list; in get_lower_chunk() 22 pid_list->lower_list = chunk->next; in get_lower_chunk() 23 pid_list->free_lower_chunks--; in get_lower_chunk() 24 WARN_ON_ONCE(pid_list->free_lower_chunks < 0); in get_lower_chunk() 30 if (pid_list->free_lower_chunks <= CHUNK_REALLOC) in get_lower_chunk() 31 irq_work_queue(&pid_list->refill_irqwork); in get_lower_chunk() 36 static inline union upper_chunk *get_upper_chunk(struct trace_pid_list *pid_list) in get_upper_chunk() argument [all …]
|
D | trace_events.c | 479 struct trace_pid_list *pid_list; in trace_event_ignore_this_pid() local 481 pid_list = rcu_dereference_raw(tr->filtered_pids); in trace_event_ignore_this_pid() 484 if (!pid_list && !no_pid_list) in trace_event_ignore_this_pid() 745 struct trace_pid_list *pid_list; in event_filter_pid_sched_process_exit() local 748 pid_list = rcu_dereference_raw(tr->filtered_pids); in event_filter_pid_sched_process_exit() 749 trace_filter_add_remove_task(pid_list, NULL, task); in event_filter_pid_sched_process_exit() 751 pid_list = rcu_dereference_raw(tr->filtered_no_pids); in event_filter_pid_sched_process_exit() 752 trace_filter_add_remove_task(pid_list, NULL, task); in event_filter_pid_sched_process_exit() 760 struct trace_pid_list *pid_list; in event_filter_pid_sched_process_fork() local 763 pid_list = rcu_dereference_sched(tr->filtered_pids); in event_filter_pid_sched_process_fork() [all …]
|
D | trace.h | 205 void trace_pid_list_free(struct trace_pid_list *pid_list); 206 bool trace_pid_list_is_set(struct trace_pid_list *pid_list, unsigned int pid); 207 int trace_pid_list_set(struct trace_pid_list *pid_list, unsigned int pid); 208 int trace_pid_list_clear(struct trace_pid_list *pid_list, unsigned int pid); 209 int trace_pid_list_first(struct trace_pid_list *pid_list, unsigned int *pid); 210 int trace_pid_list_next(struct trace_pid_list *pid_list, unsigned int pid, 218 static inline bool pid_type_enabled(int type, struct trace_pid_list *pid_list, in pid_type_enabled() argument 222 return ((type & TRACE_PIDS) && pid_list) || in pid_type_enabled() 226 static inline bool still_need_pid_events(int type, struct trace_pid_list *pid_list, in still_need_pid_events() argument 233 return (!(type & TRACE_PIDS) && pid_list) || in still_need_pid_events() [all …]
|
D | ftrace.c | 7665 struct trace_pid_list *pid_list; in ftrace_filter_pid_sched_switch_probe() local 7668 pid_list = rcu_dereference_sched(tr->function_pids); in ftrace_filter_pid_sched_switch_probe() 7671 if (trace_ignore_this_task(pid_list, no_pid_list, next)) in ftrace_filter_pid_sched_switch_probe() 7684 struct trace_pid_list *pid_list; in ftrace_pid_follow_sched_process_fork() local 7687 pid_list = rcu_dereference_sched(tr->function_pids); in ftrace_pid_follow_sched_process_fork() 7688 trace_filter_add_remove_task(pid_list, self, task); in ftrace_pid_follow_sched_process_fork() 7690 pid_list = rcu_dereference_sched(tr->function_no_pids); in ftrace_pid_follow_sched_process_fork() 7691 trace_filter_add_remove_task(pid_list, self, task); in ftrace_pid_follow_sched_process_fork() 7697 struct trace_pid_list *pid_list; in ftrace_pid_follow_sched_process_exit() local 7700 pid_list = rcu_dereference_sched(tr->function_pids); in ftrace_pid_follow_sched_process_exit() [all …]
|
D | Makefile | 54 obj-$(CONFIG_TRACING) += pid_list.o
|
D | trace.c | 585 void trace_filter_add_remove_task(struct trace_pid_list *pid_list, in trace_filter_add_remove_task() argument 589 if (!pid_list) in trace_filter_add_remove_task() 594 if (!trace_find_filtered_pid(pid_list, self->pid)) in trace_filter_add_remove_task() 600 trace_pid_list_set(pid_list, task->pid); in trace_filter_add_remove_task() 602 trace_pid_list_clear(pid_list, task->pid); in trace_filter_add_remove_task() 617 void *trace_pid_next(struct trace_pid_list *pid_list, void *v, loff_t *pos) in trace_pid_next() argument 625 if (trace_pid_list_next(pid_list, pid, &next) < 0) in trace_pid_next() 645 void *trace_pid_start(struct trace_pid_list *pid_list, loff_t *pos) in trace_pid_start() argument 651 if (trace_pid_list_first(pid_list, &first) < 0) in trace_pid_start() 658 pid = (unsigned long)trace_pid_next(pid_list, (void *)pid, &l)) in trace_pid_start() [all …]
|