Lines Matching refs:group_fd
32 static int event_open(int type, unsigned long config, int group_fd) in event_open() argument
47 attr.disabled = group_fd == -1 ? 1 : 0; in event_open()
49 return sys_perf_event_open(&attr, -1, 0, group_fd, 0); in event_open()
85 int group_fd, sibling_fd1, sibling_fd2; in run_test() local
87 group_fd = event_open(types[i], configs[i], -1); in run_test()
88 if (group_fd == -1) in run_test()
91 sibling_fd1 = event_open(types[j], configs[j], group_fd); in run_test()
93 close(group_fd); in run_test()
106 sibling_fd2 = event_open(types[k], configs_hw[k], group_fd); in run_test()
108 sibling_fd2 = event_open(types[k], configs[k], group_fd); in run_test()
111 close(group_fd); in run_test()
117 close(group_fd); in run_test()