Searched refs:perf_fd (Results 1 – 4 of 4) sorted by relevance
/openbmc/linux/tools/testing/selftests/powerpc/ptrace/ |
H A D | ptrace-perf-hwbreak.c | 143 static int perf_read_counter(int perf_fd, u64 *count) in perf_read_counter() argument 149 ssize_t len = read(perf_fd, count, sizeof(*count)); in perf_read_counter() 229 int perf_fd; /* File descriptor of perf performance counter */ in same_watch_addr_test() local 251 perf_fd = perf_watchpoint_open(pid, &value, sizeof(value)); in same_watch_addr_test() 252 FAIL_IF_MSG(perf_fd < 0, "Failed to open perf performance counter"); in same_watch_addr_test() 271 FAIL_IF_MSG(perf_read_counter(perf_fd, &perf_count), "Failed to read perf counter"); in same_watch_addr_test() 281 FAIL_IF_MSG(perf_read_counter(perf_fd, &perf_count), "Failed to read perf counter"); in same_watch_addr_test() 299 FAIL_IF_MSG(perf_read_counter(perf_fd, &perf_count), "Failed to read perf counter"); in same_watch_addr_test() 309 FAIL_IF_MSG(perf_read_counter(perf_fd, &perf_count), "Failed to read perf counter"); in same_watch_addr_test() 324 FAIL_IF_MSG(perf_read_counter(perf_fd, &perf_count), "Failed to read perf counter"); in same_watch_addr_test() [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | unpriv_bpf_disabled.c | 59 __u32 prog_id, int prog_fd, int perf_fd, in test_unpriv_bpf_disabled_positive() argument 128 link_fd = bpf_link_create(bpf_program__fd(skel->progs.handle_perf_event), perf_fd, in test_unpriv_bpf_disabled_positive() 142 __u32 prog_id, int prog_fd, int perf_fd, in test_unpriv_bpf_disabled_negative() argument 236 int prog_fd, perf_fd = -1, i, ret; in test_unpriv_bpf_disabled() local 286 perf_fd = syscall(__NR_perf_event_open, &attr, -1, 0, -1, PERF_FLAG_FD_CLOEXEC); in test_unpriv_bpf_disabled() 287 if (!ASSERT_GE(perf_fd, 0, "perf_fd")) in test_unpriv_bpf_disabled() 297 test_unpriv_bpf_disabled_positive(skel, prog_id, prog_fd, perf_fd, map_paths, in test_unpriv_bpf_disabled() 301 test_unpriv_bpf_disabled_negative(skel, prog_id, prog_fd, perf_fd, map_paths, in test_unpriv_bpf_disabled() 305 close(perf_fd); in test_unpriv_bpf_disabled()
|
H A D | perf_branches.c | 60 static void test_perf_branches_common(int perf_fd, in test_perf_branches_common() argument 76 link = bpf_program__attach_perf_event(skel->progs.perf_branches, perf_fd); in test_perf_branches_common()
|
/openbmc/linux/tools/perf/Documentation/ |
H A D | topdown.txt | 286 ioctl(perf_fd, PERF_EVENT_IOC_RESET, 0);
|