/linux/kernel/trace/ |
H A 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 …]
|
H A D | trace_events.c | 608 struct trace_pid_list *pid_list; in trace_event_ignore_this_pid() local 610 pid_list = rcu_dereference_raw(tr->filtered_pids); in trace_event_ignore_this_pid() 613 if (!pid_list && !no_pid_list) in trace_event_ignore_this_pid() 874 struct trace_pid_list *pid_list; in event_filter_pid_sched_process_exit() local 877 pid_list = rcu_dereference_raw(tr->filtered_pids); in event_filter_pid_sched_process_exit() 878 trace_filter_add_remove_task(pid_list, NULL, task); in event_filter_pid_sched_process_exit() 880 pid_list = rcu_dereference_raw(tr->filtered_no_pids); in event_filter_pid_sched_process_exit() 881 trace_filter_add_remove_task(pid_list, NULL, task); in event_filter_pid_sched_process_exit() 889 struct trace_pid_list *pid_list; in event_filter_pid_sched_process_fork() local 892 pid_list = rcu_dereference_sched(tr->filtered_pids); in event_filter_pid_sched_process_fork() [all …]
|
H A D | trace.h | 227 void trace_pid_list_free(struct trace_pid_list *pid_list); 228 bool trace_pid_list_is_set(struct trace_pid_list *pid_list, unsigned int pid); 229 int trace_pid_list_set(struct trace_pid_list *pid_list, unsigned int pid); 230 int trace_pid_list_clear(struct trace_pid_list *pid_list, unsigned int pid); 231 int trace_pid_list_first(struct trace_pid_list *pid_list, unsigned int *pid); 232 int trace_pid_list_next(struct trace_pid_list *pid_list, unsigned int pid, 240 static inline bool pid_type_enabled(int type, struct trace_pid_list *pid_list, in pid_type_enabled() argument 244 return ((type & TRACE_PIDS) && pid_list) || in pid_type_enabled() 248 static inline bool still_need_pid_events(int type, struct trace_pid_list *pid_list, in still_need_pid_events() argument 255 return (!(type & TRACE_PIDS) && pid_list) || in still_need_pid_events() [all …]
|
H A D | ftrace.c | 7998 struct trace_pid_list *pid_list; in ftrace_filter_pid_sched_switch_probe() local 8001 pid_list = rcu_dereference_sched(tr->function_pids); in ftrace_filter_pid_sched_switch_probe() 8004 if (trace_ignore_this_task(pid_list, no_pid_list, next)) in ftrace_filter_pid_sched_switch_probe() 8017 struct trace_pid_list *pid_list; in ftrace_pid_follow_sched_process_fork() local 8020 pid_list = rcu_dereference_sched(tr->function_pids); in ftrace_pid_follow_sched_process_fork() 8021 trace_filter_add_remove_task(pid_list, self, task); in ftrace_pid_follow_sched_process_fork() 8023 pid_list = rcu_dereference_sched(tr->function_no_pids); in ftrace_pid_follow_sched_process_fork() 8024 trace_filter_add_remove_task(pid_list, self, task); in ftrace_pid_follow_sched_process_fork() 8030 struct trace_pid_list *pid_list; in ftrace_pid_follow_sched_process_exit() local 8033 pid_list = rcu_dereference_sched(tr->function_pids); in ftrace_pid_follow_sched_process_exit() [all …]
|
H A D | Makefile | 54 obj-$(CONFIG_TRACING) += pid_list.o
|
H A D | trace.c | 650 void trace_filter_add_remove_task(struct trace_pid_list *pid_list, in trace_filter_add_remove_task() argument 654 if (!pid_list) in trace_filter_add_remove_task() 659 if (!trace_find_filtered_pid(pid_list, self->pid)) in trace_filter_add_remove_task() 665 trace_pid_list_set(pid_list, task->pid); in trace_filter_add_remove_task() 667 trace_pid_list_clear(pid_list, task->pid); in trace_filter_add_remove_task() 682 void *trace_pid_next(struct trace_pid_list *pid_list, void *v, loff_t *pos) in trace_pid_next() argument 690 if (trace_pid_list_next(pid_list, pid, &next) < 0) in trace_pid_next() 710 void *trace_pid_start(struct trace_pid_list *pid_list, loff_t *pos) in trace_pid_start() argument 716 if (trace_pid_list_first(pid_list, &first) < 0) in trace_pid_start() 723 pid = (unsigned long)trace_pid_next(pid_list, (void *)pid, &l)) in trace_pid_start() [all …]
|
/linux/tools/testing/selftests/livepatch/ |
H A D | test-syscall.sh | 26 pid_list=$(echo ${pids[@]} | tr ' ' ',') 27 load_lp $MOD_SYSCALL klp_pids=$pid_list 42 check_result "% insmod test_modules/$MOD_SYSCALL.ko klp_pids=$pid_list
|
/linux/tools/perf/util/ |
H A D | symbol_conf.h | 77 struct intlist *pid_list, member
|
H A D | thread.h | 332 if (symbol_conf.pid_list && in thread__is_filtered() 333 !intlist__has_entry(symbol_conf.pid_list, thread__pid(thread))) { in thread__is_filtered()
|
H A D | kvm-stat.h | 104 struct intlist *pid_list; member
|
H A D | symbol.c | 2494 if (setup_intlist(&symbol_conf.pid_list, in symbol__init() 2537 intlist__delete(symbol_conf.pid_list); in symbol__init() 2554 intlist__delete(symbol_conf.pid_list); in symbol__exit()
|
H A D | hist.c | 1417 symbol_conf.pid_list == NULL && in hist_entry__check_and_remove_filter()
|
/linux/drivers/scsi/bfa/ |
H A D | bfa_fcbuild.c | 532 u32 s_id, u32 *pid_list, u16 npids) in fc_rpsc2_build() argument 545 rpsc2->pid_list[i].pid = pid_list[i]; in fc_rpsc2_build()
|
H A D | bfa_fcbuild.h | 202 u32 d_id, u32 s_id, u32 *pid_list, u16 npids);
|
H A D | bfa_fc.h | 948 } pid_list[1]; member
|
/linux/tools/perf/ |
H A D | builtin-kvm.c | 1184 if (kvm->pid_list && intlist__find(kvm->pid_list, sample->pid) == NULL) in skip_sample() 1650 kvm->pid_list = intlist__new(kvm->opts.target.pid); in parse_target_str() 1651 if (kvm->pid_list == NULL) { in parse_target_str()
|