Home
last modified time | relevance | path

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

/tools/lib/perf/
A Devsel.c59 #define FD(_evsel, _cpu_map_idx, _thread) \ macro
74 int *fd = FD(evsel, idx, thread); in perf_evsel__alloc_fd()
117 fd = FD(leader, cpu_map_idx, thread); in get_group_fd()
164 evsel_fd = FD(evsel, idx, thread); in perf_evsel__open()
198 int *fd = FD(evsel, cpu_map_idx, thread); in perf_evsel__close_fd_cpu()
245 int *fd = FD(evsel, idx, thread); in perf_evsel__munmap()
274 int *fd = FD(evsel, idx, thread); in perf_evsel__mmap()
297 int *fd = FD(evsel, cpu_map_idx, thread); in perf_evsel__mmap_base()
338 int *fd = FD(evsel, cpu_map_idx, thread); in perf_evsel__read_group()
404 int *fd = FD(evsel, cpu_map_idx, thread); in perf_evsel__read()
[all …]
A Devlist.c493 #define FD(e, x, y) (*(int *) xyarray__entry(e->fd, x, y)) macro
545 fd = FD(evsel, cpu, thread); in mmap_per_evsel()
/tools/testing/selftests/net/packetdrill/
A Dtcp_zerocopy_epoll_oneshot.pkt4 // This is a test to confirm that EPOLLERR is only fired once for an FD when
9 // with MSG_ZEROCOPY. confirm that EPOLLERR is not fired. Rearm the FD and
49 // rearm the FD and verify the EPOLLERR is fired again.
/tools/perf/util/
A Dtool_pmu.c217 #define FD(e, x, y) (*(int *)xyarray__entry(e->core.fd, x, y)) macro
267 FD(evsel, idx, thread) = fd; in evsel__tool_pmu_open()
297 if (FD(evsel, idx, thread) >= 0) in evsel__tool_pmu_open()
298 close(FD(evsel, idx, thread)); in evsel__tool_pmu_open()
299 FD(evsel, idx, thread) = -1; in evsel__tool_pmu_open()
494 fd = FD(evsel, cpu_map_idx, thread); in evsel__tool_pmu_read()
A Dbpf_counter_cgroup.c42 #define FD(evt, cpu) (*(int *)xyarray__entry(evt->core.fd, cpu, 0)) macro
98 FD(cgrp_switch, i)); in bperf_load_program()
124 int fd = FD(evsel, j); in bperf_load_program()
A Dhwmon_pmu.c757 #define FD(e, x, y) (*(int *)xyarray__entry(e->core.fd, x, y)) macro
783 FD(evsel, idx, thread) = fd; in evsel__hwmon_pmu_open()
798 if (FD(evsel, idx, thread) >= 0) in evsel__hwmon_pmu_open()
799 close(FD(evsel, idx, thread)); in evsel__hwmon_pmu_open()
800 FD(evsel, idx, thread) = -1; in evsel__hwmon_pmu_open()
819 fd = FD(evsel, cpu_map_idx, thread); in evsel__hwmon_pmu_read()
A Dbpf-filter.c67 #define FD(e, x, y) (*(int *)xyarray__entry(e->core.fd, x, y)) macro
299 int ret = ioctl(FD(evsel, x, y), PERF_EVENT_IOC_ID, &id); in create_event_hash()
493 ret = ioctl(FD(evsel, x, y), PERF_EVENT_IOC_SET_BPF, fd); in perf_bpf_filter__prepare()
527 link = bpf_program__attach_perf_event_opts(prog, FD(evsel, x, y), in perf_bpf_filter__prepare()
A Devsel.c253 #define FD(e, x, y) (*(int *)xyarray__entry(e->core.fd, x, y)) macro
1851 if (FD(leader, cpu_map_idx, thread) < 0) in evsel__read_group()
1854 if (readn(FD(leader, cpu_map_idx, thread), data, size) <= 0) in evsel__read_group()
1903 if (FD(evsel, cpu_map_idx, thread) < 0) in __evsel__read_on_cpu()
1957 fd = FD(leader, cpu_map_idx, thread); in get_group_fd()
1971 FD(pos, cpu, thread) = FD(pos, cpu, thread + 1); in evsel__remove_fd()
2643 FD(evsel, idx, thread) = fd; in evsel__open_cpu()
2724 if (FD(evsel, idx, thread) >= 0) in evsel__open_cpu()
2725 close(FD(evsel, idx, thread)); in evsel__open_cpu()
2726 FD(evsel, idx, thread) = -1; in evsel__open_cpu()
[all …]
A Devlist.c73 #define FD(e, x, y) (*(int *)xyarray__entry(e->core.fd, x, y)) macro
/tools/testing/selftests/bpf/prog_tests/
A Dfd_array.c48 #define Close(FD) do { \ argument
49 if ((FD) >= 0) { \
50 close(FD); \
51 FD = -1; \
/tools/perf/trace/beauty/
A Dfutex_op.c40 P_FUTEX_OP(FD); arg->mask |= SCF_VAL3|SCF_UADDR2|SCF_TIMEOUT; break; in syscall_arg__scnprintf_futex_op()
/tools/bpf/bpftool/Documentation/
A Dbpftool-gen.rst378 printf("sys_enter prog FD: %d\n",
400 sys_enter prog FD: 8

Completed in 26 milliseconds