Home
last modified time | relevance | path

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

/kernel/trace/
Dbpf_trace.c1740 struct bpf_prog_array *old_array; in perf_event_attach_bpf_prog() local
1758 old_array = bpf_event_rcu_dereference(event->tp_event->prog_array); in perf_event_attach_bpf_prog()
1759 if (old_array && in perf_event_attach_bpf_prog()
1760 bpf_prog_array_length(old_array) >= BPF_TRACE_MAX_PROGS) { in perf_event_attach_bpf_prog()
1765 ret = bpf_prog_array_copy(old_array, NULL, prog, bpf_cookie, &new_array); in perf_event_attach_bpf_prog()
1773 bpf_prog_array_free(old_array); in perf_event_attach_bpf_prog()
1782 struct bpf_prog_array *old_array; in perf_event_detach_bpf_prog() local
1791 old_array = bpf_event_rcu_dereference(event->tp_event->prog_array); in perf_event_detach_bpf_prog()
1792 ret = bpf_prog_array_copy(old_array, event->prog, NULL, 0, &new_array); in perf_event_detach_bpf_prog()
1796 bpf_prog_array_delete_safe(old_array, event->prog); in perf_event_detach_bpf_prog()
[all …]
/kernel/bpf/
Dnet_namespace.c106 struct bpf_prog_array *old_array, *new_array; in bpf_netns_link_release() local
133 old_array = rcu_dereference_protected(net->bpf.run_array[type], in bpf_netns_link_release()
137 WARN_ON(bpf_prog_array_delete_safe_at(old_array, idx)); in bpf_netns_link_release()
142 bpf_prog_array_free(old_array); in bpf_netns_link_release()
Dcgroup.c112 struct bpf_prog_array *old_array; in cgroup_bpf_release() local
133 old_array = rcu_dereference_protected( in cgroup_bpf_release()
136 bpf_prog_array_free(old_array); in cgroup_bpf_release()
273 struct bpf_prog_array *old_array) in activate_effective_progs() argument
275 old_array = rcu_replace_pointer(cgrp->bpf.effective[atype], old_array, in activate_effective_progs()
280 bpf_prog_array_free(old_array); in activate_effective_progs()
Dcore.c2135 int bpf_prog_array_copy(struct bpf_prog_array *old_array, in bpf_prog_array_copy() argument
2149 if (old_array) { in bpf_prog_array_copy()
2150 existing = old_array->items; in bpf_prog_array_copy()
2185 existing = old_array->items; in bpf_prog_array_copy()