Home
last modified time | relevance | path

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

/kernel/trace/
Dtrace_events_filter.c533 int filter_match_preds(struct event_filter *filter, void *rec) in filter_match_preds() argument
545 if (!filter) in filter_match_preds()
548 n_preds = filter->n_preds; in filter_match_preds()
555 root = rcu_dereference_sched(filter->root); in filter_match_preds()
559 data.preds = preds = rcu_dereference_sched(filter->preds); in filter_match_preds()
572 static void remove_filter_string(struct event_filter *filter) in remove_filter_string() argument
574 if (!filter) in remove_filter_string()
577 kfree(filter->filter_string); in remove_filter_string()
578 filter->filter_string = NULL; in remove_filter_string()
581 static int replace_filter_string(struct event_filter *filter, in replace_filter_string() argument
[all …]
Dtrace_uprobe.c56 struct trace_uprobe_filter filter; member
82 static inline void init_trace_uprobe_filter(struct trace_uprobe_filter *filter) in init_trace_uprobe_filter() argument
84 rwlock_init(&filter->rwlock); in init_trace_uprobe_filter()
85 filter->nr_systemwide = 0; in init_trace_uprobe_filter()
86 INIT_LIST_HEAD(&filter->perf_events); in init_trace_uprobe_filter()
89 static inline bool uprobe_filter_is_empty(struct trace_uprobe_filter *filter) in uprobe_filter_is_empty() argument
91 return !filter->nr_systemwide && list_empty(&filter->perf_events); in uprobe_filter_is_empty()
130 init_trace_uprobe_filter(&tu->filter); in alloc_trace_uprobe()
608 probe_event_enable(struct trace_uprobe *tu, int flag, filter_func_t filter) in probe_event_enable() argument
615 WARN_ON(!uprobe_filter_is_empty(&tu->filter)); in probe_event_enable()
[all …]
Dtrace_export.c27 filter, regfn) \ argument
29 filter)
57 #define FTRACE_ENTRY(name, struct_name, id, tstruct, print, filter) \ argument
70 #define FTRACE_ENTRY_DUP(name, struct_name, id, tstruct, print, filter) \ argument
72 filter)
131 #define FTRACE_ENTRY(name, struct_name, id, tstruct, print, filter) \ argument
137 int filter_type = filter; \
168 #define FTRACE_ENTRY_REG(call, struct_name, etype, tstruct, print, filter,\ argument
189 #define FTRACE_ENTRY(call, struct_name, etype, tstruct, print, filter) \ argument
191 PARAMS(tstruct), PARAMS(print), filter, NULL)
Dtrace.h65 #define FTRACE_ENTRY(name, struct_name, id, tstruct, print, filter) \ argument
75 #define FTRACE_ENTRY_DUP(name, name_struct, id, tstruct, printk, filter) argument
79 filter, regfn) \ argument
81 filter)
931 struct event_filter *filter; member
1014 !filter_match_preds(call->filter, rec)) { in filter_check_discard()
1049 #define FTRACE_ENTRY(call, struct_name, id, tstruct, print, filter) \ argument
1053 #define FTRACE_ENTRY_DUP(call, struct_name, id, tstruct, print, filter) \ argument
1055 filter)
Dtrace_events.c350 struct event_filter *filter = system->filter; in __put_system() local
358 if (filter) { in __put_system()
359 kfree(filter->filter_string); in __put_system()
360 kfree(filter); in __put_system()
1284 system->filter = NULL; in create_new_subsystem()
1286 system->filter = kzalloc(sizeof(struct event_filter), GFP_KERNEL); in create_new_subsystem()
1287 if (!system->filter) in create_new_subsystem()
1353 kfree(system->filter); in event_subsystem_dir()
1354 system->filter = NULL; in event_subsystem_dir()
1380 const struct file_operations *filter, in event_create_dir() argument
[all …]
/kernel/
Dseccomp.c128 static int seccomp_check_filter(struct sock_filter *filter, unsigned int flen) in seccomp_check_filter() argument
132 struct sock_filter *ftest = &filter[pc]; in seccomp_check_filter()
206 struct seccomp_filter *f = ACCESS_ONCE(current->seccomp.filter); in seccomp_run_filters()
295 is_ancestor(thread->seccomp.filter, in seccomp_can_sync_threads()
296 caller->seccomp.filter))) in seccomp_can_sync_threads()
340 smp_store_release(&thread->seccomp.filter, in seccomp_sync_threads()
341 caller->seccomp.filter); in seccomp_sync_threads()
371 struct seccomp_filter *filter; in seccomp_prepare_filter() local
380 for (filter = current->seccomp.filter; filter; filter = filter->prev) in seccomp_prepare_filter()
381 total_insns += filter->len + 4; /* include a 4 instr penalty */ in seccomp_prepare_filter()
[all …]
DMakefile138 cmd_bc = bc -q $(filter-out FORCE,$^) > $@
Dparams.c909 .filter = uevent_filter,
Dfork.c337 tsk->seccomp.filter = NULL; in dup_task_struct()
/kernel/debug/kdb/
DMakefile22 $(filter-out %/Makefile,$^) > $@#
/kernel/events/
Duprobes.c595 return !uc->filter || uc->filter(uc, ctx, mm); in consumer_filter()
Dcore.c5619 if (likely(!event->filter) || filter_match_preds(event->filter, record)) in perf_tp_filter_match()