Searched refs:attr_map_fd (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/tools/perf/util/ |
H A D | bpf_counter.c | 301 static bool bperf_attr_map_compatible(int attr_map_fd) in bperf_attr_map_compatible() argument 307 err = bpf_obj_get_info_by_fd(attr_map_fd, &map_info, &map_info_len); in bperf_attr_map_compatible() 395 static int bperf_reload_leader_program(struct evsel *evsel, int attr_map_fd, in bperf_reload_leader_program() argument 425 err = bpf_map_update_elem(attr_map_fd, &evsel->core.attr, entry, BPF_ANY); in bperf_reload_leader_program() 447 int attr_map_fd, diff_map_fd = -1, err; in bperf__load() local 469 attr_map_fd = bperf_lock_attr_map(target); in bperf__load() 470 if (attr_map_fd < 0) { in bperf__load() 475 err = bpf_map_lookup_elem(attr_map_fd, &evsel->core.attr, &entry); in bperf__load() 484 bperf_reload_leader_program(evsel, attr_map_fd, &entry)) { in bperf__load() 568 flock(attr_map_fd, LOCK_UN); in bperf__load() [all …]
|