Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp6668906ybl; Mon, 23 Dec 2019 09:36:45 -0800 (PST) X-Google-Smtp-Source: APXvYqwJTCznsJ4byxtK7qtkcSKEB01V4cx3Ui4YrcnpC4DLE3zJl27YUquulRyLPcKejlbos02d X-Received: by 2002:a05:6830:22ee:: with SMTP id t14mr32845781otc.236.1577122605190; Mon, 23 Dec 2019 09:36:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577122605; cv=none; d=google.com; s=arc-20160816; b=KVKP0SaR2Z0WvnSjan+vJE+Tg6KQwYQkSeaMG3hVP6ThF9aAAFTurm2XLFvOI5LNVa J/4QITwKNfqVXIwBV2FV9btfxetS+RBHi9ai/fX2DQAM1ZC7cNIDMuDh8lcYMbNOyGXn 4VhIXKyW/ITzQQ+6T5Q9aTnYxs+/ByZJCPnAKnQrhd+TreYxP44mKCgtD3VlA1FxOa8p jqDU3NiuXrW/AAJAJJ7G7HxcGv12NvI3l01lPGJv47J2YE4EJf6EMnV/vlBBlMymUgnw kwzDu9P1wDDu4uLixBW4vBD2NfKln9fyYClxQF0KaogVApSD1ER2ckoL5VuSG0Zu7EF1 hqnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:date:from:dkim-signature; bh=uP8PckNbUaLSpRir2aIP/UhQzXL6a9QpbQ12gu/yjVg=; b=oQ+/yTVr1sKtGCw9ukHaor63dlvlWJiQ/bjyZl81M8I2T/ktKOfB6Yrqw0wGu2AYs4 XdToRRzTM8IgifmqphJUYF+e6AlrG6s7smqMMgJoalh2v+kKoTU0h/k+xDoQuyOW7HfO p0zgxN25Opzk2taYSaEvEAUEqIbaWBg2pzK3c+TJbC7E+ULFdjBO0d2jQd2Ccf6NWCen CiYs8nGddvDYLZTQ91WJ0vgwY6u9sBk3JyYioHb9key21oOEVw5YoPLxMMVuae52YM9m b4LOjT2vgzeXx8iGmL5CCkJbZo1eU5+2f5N8tOkRCqoT2+j0BUaCQ2k3McPWCi1sgwf0 8u7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@maine.edu header.s=google header.b="B3/zrHRP"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o8si10687439oti.47.2019.12.23.09.36.33; Mon, 23 Dec 2019 09:36:45 -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=@maine.edu header.s=google header.b="B3/zrHRP"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726817AbfLWRf4 (ORCPT + 99 others); Mon, 23 Dec 2019 12:35:56 -0500 Received: from mail-qk1-f193.google.com ([209.85.222.193]:37505 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726754AbfLWRf4 (ORCPT ); Mon, 23 Dec 2019 12:35:56 -0500 Received: by mail-qk1-f193.google.com with SMTP id 21so14133619qky.4 for ; Mon, 23 Dec 2019 09:35:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maine.edu; s=google; h=from:date:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=uP8PckNbUaLSpRir2aIP/UhQzXL6a9QpbQ12gu/yjVg=; b=B3/zrHRP7wtOthBDwM0sYOPRE2oI98xZ2aLyGghHzTpBwe2jTL0Hmpn8P4Jlbfakyp LqHEFT/6hxUFH2xzUoNvlMG8pyHzeR7jz/E5pS0/h6KH3EAzmE+BlPMtF5waorgBLRzS thQl33ViMN27xPhj5wpyjHJT1plWFwsH3gGr0= 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:in-reply-to:message-id :references:user-agent:mime-version; bh=uP8PckNbUaLSpRir2aIP/UhQzXL6a9QpbQ12gu/yjVg=; b=P1QTP/sYmd+OTQQqhR/iJLIT9K9x39bAlgYwkRaRr7+NdLzY1qM7ROwJkly70mc/3u CK5i40Ni9XBchyh9rkQXabT32bDyMsGfFkSC3C8F38BItnJr0O9k2dykMN/m6ba0uE8W J0TH6IQlTqc7NJbyddtHOPgTDoXClrdrB2VvGpu77gxDi1juaNhT5dhzQhs4r3VYRTaC kTMfWB8knfmE5MNzzV7TRY3V2A50LJvvNT2bJaCmB3JqydThTjlrxr+bCdluwGE60Q90 35ryqSHCr5PjFNpb//rOId4PigAD4DtyeSe6nQYoyrheVWGzkMGb7/ZAs5y9jBqhKGsX AGYw== X-Gm-Message-State: APjAAAVRI2BLn4WAVqPV2hgZk+nQc08oajVLwZ4TbcTTuvI6y/ZV+MOl 4bMlu9feXAALrVpDj0wEHxh/PA== X-Received: by 2002:a05:620a:137a:: with SMTP id d26mr27277189qkl.173.1577122555565; Mon, 23 Dec 2019 09:35:55 -0800 (PST) Received: from macbook-air (weaver.eece.maine.edu. [130.111.218.23]) by smtp.gmail.com with ESMTPSA id u57sm6485715qth.68.2019.12.23.09.35.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Dec 2019 09:35:54 -0800 (PST) From: Vince Weaver X-Google-Original-From: Vince Weaver Date: Mon, 23 Dec 2019 12:35:47 -0500 (EST) X-X-Sender: vince@macbook-air To: Namhyung Kim cc: Ingo Molnar , Peter Zijlstra , Arnaldo Carvalho de Melo , Jiri Olsa , Alexander Shishkin , Mark Rutland , Stephane Eranian , LKML , linux-perf-users@vger.kernel.org, Tejun Heo , Li Zefan , Johannes Weiner , Adrian Hunter Subject: Re: [PATCHSET 0/9] perf: Improve cgroup profiling (v3) In-Reply-To: <20191223060759.841176-1-namhyung@kernel.org> Message-ID: References: <20191223060759.841176-1-namhyung@kernel.org> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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()? Vince