From mboxrd@z Thu Jan 1 00:00:00 1970 From: Namhyung Kim Subject: Re: [PATCHSET 0/9] perf: Improve cgroup profiling (v3) Date: Tue, 24 Dec 2019 09:40:04 +0900 Message-ID: References: <20191223060759.841176-1-namhyung@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Vince Weaver Cc: Ingo Molnar , Peter Zijlstra , Arnaldo Carvalho de Melo , Jiri Olsa , Alexander Shishkin , Mark Rutland , Stephane Eranian , LKML , linux-perf-users , Tejun Heo , Li Zefan , Johannes Weiner , Adrian Hunter List-Id: linux-perf-users.vger.kernel.org Hi Vince, On Tue, Dec 24, 2019 at 2:35 AM Vince Weaver wrote: > > On Mon, 23 Dec 2019, Namhyung Kim wrote: > > > This work is to improve cgroup profiling in perf. Currently it only > > supports profiling tasks in a specific cgroup and there's no way to > > identify which cgroup the current sample belongs to. So I added > > PERF_SAMPLE_CGROUP to add cgroup id into each sample. It's a 64-bit > > integer having file handle of the cgroup. And kernel also generates > > PERF_RECORD_CGROUP event for new groups to correlate the cgroup id and > > cgroup name (path in the cgroup filesystem). The cgroup id can be > > read from userspace by name_to_handle_at() system call so it can > > synthesize the CGROUP event for existing groups. > > so is there a patch to the manpage that describes this new behavior in > perf_event_open()? Not yet. I'll cook a patch once it's merged to the Linus' tree. Thanks Namhyung