/linux-6.6.21/tools/perf/tests/ |
D | event_groups.c | 31 static int event_open(int type, unsigned long config, int group_fd) in event_open() argument 46 attr.disabled = group_fd == -1 ? 1 : 0; in event_open() 48 return sys_perf_event_open(&attr, -1, 0, group_fd, 0); in event_open() 84 int group_fd, sibling_fd1, sibling_fd2; in run_test() local 86 group_fd = event_open(types[i], configs[i], -1); in run_test() 87 if (group_fd == -1) in run_test() 90 sibling_fd1 = event_open(types[j], configs[j], group_fd); in run_test() 92 close(group_fd); in run_test() 96 sibling_fd2 = event_open(types[k], configs[k], group_fd); in run_test() 99 close(group_fd); in run_test() [all …]
|
D | attr.c | 69 int fd, int group_fd, unsigned long flags) in store_event() argument 95 __WRITE_ASS(group_fd, "d", group_fd); in store_event() 148 int fd, int group_fd, unsigned long flags) in test_attr__open() argument 152 if ((fd != -1) && store_event(attr, pid, cpu, fd, group_fd, flags)) { in test_attr__open()
|
D | attr.py | 352 group_fd = event['group_fd']; 353 if group_fd == '-1': 357 if (ievent['fd'] == group_fd):
|
/linux-6.6.21/tools/testing/selftests/powerpc/pmu/ebb/ |
D | multi_counter_test.c | 19 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-6.6.21/tools/testing/selftests/powerpc/pmu/ |
D | event.c | 18 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()
|
D | event.h | 36 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-6.6.21/tools/perf/tests/attr/ |
D | test-stat-default | 74 group_fd=-1 83 group_fd=11 94 group_fd=11 105 group_fd=11 116 group_fd=11
|
D | test-stat-detailed-1 | 76 group_fd=-1 85 group_fd=11 96 group_fd=11 107 group_fd=11 118 group_fd=11
|
D | test-stat-detailed-2 | 76 group_fd=-1 85 group_fd=11 96 group_fd=11 107 group_fd=11 118 group_fd=11
|
D | test-stat-detailed-3 | 76 group_fd=-1 85 group_fd=11 96 group_fd=11 107 group_fd=11 118 group_fd=11
|
D | test-stat-group1 | 8 group_fd=-1 13 group_fd=1
|
D | test-record-group1 | 8 group_fd=-1 14 group_fd=1
|
D | test-record-group2 | 8 group_fd=-1 18 group_fd=1
|
D | test-record-group-sampling | 8 group_fd=-1 15 group_fd=1
|
D | base-record-spe | 3 group_fd=-1
|
D | base-record | 3 group_fd=-1
|
D | base-stat | 3 group_fd=-1
|
D | system-wide-dummy | 5 group_fd=-1
|
/linux-6.6.21/tools/perf/ |
D | perf-sys.h | 14 pid_t pid, int cpu, int group_fd, in sys_perf_event_open() argument 18 group_fd, flags); in sys_perf_event_open()
|
/linux-6.6.21/tools/lib/perf/ |
D | evsel.c | 81 pid_t pid, struct perf_cpu cpu, int group_fd, in sys_perf_event_open() argument 84 return syscall(__NR_perf_event_open, attr, pid, cpu.cpu, group_fd, flags); in sys_perf_event_open() 87 static int get_group_fd(struct perf_evsel *evsel, int cpu_map_idx, int thread, int *group_fd) in get_group_fd() argument 93 *group_fd = -1; in get_group_fd() 108 *group_fd = *fd; in get_group_fd() 149 int fd, group_fd, *evsel_fd; in perf_evsel__open() local 157 err = get_group_fd(evsel, idx, thread, &group_fd); in perf_evsel__open() 163 cpu, group_fd, 0); in perf_evsel__open()
|
/linux-6.6.21/tools/testing/selftests/powerpc/ |
D | utils.c | 524 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-6.6.21/tools/testing/selftests/user_events/ |
D | perf_test.c | 33 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-6.6.21/tools/perf/util/ |
D | util.h | 81 int fd, int group_fd, unsigned long flags);
|
/linux-6.6.21/tools/testing/selftests/resctrl/ |
D | resctrl.h | 95 int group_fd, unsigned long flags);
|
/linux-6.6.21/tools/testing/selftests/powerpc/ptrace/ |
D | ptrace-perf-hwbreak.c | 117 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()
|