Re: [PATCH 2/2] perf/core: Support reading group events with shared cgroups

2021-03-29 Thread Namhyung Kim
On Mon, Mar 29, 2021 at 2:32 AM Song Liu wrote: > > On Mar 23, 2021, at 9:21 AM, Namhyung Kim wrote: > > > > This enables reading event group's counter values together with a > > PERF_EVENT_IOC_READ_CGROUP command like we do in the regular read(). > > Users should give a correct size of buffer

Re: [PATCH 2/2] perf/core: Support reading group events with shared cgroups

2021-03-28 Thread Song Liu
> On Mar 23, 2021, at 9:21 AM, Namhyung Kim wrote: > > This enables reading event group's counter values together with a > PERF_EVENT_IOC_READ_CGROUP command like we do in the regular read(). > Users should give a correct size of buffer to be read. > > Signed-off-by: Namhyung Kim > --- >

[PATCH 2/2] perf/core: Support reading group events with shared cgroups

2021-03-23 Thread Namhyung Kim
This enables reading event group's counter values together with a PERF_EVENT_IOC_READ_CGROUP command like we do in the regular read(). Users should give a correct size of buffer to be read. Signed-off-by: Namhyung Kim --- kernel/events/core.c | 119 +-- 1