Home
last modified time | relevance | path

Searched refs:pid_list (Results 1 – 16 of 16) sorted by relevance

/linux/kernel/trace/
H A Dpid_list.c12 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 Dtrace_events.c608 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 Dtrace.h227 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 Dftrace.c7998 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 DMakefile54 obj-$(CONFIG_TRACING) += pid_list.o
H A Dtrace.c650 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 Dtest-syscall.sh26 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 Dsymbol_conf.h77 struct intlist *pid_list, member
H A Dthread.h332 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 Dkvm-stat.h104 struct intlist *pid_list; member
H A Dsymbol.c2494 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 Dhist.c1417 symbol_conf.pid_list == NULL && in hist_entry__check_and_remove_filter()
/linux/drivers/scsi/bfa/
H A Dbfa_fcbuild.c532 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 Dbfa_fcbuild.h202 u32 d_id, u32 s_id, u32 *pid_list, u16 npids);
H A Dbfa_fc.h948 } pid_list[1]; member
/linux/tools/perf/
H A Dbuiltin-kvm.c1184 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()