Searched refs:group_fd (Results 1 - 21 of 21) sorted by relevance

/linux-master/tools/perf/
H A Dperf-sys.h14 pid_t pid, int cpu, int group_fd,
18 group_fd, flags);
13 sys_perf_event_open(struct perf_event_attr *attr, pid_t pid, int cpu, int group_fd, unsigned long flags) argument
/linux-master/tools/perf/tests/
H A Devent_groups.c31 static int event_open(int type, unsigned long config, int group_fd) argument
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; local
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);
[all...]
H A Dattr.c15 * 'group_fd' values to allow checking for groups created.
69 int fd, int group_fd, unsigned long flags)
95 __WRITE_ASS(group_fd, "d", group_fd);
148 int fd, int group_fd, unsigned long flags)
152 if ((fd != -1) && store_event(attr, pid, cpu, fd, group_fd, flags)) {
68 store_event(struct perf_event_attr *attr, pid_t pid, struct perf_cpu cpu, int fd, int group_fd, unsigned long flags) argument
147 test_attr__open(struct perf_event_attr *attr, pid_t pid, struct perf_cpu cpu, int fd, int group_fd, unsigned long flags) argument
H A Dattr.py352 group_fd = event['group_fd'];
353 if group_fd == '-1':
357 if (ievent['fd'] == group_fd):
374 # resolve group_fd to event names
/linux-master/tools/testing/selftests/powerpc/pmu/ebb/
H A Dmulti_counter_test.c19 int i, group_fd; local
34 group_fd = -1;
40 FAIL_IF(event_open_with_group(&events[i], group_fd));
41 if (group_fd == -1)
42 group_fd = events[0].fd;
/linux-master/tools/testing/selftests/powerpc/pmu/
H A Devent.c18 int group_fd, unsigned long flags)
21 group_fd, flags);
69 int event_open_with_options(struct event *e, pid_t pid, int cpu, int group_fd) argument
71 e->fd = perf_event_open(&e->attr, pid, cpu, group_fd, 0);
80 int event_open_with_group(struct event *e, int group_fd) argument
82 return event_open_with_options(e, PERF_CURRENT_PID, PERF_NO_CPU, group_fd);
17 perf_event_open(struct perf_event_attr *attr, pid_t pid, int cpu, int group_fd, unsigned long flags) argument
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-master/tools/lib/perf/
H A Devsel.c81 pid_t pid, struct perf_cpu cpu, int group_fd,
84 return syscall(__NR_perf_event_open, attr, pid, cpu.cpu, group_fd, flags);
87 static int get_group_fd(struct perf_evsel *evsel, int cpu_map_idx, int thread, int *group_fd) argument
93 *group_fd = -1;
108 *group_fd = *fd;
149 int fd, group_fd, *evsel_fd; local
157 err = get_group_fd(evsel, idx, thread, &group_fd);
163 cpu, group_fd, 0);
80 sys_perf_event_open(struct perf_event_attr *attr, pid_t pid, struct perf_cpu cpu, int group_fd, unsigned long flags) argument
/linux-master/tools/testing/selftests/powerpc/
H A Dutils.c524 int cpu, int group_fd, unsigned long flags)
527 group_fd, flags);
547 unsigned long config, int group_fd)
554 fd = perf_event_open(&event_attr, 0, -1, group_fd, 0);
523 perf_event_open(struct perf_event_attr *hw_event, pid_t pid, int cpu, int group_fd, unsigned long flags) argument
546 perf_event_open_counter(unsigned int type, unsigned long config, int group_fd) argument
/linux-master/tools/perf/util/
H A Dutil.h89 int fd, int group_fd, unsigned long flags);
H A Devsel.c2032 int fd, group_fd; local
2040 group_fd = get_group_fd(evsel, idx, thread);
2042 if (group_fd == -2) {
2051 pr_debug2_peo("sys_perf_event_open: pid %d cpu %d group_fd %d flags %#lx",
2052 pid, perf_cpu_map__cpu(cpus, idx).cpu, group_fd, evsel->open_flags);
2056 group_fd, evsel->open_flags);
2073 fd, group_fd, evsel->open_flags);
H A Dpython.c1508 int fd, int group_fd, unsigned long flags)
1507 test_attr__open(struct perf_event_attr *attr, pid_t pid, struct perf_cpu cpu, int fd, int group_fd, unsigned long flags) argument
/linux-master/tools/testing/selftests/user_events/
H A Dperf_test.c33 int cpu, int group_fd, unsigned long flags)
35 return syscall(__NR_perf_event_open, pe, pid, cpu, group_fd, flags);
32 perf_event_open(struct perf_event_attr *pe, pid_t pid, int cpu, int group_fd, unsigned long flags) argument
/linux-master/tools/testing/selftests/powerpc/include/
H A Dutils.h66 unsigned long config, int group_fd);
/linux-master/tools/testing/selftests/resctrl/
H A Dresctrl.h150 int group_fd, unsigned long flags);
H A Dresctrlfs.c859 int group_fd, unsigned long flags)
864 group_fd, flags);
858 perf_event_open(struct perf_event_attr *hw_event, pid_t pid, int cpu, int group_fd, unsigned long flags) argument
/linux-master/tools/testing/selftests/powerpc/ptrace/
H A Dptrace-perf-hwbreak.c117 int group_fd, unsigned long flags)
119 return syscall(__NR_perf_event_open, attr, pid, cpu, group_fd, flags);
116 perf_event_open(struct perf_event_attr *attr, pid_t pid, int cpu, int group_fd, unsigned long flags) argument
/linux-master/tools/kvm/kvm_stat/
H A Dkvm_stat490 def _perf_event_open(self, attr, pid, cpu, group_fd, flags):
507 ctypes.c_int(group_fd), ctypes.c_long(flags))
/linux-master/tools/power/x86/turbostat/
H A Dturbostat.c1551 static long perf_event_open(struct perf_event_attr *hw_event, pid_t pid, int cpu, int group_fd, unsigned long flags) argument
1555 return syscall(__NR_perf_event_open, hw_event, pid, cpu, group_fd, flags);
1558 static long open_perf_counter(int cpu, unsigned int type, unsigned int config, int group_fd, __u64 read_format) argument
1575 const int fd = perf_event_open(&attr, pid, cpu, group_fd, flags);
/linux-master/include/linux/
H A Dsyscalls.h847 pid_t pid, int cpu, int group_fd, unsigned long flags);
/linux-master/kernel/events/
H A Dcore.c12413 * @group_fd: group leader event fd
12418 pid_t, pid, int, cpu, int, group_fd, unsigned long, flags)
12497 if (group_fd != -1) {
12498 err = perf_fget_light(group_fd, &group);

Completed in 480 milliseconds