Home
last modified time | relevance | path

Searched refs:filter (Results 1 – 14 of 14) sorted by relevance

/kernel/
Dseccomp.c174 static int seccomp_check_filter(struct sock_filter *filter, unsigned int flen) in seccomp_check_filter() argument
178 struct sock_filter *ftest = &filter[pc]; in seccomp_check_filter()
260 READ_ONCE(current->seccomp.filter); in seccomp_run_filters()
355 is_ancestor(thread->seccomp.filter, in seccomp_can_sync_threads()
356 caller->seccomp.filter))) in seccomp_can_sync_threads()
400 smp_store_release(&thread->seccomp.filter, in seccomp_sync_threads()
401 caller->seccomp.filter); in seccomp_sync_threads()
480 struct seccomp_filter *filter = ERR_PTR(-EFAULT); in seccomp_prepare_user_filter() local
488 fprog.filter = compat_ptr(fprog32.filter); in seccomp_prepare_user_filter()
493 filter = seccomp_prepare_filter(&fprog); in seccomp_prepare_user_filter()
[all …]
Dparams.c922 .filter = uevent_filter,
Dfork.c914 tsk->seccomp.filter = NULL; in dup_task_struct()
/kernel/trace/
Dtrace_events_filter.c896 int filter_match_preds(struct event_filter *filter, void *rec) in filter_match_preds() argument
902 if (!filter) in filter_match_preds()
906 prog = rcu_dereference_raw(filter->prog); in filter_match_preds()
920 static void remove_filter_string(struct event_filter *filter) in remove_filter_string() argument
922 if (!filter) in remove_filter_string()
925 kfree(filter->filter_string); in remove_filter_string()
926 filter->filter_string = NULL; in remove_filter_string()
931 struct event_filter *filter) in append_filter_err() argument
938 if (WARN_ON(!filter->filter_string)) in append_filter_err()
946 len = strlen(filter->filter_string); in append_filter_err()
[all …]
Dtrace_export.c33 filter, regfn) \ argument
35 filter)
63 #define FTRACE_ENTRY(name, struct_name, id, tstruct, print, filter) \ argument
76 #define FTRACE_ENTRY_DUP(name, struct_name, id, tstruct, print, filter) \ argument
78 filter)
134 #define FTRACE_ENTRY(name, struct_name, id, tstruct, print, filter) \ argument
140 int filter_type = filter; \
171 #define FTRACE_ENTRY_REG(call, struct_name, etype, tstruct, print, filter,\ argument
194 #define FTRACE_ENTRY(call, struct_name, etype, tstruct, print, filter) \ argument
196 PARAMS(tstruct), PARAMS(print), filter, NULL)
Dtrace_uprobe.c274 static inline void init_trace_uprobe_filter(struct trace_uprobe_filter *filter) in init_trace_uprobe_filter() argument
276 rwlock_init(&filter->rwlock); in init_trace_uprobe_filter()
277 filter->nr_systemwide = 0; in init_trace_uprobe_filter()
278 INIT_LIST_HEAD(&filter->perf_events); in init_trace_uprobe_filter()
281 static inline bool uprobe_filter_is_empty(struct trace_uprobe_filter *filter) in uprobe_filter_is_empty() argument
283 return !filter->nr_systemwide && list_empty(&filter->perf_events); in uprobe_filter_is_empty()
1054 static int trace_uprobe_enable(struct trace_uprobe *tu, filter_func_t filter) in trace_uprobe_enable() argument
1058 tu->consumer.filter = filter; in trace_uprobe_enable()
1092 struct trace_event_file *file, filter_func_t filter) in probe_event_enable() argument
1131 ret = trace_uprobe_enable(tu, filter); in probe_event_enable()
[all …]
Dtrace.h71 #define FTRACE_ENTRY(name, struct_name, id, tstruct, print, filter) \ argument
78 #define FTRACE_ENTRY_DUP(name, name_struct, id, tstruct, printk, filter) argument
82 filter, regfn) \ argument
84 filter)
88 filter) \ argument
90 filter) __packed
1338 struct event_filter *filter; member
1413 !filter_match_preds(file->filter, entry))) { in __event_trigger_test_discard()
1557 extern void free_event_filter(struct event_filter *filter);
1603 struct event_filter __rcu *filter; member
[all …]
Dtrace_events_trigger.c61 struct event_filter *filter; in event_triggers_call() local
73 filter = rcu_dereference_sched(data->filter); in event_triggers_call()
74 if (filter && !filter_match_preds(filter, rec)) in event_triggers_call()
507 if (data->filter || event_command_post_trigger(data->cmd_ops) || in update_cond_flag()
730 struct event_filter *filter = NULL, *tmp; in set_trigger_filter() local
747 filter_str, false, &filter); in set_trigger_filter()
753 tmp = rcu_access_pointer(data->filter); in set_trigger_filter()
755 rcu_assign_pointer(data->filter, filter); in set_trigger_filter()
769 free_event_filter(rcu_access_pointer(data->filter)); in set_trigger_filter()
770 data->filter = NULL; in set_trigger_filter()
[all …]
Dtrace_events.c647 struct event_filter *filter = system->filter; in __put_system() local
655 if (filter) { in __put_system()
656 kfree(filter->filter_string); in __put_system()
657 kfree(filter); in __put_system()
724 free_event_filter(file->filter); in remove_event_file_dir()
1857 system->filter = NULL; in create_new_subsystem()
1859 system->filter = kzalloc(sizeof(struct event_filter), GFP_KERNEL); in create_new_subsystem()
1860 if (!system->filter) in create_new_subsystem()
1927 kfree(system->filter); in event_subsystem_dir()
1928 system->filter = NULL; in event_subsystem_dir()
[all …]
Dtrace_events_hist.c6252 RCU_INIT_POINTER(trigger_data->filter, NULL); in event_hist_trigger_func()
Dtrace.c330 !filter_match_preds(call->filter, rec)) { in call_filter_check_discard()
/kernel/events/
Dcore.c6884 struct perf_addr_filter *filter; in perf_event_addr_filters_exec() local
6892 list_for_each_entry(filter, &ifh->list, entry) { in perf_event_addr_filters_exec()
6893 if (filter->path.dentry) { in perf_event_addr_filters_exec()
7557 static bool perf_addr_filter_match(struct perf_addr_filter *filter, in perf_addr_filter_match() argument
7562 if (!filter->path.dentry) in perf_addr_filter_match()
7565 if (d_inode(filter->path.dentry) != file_inode(file)) in perf_addr_filter_match()
7568 if (filter->offset > offset + size) in perf_addr_filter_match()
7571 if (filter->offset + filter->size < offset) in perf_addr_filter_match()
7577 static bool perf_addr_filter_vma_adjust(struct perf_addr_filter *filter, in perf_addr_filter_vma_adjust() argument
7585 if (!perf_addr_filter_match(filter, file, off, vma_size)) in perf_addr_filter_vma_adjust()
[all …]
Duprobes.c886 return !uc->filter || uc->filter(uc, ctx, mm); in consumer_filter()
/kernel/debug/kdb/
DMakefile21 $(filter-out %/Makefile,$^) > $@#