/linux-4.4.14/tools/testing/selftests/powerpc/pmu/ebb/ |
H A D | multi_counter_test.c | 19 int i, group_fd; multi_counter() local 34 group_fd = -1; multi_counter() 40 FAIL_IF(event_open_with_group(&events[i], group_fd)); multi_counter() 41 if (group_fd == -1) multi_counter() 42 group_fd = events[0].fd; multi_counter()
|
/linux-4.4.14/tools/testing/selftests/powerpc/pmu/ |
H A D | event.c | 17 int group_fd, unsigned long flags) perf_event_open() 20 group_fd, flags); perf_event_open() 52 int event_open_with_options(struct event *e, pid_t pid, int cpu, int group_fd) event_open_with_options() argument 54 e->fd = perf_event_open(&e->attr, pid, cpu, group_fd, 0); event_open_with_options() 63 int event_open_with_group(struct event *e, int group_fd) event_open_with_group() argument 65 return event_open_with_options(e, PERF_CURRENT_PID, PERF_NO_CPU, group_fd); event_open_with_group() 16 perf_event_open(struct perf_event_attr *attr, pid_t pid, int cpu, int group_fd, unsigned long flags) perf_event_open() argument
|
H A D | event.h | 30 int event_open_with_options(struct event *e, pid_t pid, int cpu, int group_fd); 31 int event_open_with_group(struct event *e, int group_fd);
|
/linux-4.4.14/tools/perf/ |
H A D | perf-sys.h | 104 pid_t pid, int cpu, int group_fd, sys_perf_event_open() 110 group_fd, flags); sys_perf_event_open() 114 test_attr__open(attr, pid, cpu, fd, group_fd, flags); sys_perf_event_open() 103 sys_perf_event_open(struct perf_event_attr *attr, pid_t pid, int cpu, int group_fd, unsigned long flags) sys_perf_event_open() argument
|
H A D | perf.h | 12 int fd, int group_fd, unsigned long flags);
|
H A D | builtin-trace.c | 1190 [3] = SCA_FD, /* group_fd */
|
/linux-4.4.14/tools/perf/tests/ |
H A D | attr.c | 14 * 'group_fd' values to allow checking for groups created. 61 int fd, int group_fd, unsigned long flags) store_event() 84 __WRITE_ASS(group_fd, "d", group_fd); store_event() 131 int fd, int group_fd, unsigned long flags) test_attr__open() 135 if (store_event(attr, pid, cpu, fd, group_fd, flags)) test_attr__open() 60 store_event(struct perf_event_attr *attr, pid_t pid, int cpu, int fd, int group_fd, unsigned long flags) store_event() argument 130 test_attr__open(struct perf_event_attr *attr, pid_t pid, int cpu, int fd, int group_fd, unsigned long flags) test_attr__open() argument
|
H A D | attr.py | 227 group_fd = event['group_fd']; 228 if group_fd == '-1': 232 if (ievent['fd'] == group_fd): 249 # resolve group_fd to event names
|
/linux-4.4.14/samples/bpf/ |
H A D | tracex6_user.c | 33 pmu_fd[i] = perf_event_open(&attr_insn_pmu, -1/*pid*/, i/*cpu*/, -1/*group_fd*/, 0); test_bpf_perf_event()
|
H A D | libbpf.c | 150 int group_fd, unsigned long flags) perf_event_open() 153 group_fd, flags); perf_event_open() 149 perf_event_open(struct perf_event_attr *attr, int pid, int cpu, int group_fd, unsigned long flags) perf_event_open() argument
|
H A D | trace_output_user.c | 162 pmu_fd = perf_event_open(&attr, -1/*pid*/, 0/*cpu*/, -1/*group_fd*/, 0); test_bpf_perf_event()
|
H A D | libbpf.h | 200 int group_fd, unsigned long flags);
|
H A D | bpf_load.c | 139 efd = perf_event_open(&attr, -1/*pid*/, 0/*cpu*/, -1/*group_fd*/, 0); load_and_attach()
|
/linux-4.4.14/tools/perf/util/ |
H A D | evsel.c | 1340 int group_fd; __perf_evsel__open() local 1345 group_fd = get_group_fd(evsel, cpu, thread); __perf_evsel__open() 1347 pr_debug2("sys_perf_event_open: pid %d cpu %d group_fd %d flags %#lx\n", __perf_evsel__open() 1348 pid, cpus->map[cpu], group_fd, flags); __perf_evsel__open() 1353 group_fd, flags); __perf_evsel__open()
|
H A D | python.c | 1131 int fd, int group_fd, unsigned long flags) test_attr__open() 1130 test_attr__open(struct perf_event_attr *attr, pid_t pid, int cpu, int fd, int group_fd, unsigned long flags) test_attr__open() argument
|
/linux-4.4.14/arch/s390/kernel/ |
H A D | compat_wrapper.c | 157 COMPAT_SYSCALL_WRAP5(perf_event_open, struct perf_event_attr __user *, attr_uptr, pid_t, pid, int, cpu, int, group_fd, unsigned long, flags);
|
/linux-4.4.14/drivers/vfio/pci/ |
H A D | vfio_pci.c | 740 * For each group_fd, get the group through the vfio external vfio_pci_ioctl()
|
/linux-4.4.14/include/linux/ |
H A D | syscalls.h | 849 pid_t pid, int cpu, int group_fd, unsigned long flags);
|
/linux-4.4.14/kernel/events/ |
H A D | core.c | 8238 * @group_fd: group leader event fd 8242 pid_t, pid, int, cpu, int, group_fd, unsigned long, flags) SYSCALL_DEFINE5() 8295 if (group_fd != -1) { SYSCALL_DEFINE5() 8296 err = perf_fget_light(group_fd, &group); SYSCALL_DEFINE5()
|