Re: I.2 - Grouping

Paul Mackerras
2009-06-23T08:26:53Z

stephane eranian writes:

> What happens if I do:
> fd0 = perf_counter_open(&hwc1, getpid(), -1, -1, 0);
> fd1 = perf_counter_open(&hwc2, getpid(), -1, fd0, 0);
>
> And then:
> fd2 = perf_counter_open(&hwc2, getpid(), -1, fd1, 0);

That perf_counter_open call will fail with an EINVAL error because fd1
is not a group leader.

Paul.