Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7009565ybl; Mon, 23 Dec 2019 16:41:13 -0800 (PST) X-Google-Smtp-Source: APXvYqygi9TCToPbhqUMdXXVorWBtmXQep2/81ioK6y24JhYgPAaA1BWZMUNe5ssWlF698iy4yGu X-Received: by 2002:a05:6830:16d1:: with SMTP id l17mr15714635otr.21.1577148073777; Mon, 23 Dec 2019 16:41:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577148073; cv=none; d=google.com; s=arc-20160816; b=Hrwu1eqrmznigvGXl+wJ7sui9pGgw7PG/jcUzeXPRM7aDc1QzPey445UyiEtbieB0i xc7wGkjQvDYdd6ibjwSDg+pXSqigokbyjSkQToQ/PBEhSL4Q/rDBB26Sj7q7yLiANepn JetvT7RlzegEWPvEpImvIPemyLnQJAuAzkIOX2UXEhreFGr8oTEHhVzGslncOfcLpTwK i4+Fc28RmaCj/csZrdNW7eFIwJeTd7WCmT1Quo06npNS0Wb9HIcWxCEgcxBoBO2jloNs hAV3NHBVXiUoCL7y637ftGiWKQwlsuU6tjC51W36gKMX9YaZb9sJNBjmQScKgAh/KKFA iumA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=wfX3yVFIR62qBqQmyyt1q/9YQm+oZqZAtuSs7/zK2EA=; b=mzWVkVmffiZcZkVFsOsmMtFxd8tcjZbaDF+qN8vZx8fzF/vYK4vPMJ6TdSCyZURB5h uATCCw27fG+KMHwAxtvZLTXzB/auW2gEJbjMYo2LOCRp2tFPg3j+ngaOlJET4NxIFpt6 Sf3XdObCkDM3N/qRXTmqegvMikvitf6oQ5BTXIIWtJFyUq4fIDSWzV3V9dpQ417MTkQp KEZHd8L/4vO+7nkGwwiI+wcY8ZkIBFjzTaCtAz/rsMm5IlG2EtyWYpPYf17/1wmartIB Ao4ytSh9iKU16EdAG2F9i5XRljh0GHvsc0uLncLJj/jIVtT2Ccn70NPySkUEfXxC47AZ iArg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x137si9873156oif.42.2019.12.23.16.40.59; Mon, 23 Dec 2019 16:41:13 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726885AbfLXAkS (ORCPT + 99 others); Mon, 23 Dec 2019 19:40:18 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:51614 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726833AbfLXAkS (ORCPT ); Mon, 23 Dec 2019 19:40:18 -0500 Received: by mail-wm1-f68.google.com with SMTP id d73so1135145wmd.1; Mon, 23 Dec 2019 16:40:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wfX3yVFIR62qBqQmyyt1q/9YQm+oZqZAtuSs7/zK2EA=; b=Z6n89UzyvJ7gWUDhO5Z2kYvca2egv7HHp/rjrH80qy1AWbpm32kZaLxx6V5GVsPIfE vnIkW0gF4kvU8YBnKBDA9KE6QXqIlkqvWt4cexy1iBpagLTVxrfvbXE0er2G6l6fJbpi FnekVzqw5pzd47JU3qdPmQPMYEzxyaMcDTB7a6DS3SjbXUwSfkn9Xt6x6v+D8ZK2jJWJ +M8SRoJYS2tBzdnm/8VO7ABDoPDKQLg0Uw/cgiIRBF9uJMGm/XpCbvddtcJzR8x5dn4t XLTg4qmIq9V+sZAO3pqhjzFk/N0boGxgbPLliQRW6EsmlhK9GL9F7a7xm2Z6FvaUV2Nl A7YQ== X-Gm-Message-State: APjAAAVu2dLANiUkUWzh3hx5pV2MIbka50QipMIUO58fOZS3KX2Fh6ue SNQFBbi4aY/8QQCY+sQnr8OClgjvS5S/ib23GEc= X-Received: by 2002:a05:600c:2c53:: with SMTP id r19mr1239598wmg.39.1577148015782; Mon, 23 Dec 2019 16:40:15 -0800 (PST) MIME-Version: 1.0 References: <20191223060759.841176-1-namhyung@kernel.org> In-Reply-To: From: Namhyung Kim Date: Tue, 24 Dec 2019 09:40:04 +0900 Message-ID: Subject: Re: [PATCHSET 0/9] perf: Improve cgroup profiling (v3) 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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