Home
last modified time | relevance | path

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

/linux/tools/perf/util/
H A Dbpf_counter.c363 static bool bperf_attr_map_compatible(int attr_map_fd) in bperf_attr_map_compatible() argument
369 err = bpf_obj_get_info_by_fd(attr_map_fd, &map_info, &map_info_len); in bperf_attr_map_compatible()
457 static int bperf_reload_leader_program(struct evsel *evsel, int attr_map_fd, in bperf_reload_leader_program() argument
488 err = bpf_map_update_elem(attr_map_fd, &evsel->core.attr, entry, BPF_ANY); in bperf_reload_leader_program()
534 int attr_map_fd, diff_map_fd = -1, err; in bperf__load() local
550 attr_map_fd = bperf_lock_attr_map(target); in bperf__load()
551 if (attr_map_fd < 0) { in bperf__load()
556 err = bpf_map_lookup_elem(attr_map_fd, &evsel->core.attr, &entry); in bperf__load()
558 err = bpf_map_update_elem(attr_map_fd, &evsel->core.attr, &entry, BPF_ANY); in bperf__load()
565 bperf_reload_leader_program(evsel, attr_map_fd, &entry)) { in bperf__load()
[all …]