Lines Matching refs:group_fd
31 static int event_open(int type, unsigned long config, int group_fd)
46 attr.disabled = group_fd == -1 ? 1 : 0;
48 return sys_perf_event_open(&attr, -1, 0, group_fd, 0);
84 int group_fd, sibling_fd1, sibling_fd2;
86 group_fd = event_open(types[i], configs[i], -1);
87 if (group_fd == -1)
90 sibling_fd1 = event_open(types[j], configs[j], group_fd);
92 close(group_fd);
96 sibling_fd2 = event_open(types[k], configs[k], group_fd);
99 close(group_fd);
105 close(group_fd);