Home
last modified time | relevance | path

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

/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_progs.c755 int i, j, bytes, efd, err, prog_fd[num_progs], pmu_fd[num_progs]; in test_tp_attach_query() local
799 pmu_fd[i] = syscall(__NR_perf_event_open, &attr, -1 /* pid */, in test_tp_attach_query()
802 if (CHECK(pmu_fd[i] < 0, "perf_event_open", "err %d errno %d\n", in test_tp_attach_query()
803 pmu_fd[i], errno)) in test_tp_attach_query()
805 err = ioctl(pmu_fd[i], PERF_EVENT_IOC_ENABLE, 0); in test_tp_attach_query()
813 err = ioctl(pmu_fd[i], PERF_EVENT_IOC_QUERY_BPF, query); in test_tp_attach_query()
821 err = ioctl(pmu_fd[i], PERF_EVENT_IOC_SET_BPF, prog_fd[i]); in test_tp_attach_query()
829 err = ioctl(pmu_fd[i], PERF_EVENT_IOC_QUERY_BPF, query); in test_tp_attach_query()
838 err = ioctl(pmu_fd[i], PERF_EVENT_IOC_QUERY_BPF, in test_tp_attach_query()
847 err = ioctl(pmu_fd[i], PERF_EVENT_IOC_QUERY_BPF, query); in test_tp_attach_query()
[all …]
Dget_cgroup_id_user.c52 int err, bytes, efd, prog_fd, pmu_fd; in main() local
112 pmu_fd = syscall(__NR_perf_event_open, &attr, getpid(), -1, -1, 0); in main()
113 if (CHECK(pmu_fd < 0, "perf_event_open", "err %d errno %d\n", pmu_fd, in main()
117 err = ioctl(pmu_fd, PERF_EVENT_IOC_ENABLE, 0); in main()
122 err = ioctl(pmu_fd, PERF_EVENT_IOC_SET_BPF, prog_fd); in main()
143 close(pmu_fd); in main()