/kernel/ |
D | seccomp.c | 275 static int seccomp_check_filter(struct sock_filter *filter, unsigned int flen) in seccomp_check_filter() argument 279 struct sock_filter *ftest = &filter[pc]; in seccomp_check_filter() 407 READ_ONCE(current->seccomp.filter); in seccomp_run_filters() 503 is_ancestor(thread->seccomp.filter, in seccomp_can_sync_threads() 504 caller->seccomp.filter))) in seccomp_can_sync_threads() 518 static inline void seccomp_filter_free(struct seccomp_filter *filter) in seccomp_filter_free() argument 520 if (filter) { in seccomp_filter_free() 521 bpf_prog_destroy(filter->prog); in seccomp_filter_free() 522 kfree(filter); in seccomp_filter_free() 564 struct seccomp_filter *orig = tsk->seccomp.filter; in seccomp_filter_release() [all …]
|
D | watch_queue.c | 218 wf = rcu_dereference(wqueue->filter); in __post_watch_notification() 312 struct watch_notification_filter filter; in watch_queue_set_filter() local 328 if (copy_from_user(&filter, _filter, sizeof(filter)) != 0) in watch_queue_set_filter() 330 if (filter.nr_filters == 0 || in watch_queue_set_filter() 331 filter.nr_filters > 16 || in watch_queue_set_filter() 332 filter.__reserved != 0) in watch_queue_set_filter() 335 tf = memdup_array_user(_filter->filters, filter.nr_filters, sizeof(*tf)); in watch_queue_set_filter() 340 for (i = 0; i < filter.nr_filters; i++) { in watch_queue_set_filter() 360 for (i = 0; i < filter.nr_filters; i++) { in watch_queue_set_filter() 375 wfilter = rcu_replace_pointer(wqueue->filter, wfilter, in watch_queue_set_filter() [all …]
|
D | params.c | 939 .filter = uevent_filter,
|
D | fork.c | 610 WARN_ON_ONCE(tsk->seccomp.filter); in free_task() 1100 tsk->seccomp.filter = NULL; in dup_task_struct()
|
/kernel/trace/ |
D | trace_events_filter.c | 1038 int filter_match_preds(struct event_filter *filter, void *rec) in filter_match_preds() argument 1044 if (!filter) in filter_match_preds() 1048 prog = rcu_dereference_raw(filter->prog); in filter_match_preds() 1062 static void remove_filter_string(struct event_filter *filter) in remove_filter_string() argument 1064 if (!filter) in remove_filter_string() 1067 kfree(filter->filter_string); in remove_filter_string() 1068 filter->filter_string = NULL; in remove_filter_string() 1073 struct event_filter *filter) in append_filter_err() argument 1080 if (WARN_ON(!filter->filter_string)) in append_filter_err() 1088 len = strlen(filter->filter_string); in append_filter_err() [all …]
|
D | trace_uprobe.c | 260 static inline void init_trace_uprobe_filter(struct trace_uprobe_filter *filter) in NOKPROBE_SYMBOL() 262 rwlock_init(&filter->rwlock); in NOKPROBE_SYMBOL() 263 filter->nr_systemwide = 0; in NOKPROBE_SYMBOL() 264 INIT_LIST_HEAD(&filter->perf_events); in NOKPROBE_SYMBOL() 267 static inline bool uprobe_filter_is_empty(struct trace_uprobe_filter *filter) in uprobe_filter_is_empty() argument 269 return !filter->nr_systemwide && list_empty(&filter->perf_events); in uprobe_filter_is_empty() 356 init_trace_uprobe_filter(tu->tp.event->filter); in alloc_trace_uprobe() 1058 static int trace_uprobe_enable(struct trace_uprobe *tu, filter_func_t filter) in trace_uprobe_enable() argument 1062 tu->consumer.filter = filter; in trace_uprobe_enable() 1082 WARN_ON(!uprobe_filter_is_empty(tu->tp.event->filter)); in __probe_event_disable() [all …]
|
D | trace_events_trigger.c | 62 struct event_filter *filter; in event_triggers_call() local 74 filter = rcu_dereference_sched(data->filter); in event_triggers_call() 75 if (filter && !filter_match_preds(filter, rec)) in event_triggers_call() 538 if (data->filter || event_command_post_trigger(data->cmd_ops) || in update_cond_flag() 767 char **filter, bool param_required) in event_trigger_separate_filter() argument 771 *param = *filter = NULL; in event_trigger_separate_filter() 786 *filter = param_and_filter; in event_trigger_separate_filter() 801 *filter = skip_spaces(param_and_filter); in event_trigger_separate_filter() 802 if (!**filter) in event_trigger_separate_filter() 803 *filter = NULL; in event_trigger_separate_filter() [all …]
|
D | trace_eprobe.c | 627 struct event_filter *filter = NULL; in new_eprobe_trigger() local 653 ep->filter_str, false, &filter); in new_eprobe_trigger() 657 RCU_INIT_POINTER(trigger->filter, filter); in new_eprobe_trigger() 665 free_event_filter(filter); in new_eprobe_trigger() 702 struct event_filter *filter; in disable_eprobe() local 729 filter = rcu_access_pointer(trigger->filter); in disable_eprobe() 731 if (filter) in disable_eprobe() 732 free_event_filter(filter); in disable_eprobe()
|
D | fprobe.c | 191 int register_fprobe(struct fprobe *fp, const char *filter, const char *notfilter) in register_fprobe() argument 197 if (!fp || !filter) in register_fprobe() 202 len = strlen(filter); in register_fprobe() 203 str = kstrdup(filter, GFP_KERNEL); in register_fprobe()
|
D | trace_events.c | 932 struct event_filter *filter = system->filter; in __put_system() local 940 if (filter) { in __put_system() 941 kfree(filter->filter_string); in __put_system() 942 kfree(filter); in __put_system() 1009 free_event_filter(file->filter); in remove_event_file_dir() 2280 system->filter = NULL; in create_new_subsystem() 2282 system->filter = kzalloc(sizeof(struct event_filter), GFP_KERNEL); in create_new_subsystem() 2283 if (!system->filter) in create_new_subsystem() 2354 kfree(system->filter); in event_subsystem_dir() 2355 system->filter = NULL; in event_subsystem_dir() [all …]
|
D | trace.h | 1307 struct event_filter *filter; member 1391 !filter_match_preds(file->filter, entry)) in __event_trigger_test_discard() 1494 extern void free_event_filter(struct event_filter *filter); 1549 struct event_filter __rcu *filter; member 1610 char **filter, bool param_required);
|
D | trace_probe.h | 244 struct trace_uprobe_filter filter[]; member
|
D | trace_events_hist.c | 6447 char *param, *filter, *p, *start; in event_hist_trigger_parse() local 6493 filter = NULL; in event_hist_trigger_parse() 6496 filter = strstrip(p); in event_hist_trigger_parse() 6529 ret = event_trigger_set_filter(cmd_ops, file, filter, trigger_data); in event_hist_trigger_parse()
|
D | trace.c | 523 !filter_match_preds(call->filter, rec)) { in call_filter_check_discard() 2883 !filter_match_preds(file->filter, fbuffer->entry))) in output_printk()
|
/kernel/irq/ |
D | msi.c | 127 static bool msi_desc_match(struct msi_desc *desc, enum msi_desc_filter filter) in msi_desc_match() argument 129 switch (filter) { in msi_desc_match() 148 void msi_free_msi_descs_range(struct device *dev, enum msi_desc_filter filter, in msi_free_msi_descs_range() argument 158 if (msi_desc_match(desc, filter)) { in msi_free_msi_descs_range() 244 static struct msi_desc *msi_find_desc(struct msi_device_data *md, enum msi_desc_filter filter) in msi_find_desc() argument 249 if (msi_desc_match(desc, filter)) in msi_find_desc() 267 struct msi_desc *msi_first_desc(struct device *dev, enum msi_desc_filter filter) in msi_first_desc() argument 277 return msi_find_desc(md, filter); in msi_first_desc() 293 struct msi_desc *msi_next_desc(struct device *dev, enum msi_desc_filter filter) in msi_next_desc() argument 306 return msi_find_desc(md, filter); in msi_next_desc()
|
/kernel/events/ |
D | core.c | 7808 struct perf_addr_filter *filter; in perf_event_addr_filters_exec() local 7816 list_for_each_entry(filter, &ifh->list, entry) { in perf_event_addr_filters_exec() 7817 if (filter->path.dentry) { in perf_event_addr_filters_exec() 8601 static bool perf_addr_filter_match(struct perf_addr_filter *filter, in perf_addr_filter_match() argument 8606 if (!filter->path.dentry) in perf_addr_filter_match() 8609 if (d_inode(filter->path.dentry) != file_inode(file)) in perf_addr_filter_match() 8612 if (filter->offset > offset + size) in perf_addr_filter_match() 8615 if (filter->offset + filter->size < offset) in perf_addr_filter_match() 8621 static bool perf_addr_filter_vma_adjust(struct perf_addr_filter *filter, in perf_addr_filter_vma_adjust() argument 8629 if (!perf_addr_filter_match(filter, file, off, vma_size)) in perf_addr_filter_vma_adjust() [all …]
|
D | uprobes.c | 872 return !uc->filter || uc->filter(uc, ctx, mm); in consumer_filter()
|
/kernel/debug/kdb/ |
D | Makefile | 21 $(filter-out %/Makefile,$^) > $@#
|
/kernel/module/ |
D | Makefile | 40 $(ALL_KMI_SYMBOLS): $(if $(filter arm64,$(ARCH)),$(wildcard $(srctree)/android/abi_gki_aarch64_*),)
|
/kernel/bpf/preload/iterators/ |
D | Makefile | 52 -c $(filter %.c,$^) -o $@ && \
|