Home
last modified time | relevance | path

Searched refs:group_fd (Results 1 – 23 of 23) sorted by relevance

/linux-4.1.27/tools/testing/selftests/powerpc/pmu/ebb/
Dmulti_counter_test.c19 int i, group_fd; in multi_counter() local
32 group_fd = -1; in multi_counter()
38 FAIL_IF(event_open_with_group(&events[i], group_fd)); in multi_counter()
39 if (group_fd == -1) in multi_counter()
40 group_fd = events[0].fd; in multi_counter()
/linux-4.1.27/tools/testing/selftests/powerpc/pmu/
Devent.c17 int group_fd, unsigned long flags) in perf_event_open() argument
20 group_fd, flags); in perf_event_open()
52 int event_open_with_options(struct event *e, pid_t pid, int cpu, int group_fd) in event_open_with_options() argument
54 e->fd = perf_event_open(&e->attr, pid, cpu, group_fd, 0); in event_open_with_options()
63 int event_open_with_group(struct event *e, int group_fd) in event_open_with_group() argument
65 return event_open_with_options(e, PERF_CURRENT_PID, PERF_NO_CPU, group_fd); in event_open_with_group()
Devent.h30 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.1.27/tools/perf/tests/
Dattr.c61 int fd, int group_fd, unsigned long flags) in store_event() argument
84 __WRITE_ASS(group_fd, "d", group_fd); in store_event()
131 int fd, int group_fd, unsigned long flags) in test_attr__open() argument
135 if (store_event(attr, pid, cpu, fd, group_fd, flags)) in test_attr__open()
Dattr.py227 group_fd = event['group_fd'];
228 if group_fd == '-1':
232 if (ievent['fd'] == group_fd):
/linux-4.1.27/tools/perf/tests/attr/
Dtest-stat-group18 group_fd=-1
12 group_fd=1
Dtest-stat-group8 group_fd=-1
12 group_fd=1
Dtest-record-group7 group_fd=-1
13 group_fd=1
Dtest-record-group17 group_fd=-1
13 group_fd=1
Dtest-record-group-sampling7 group_fd=-1
14 group_fd=1
Dbase-stat3 group_fd=-1
Dbase-record3 group_fd=-1
DREADME23 store 'fd' and 'group_fd' values to allow checking for groups.
/linux-4.1.27/tools/perf/
Dperf-sys.h175 pid_t pid, int cpu, int group_fd, in sys_perf_event_open() argument
181 group_fd, flags); in sys_perf_event_open()
185 test_attr__open(attr, pid, cpu, fd, group_fd, flags); in sys_perf_event_open()
Dperf.h12 int fd, int group_fd, unsigned long flags);
Ddesign.txt25 pid_t pid, int cpu, int group_fd,
261 The 'group_fd' parameter allows counter "groups" to be set up. A
263 is created first, with group_fd = -1 in the sys_perf_event_open call
265 subsequently, with group_fd giving the fd of the group leader.
266 (A single counter on its own is created with group_fd = -1 and is
/linux-4.1.27/samples/bpf/
Dlibbpf.c131 int group_fd, unsigned long flags) in perf_event_open() argument
134 group_fd, flags); in perf_event_open()
Dlibbpf.h189 int group_fd, unsigned long flags);
/linux-4.1.27/tools/perf/util/
Devsel.c1183 int group_fd; in __perf_evsel__open() local
1188 group_fd = get_group_fd(evsel, cpu, thread); in __perf_evsel__open()
1191 pid, cpus->map[cpu], group_fd, flags); in __perf_evsel__open()
1196 group_fd, flags); in __perf_evsel__open()
Dpython.c1072 int fd, int group_fd, unsigned long flags) in test_attr__open() argument
/linux-4.1.27/arch/s390/kernel/
Dcompat_wrapper.c204 … struct perf_event_attr __user *, attr_uptr, pid_t, pid, int, cpu, int, group_fd, unsigned long, f…
/linux-4.1.27/include/linux/
Dsyscalls.h848 pid_t pid, int cpu, int group_fd, unsigned long flags);
/linux-4.1.27/kernel/events/
Dcore.c7913 pid_t, pid, int, cpu, int, group_fd, unsigned long, flags) in SYSCALL_DEFINE5() argument
7966 if (group_fd != -1) { in SYSCALL_DEFINE5()
7967 err = perf_fget_light(group_fd, &group); in SYSCALL_DEFINE5()