Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp9751410ybl; Thu, 26 Dec 2019 04:47:55 -0800 (PST) X-Google-Smtp-Source: APXvYqw7xV+yjOKNDNSzRRNnAsaInitkuRLY8Sxatu2WRp5d+1MY3zujC7YrwiIeut4BrztQK0Y8 X-Received: by 2002:a9d:600e:: with SMTP id h14mr48782669otj.113.1577364475700; Thu, 26 Dec 2019 04:47:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577364475; cv=none; d=google.com; s=arc-20160816; b=mnRDZWZ8Pfk0p6VGQeApLChbHYup9r9TtOI8dFhuQGaWo0Lawmk+w3OiGw49w0415i ylBgYSOdXURlGXUAAanXn/ILENXQnz3X3EQRjwk/8QPPYyHEks1gnSqhWCcH0Ww/1f0z 0yckBrRIWaSgPJuqCXSzDMbJFQiLmJFkr+v/6hc3O0nrItTih0rPe2fbID9QYoaqCnPe 0v6fG0UyF4UeSauH3NeYOja3Xz67R8RAOS8L8sNsI1uJHEtL4mH3+Ogr8qgvf9v0FtoW tuJ8ye7weZ5M4hO3mgbsRtIbmwFz+ZxhHGcI6rR9tHS8R57Q5EhUBXhe9Gz11SrDEvRW S74g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:date:from :dkim-signature; bh=VjrrqasrAVtUBkYexP8cTS4R2mKJw8jo9Wmw8KQzHns=; b=RoLMs1GYH7pn+/7FHC1bRm5KS6kF4qBDAJwTT5zwYvmdN/bPXGVQm71vkM+69kfKQq BQ2YoVm+WCqnJmdA12vRTnq+mdpLm0ZLgP0FnABMI46VhU5aM2Z7macyCM/QJu4+7Wy7 eq3Q3D4kmLEJIXMAXqPxu/OGdmUcq4j9NjZW0PTFLxkW15BCOBN2xz1IBaQ7qCHmSaRR AofrmV7msPjCVOaTAR4s8BcYyt+vsmfZl33Ql/TMt3SvE0Zi5MMcu1aDie0DGl//o4ia yPGSW7hX9dQdvAMuWeHyowYvOIdwhWMayPV/mrBQaTAFuyyJ+AMpWg1EyVev6Genv9ss ywIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=crCpRltY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x21si15028300oif.250.2019.12.26.04.47.43; Thu, 26 Dec 2019 04:47:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=crCpRltY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726475AbfLZMrF (ORCPT + 99 others); Thu, 26 Dec 2019 07:47:05 -0500 Received: from mail-pj1-f66.google.com ([209.85.216.66]:51019 "EHLO mail-pj1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725954AbfLZMrF (ORCPT ); Thu, 26 Dec 2019 07:47:05 -0500 Received: by mail-pj1-f66.google.com with SMTP id r67so3308730pjb.0; Thu, 26 Dec 2019 04:47:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=VjrrqasrAVtUBkYexP8cTS4R2mKJw8jo9Wmw8KQzHns=; b=crCpRltYcWxhf/UuPq6JSxcWjEj+oEcvzMtWPJzigRpaFGqPgWDl9SYxQKH/dfqByJ RZCCaDG5u/dRl+cTgmnqhew/v00EVbuEO5kPHZT+UxOTpHG5Qe9Uib1+mg462bxrlR3Q xYbAv45huQrhVtyJl3eJDNsz4QQRfAEXhjntTquRSwk9dT2Mfbv3wCbiub/AGpoKTGNe u+nuiPMqKOQD6OAi63yLs1erMCICmPTWir4/BtnzgJtOgArUkq0NOB/1RFDApv72aSDe sa++wbd+Ptr0T9e0ppXDCZc5VVVw96wIFi6NxmbGQIWAo802claa9272ueW5X7p+XErw w7lA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=VjrrqasrAVtUBkYexP8cTS4R2mKJw8jo9Wmw8KQzHns=; b=SxDCoG7cOw/wPHzE0jmSVJdKy+JsJ2DQJuKO8E3VEG30Vroot7fVQ0xrirx46IROG5 PSPmltNybhP20FQbRkMOVH32PZ8CRs+zlQ3OFHoCi1eFx3AsJMPvEeH5DCCFdlSUE4g/ q/ANu/ANKC3Dh/Byl/bVF1vratW08G/PdBo1Eml0+fIti7GyXrgKuJFp8yus6hmt/bTz dbxvpLcLPyVDrNyPnUeU+uCPKjCYtIyZz4W4dC+aqipSgp6Os4+0SmNlJEFovAjVhM+5 T2MbHf+U9SR8aQU4+8XQgibbtjL0XC/rurxVKQM4UU904MFKBy1Jgbql4NrUDuBZfIVX D0Pg== X-Gm-Message-State: APjAAAUT6lQ8H1RR2OdDNVB6cuN1MSzAvAX6sRtqUaLyMk84j1suhJdW 2cT7lLXlg4ZQbFzN3Pfsgso= X-Received: by 2002:a17:90a:d0c1:: with SMTP id y1mr18628798pjw.126.1577364424213; Thu, 26 Dec 2019 04:47:04 -0800 (PST) Received: from quaco.ghostprotocols.net ([179.97.35.50]) by smtp.gmail.com with ESMTPSA id z4sm36582863pfn.42.2019.12.26.04.47.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Dec 2019 04:47:03 -0800 (PST) From: Arnaldo Carvalho de Melo X-Google-Original-From: Arnaldo Carvalho de Melo Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id C6EE340CB9; Thu, 26 Dec 2019 09:46:59 -0300 (-03) Date: Thu, 26 Dec 2019 09:46:59 -0300 To: Namhyung Kim Cc: Vince Weaver , Ingo Molnar , Peter Zijlstra , Jiri Olsa , Alexander Shishkin , Mark Rutland , Stephane Eranian , LKML , linux-perf-users , Tejun Heo , Li Zefan , Johannes Weiner , Adrian Hunter Subject: Re: [PATCHSET 0/9] perf: Improve cgroup profiling (v3) Message-ID: <20191226124659.GA20204@kernel.org> References: <20191223060759.841176-1-namhyung@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, Dec 24, 2019 at 09:40:04AM +0900, Namhyung Kim escreveu: > 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. Vince, was it ever considered to carry the man page in the kernel sources and then make it so that new features need to come with the respective changes to the man page? I think that would be a good move, you would be the maintainer for that file, what do you think? - Arnaldo