Home
last modified time | relevance | path

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

/linux/tools/perf/tests/shell/attr/
H A Dtest-stat-default74 group_fd=-1
83 group_fd=11
94 group_fd=11
105 group_fd=11
116 group_fd=11
127 group_fd=11
138 group_fd=11
149 group_fd=11
160 group_fd=11
H A Dtest-stat-detailed-176 group_fd=-1
85 group_fd=11
96 group_fd=11
107 group_fd=11
118 group_fd=11
129 group_fd=11
140 group_fd=11
151 group_fd=11
162 group_fd=11
H A Dtest-stat-detailed-376 group_fd=-1
85 group_fd=11
96 group_fd=11
107 group_fd=11
118 group_fd=11
129 group_fd=11
140 group_fd=11
151 group_fd=11
162 group_fd=11
H A Dtest-stat-detailed-276 group_fd=-1
85 group_fd=11
96 group_fd=11
107 group_fd=11
118 group_fd=11
129 group_fd=11
140 group_fd=11
151 group_fd=11
162 group_fd=11
/linux/tools/testing/selftests/powerpc/pmu/ebb/
H A Dmulti_counter_test.c19 int i, group_fd; in multi_counter() local
34 group_fd = -1; in multi_counter()
40 FAIL_IF(event_open_with_group(&events[i], group_fd)); in multi_counter()
41 if (group_fd == -1) in multi_counter()
42 group_fd = events[0].fd; in multi_counter()
/linux/tools/testing/selftests/powerpc/pmu/
H A Devent.c18 int group_fd, unsigned long flags) in perf_event_open() argument
21 group_fd, flags); in perf_event_open()
69 int event_open_with_options(struct event *e, pid_t pid, int cpu, int group_fd) in event_open_with_options() argument
71 e->fd = perf_event_open(&e->attr, pid, cpu, group_fd, 0); in event_open_with_options()
80 int event_open_with_group(struct event *e, int group_fd) in event_open_with_group() argument
82 return event_open_with_options(e, PERF_CURRENT_PID, PERF_NO_CPU, group_fd); in event_open_with_group()
H A Devent.h36 int event_open_with_options(struct event *e, pid_t pid, int cpu, int group_fd);
37 int event_open_with_group(struct event *e, int group_fd);
/linux/tools/testing/selftests/vfio/lib/
H A Dvfio_pci_device.c212 device->group_fd = open(group_path, O_RDWR); in vfio_pci_group_setup()
213 VFIO_ASSERT_GE(device->group_fd, 0, "open(%s) failed\n", group_path); in vfio_pci_group_setup()
215 ioctl_assert(device->group_fd, VFIO_GROUP_GET_STATUS, &group_status); in vfio_pci_group_setup()
218 ioctl_assert(device->group_fd, VFIO_GROUP_SET_CONTAINER, &device->iommu->container_fd); in vfio_pci_group_setup()
239 device->fd = ioctl(device->group_fd, VFIO_GROUP_GET_DEVICE_FD, bdf); in vfio_pci_container_setup()
373 if (device->group_fd) in vfio_pci_device_cleanup()
374 VFIO_ASSERT_EQ(close(device->group_fd), 0); in vfio_pci_device_cleanup()
/linux/arch/um/drivers/
H A Dvfio_kern.c66 static int uml_vfio_set_container(int group_fd) in uml_vfio_set_container() argument
72 err = uml_vfio_user_set_container(uml_vfio_container.fd, group_fd); in uml_vfio_set_container()
82 uml_vfio_user_unset_container(uml_vfio_container.fd, group_fd); in uml_vfio_set_container()
88 static void uml_vfio_unset_container(int group_fd) in uml_vfio_unset_container() argument
92 uml_vfio_user_unset_container(uml_vfio_container.fd, group_fd); in uml_vfio_unset_container()
138 static int uml_vfio_release_group(int group_fd) in uml_vfio_release_group() argument
145 if (group->fd == group_fd) { in uml_vfio_release_group()
148 uml_vfio_unset_container(group_fd); in uml_vfio_release_group()
149 os_close_file(group_fd); in uml_vfio_release_group()
/linux/tools/perf/
H A Dperf-sys.h14 pid_t pid, int cpu, int group_fd, in sys_perf_event_open() argument
18 group_fd, flags); in sys_perf_event_open()
H A Ddesign.txt25 pid_t pid, int cpu, int group_fd,
269 The 'group_fd' parameter allows counter "groups" to be set up. A
271 is created first, with group_fd = -1 in the sys_perf_event_open call
273 subsequently, with group_fd giving the fd of the group leader.
274 (A single counter on its own is created with group_fd = -1 and is
/linux/tools/lib/perf/
H A Devsel.c94 pid_t pid, struct perf_cpu cpu, int group_fd, in sys_perf_event_open() argument
97 return syscall(__NR_perf_event_open, attr, pid, cpu.cpu, group_fd, flags); in sys_perf_event_open()
100 static int get_group_fd(struct perf_evsel *evsel, int cpu_map_idx, int thread, int *group_fd) in get_group_fd() argument
106 *group_fd = -1; in get_group_fd()
121 *group_fd = *fd; in get_group_fd()
162 int fd, group_fd, *evsel_fd; in perf_evsel__open() local
170 err = get_group_fd(evsel, idx, thread, &group_fd); in perf_evsel__open()
176 cpu, group_fd, 0); in perf_evsel__open()
/linux/tools/testing/selftests/powerpc/
H A Dutils.c524 int cpu, int group_fd, unsigned long flags) in perf_event_open() argument
527 group_fd, flags); in perf_event_open()
547 unsigned long config, int group_fd) in perf_event_open_counter() argument
554 fd = perf_event_open(&event_attr, 0, -1, group_fd, 0); in perf_event_open_counter()
/linux/tools/testing/selftests/user_events/
H A Dperf_test.c33 int cpu, int group_fd, unsigned long flags) in perf_event_open() argument
35 return syscall(__NR_perf_event_open, pe, pid, cpu, group_fd, flags); in perf_event_open()
/linux/tools/testing/selftests/powerpc/ptrace/
H A Dptrace-perf-hwbreak.c117 int group_fd, unsigned long flags) in perf_event_open() argument
119 return syscall(__NR_perf_event_open, attr, pid, cpu, group_fd, flags); in perf_event_open()
/linux/tools/testing/selftests/vfio/lib/include/libvfio/
H A Dvfio_pci_device.h21 int group_fd; member
/linux/tools/testing/selftests/resctrl/
H A Dresctrl.h183 int group_fd, unsigned long flags);
/linux/tools/testing/selftests/powerpc/include/
H A Dutils.h66 unsigned long config, int group_fd);
/linux/tools/perf/util/
H A Devsel.c115 int fd, int group_fd, unsigned long flags) in store_event() argument
139 __WRITE_ASS(group_fd, "d", group_fd); in store_event()
195 int fd, int group_fd, unsigned long flags) in test_attr__open() argument
199 if ((fd != -1) && store_event(attr, pid, cpu, fd, group_fd, flags)) { in test_attr__open()
2723 int fd, group_fd; in evsel__open_cpu() local
2731 group_fd = get_group_fd(evsel, idx, thread); in evsel__open_cpu()
2733 if (group_fd == -2) { in evsel__open_cpu()
2741 pid, cpu.cpu, group_fd, evsel->open_flags); in evsel__open_cpu()
2744 group_fd, evsel->open_flags); in evsel__open_cpu()
2760 fd, group_fd, evsel->open_flags); in evsel__open_cpu()
/linux/tools/perf/arch/x86/tests/
H A Damd-ibs-period.c230 int cpu, int group_fd, unsigned long flags) in perf_event_open() argument
232 return syscall(__NR_perf_event_open, attr, pid, cpu, group_fd, flags); in perf_event_open()
/linux/tools/perf/Documentation/
H A Dtopdown.txt71 int cpu, int group_fd, unsigned long flags)
73 return syscall(__NR_perf_event_open, attr, pid, cpu, group_fd, flags);
/linux/tools/kvm/kvm_stat/
H A Dkvm_stat490 def _perf_event_open(self, attr, pid, cpu, group_fd, flags): argument
507 ctypes.c_int(group_fd), ctypes.c_long(flags))
/linux/include/linux/
H A Dsyscalls.h872 pid_t pid, int cpu, int group_fd, unsigned long flags);
/linux/tools/power/x86/turbostat/
H A Dturbostat.c2446 static long perf_event_open(struct perf_event_attr *hw_event, pid_t pid, int cpu, int group_fd, uns… in perf_event_open() argument
2450 return syscall(__NR_perf_event_open, hw_event, pid, cpu, group_fd, flags); in perf_event_open()
2453 static long open_perf_counter(int cpu, unsigned int type, unsigned int config, int group_fd, __u64 … in open_perf_counter() argument
2470 const int fd = perf_event_open(&attr, pid, cpu, group_fd, flags); in open_perf_counter()
/linux/kernel/events/
H A Dcore.c13458 pid_t, pid, int, cpu, int, group_fd, unsigned long, flags) in SYSCALL_DEFINE5() argument
13541 CLASS(fd, group)(group_fd); // group_fd == -1 => empty in SYSCALL_DEFINE5()
13542 if (group_fd != -1) { in SYSCALL_DEFINE5()