Home
last modified time | relevance | path

Searched refs:old_array (Results 1 – 4 of 4) sorted by relevance

/kernel/bpf/
Dnet_namespace.c107 struct bpf_prog_array *old_array, *new_array; in bpf_netns_link_release() local
134 old_array = rcu_dereference_protected(net->bpf.run_array[type], in bpf_netns_link_release()
138 WARN_ON(bpf_prog_array_delete_safe_at(old_array, idx)); in bpf_netns_link_release()
143 bpf_prog_array_free(old_array); in bpf_netns_link_release()
Dcgroup.c279 struct bpf_prog_array *old_array; in cgroup_bpf_release() local
307 old_array = rcu_dereference_protected( in cgroup_bpf_release()
310 bpf_prog_array_free(old_array); in cgroup_bpf_release()
447 struct bpf_prog_array *old_array) in activate_effective_progs() argument
449 old_array = rcu_replace_pointer(cgrp->bpf.effective[atype], old_array, in activate_effective_progs()
454 bpf_prog_array_free(old_array); in activate_effective_progs()
Dcore.c2403 int bpf_prog_array_copy(struct bpf_prog_array *old_array, in bpf_prog_array_copy() argument
2417 if (old_array) { in bpf_prog_array_copy()
2418 existing = old_array->items; in bpf_prog_array_copy()
2453 existing = old_array->items; in bpf_prog_array_copy()
/kernel/trace/
Dbpf_trace.c2129 struct bpf_prog_array *old_array; in perf_event_attach_bpf_prog() local
2147 old_array = bpf_event_rcu_dereference(event->tp_event->prog_array); in perf_event_attach_bpf_prog()
2148 if (old_array && in perf_event_attach_bpf_prog()
2149 bpf_prog_array_length(old_array) >= BPF_TRACE_MAX_PROGS) { in perf_event_attach_bpf_prog()
2154 ret = bpf_prog_array_copy(old_array, NULL, prog, bpf_cookie, &new_array); in perf_event_attach_bpf_prog()
2162 bpf_prog_array_free_sleepable(old_array); in perf_event_attach_bpf_prog()
2171 struct bpf_prog_array *old_array; in perf_event_detach_bpf_prog() local
2180 old_array = bpf_event_rcu_dereference(event->tp_event->prog_array); in perf_event_detach_bpf_prog()
2181 ret = bpf_prog_array_copy(old_array, event->prog, NULL, 0, &new_array); in perf_event_detach_bpf_prog()
2185 bpf_prog_array_delete_safe(old_array, event->prog); in perf_event_detach_bpf_prog()
[all …]