From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753791AbdCBBBj (ORCPT ); Wed, 1 Mar 2017 20:01:39 -0500 Received: from mail.kernel.org ([198.145.29.136]:55854 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753547AbdCBBBh (ORCPT ); Wed, 1 Mar 2017 20:01:37 -0500 Date: Wed, 1 Mar 2017 17:45:09 -0300 From: Arnaldo Carvalho de Melo To: Peter Zijlstra Cc: Hari Bathini , ast@fb.com, lkml , alexander.shishkin@linux.intel.com, mingo@redhat.com, daniel@iogearbox.net, rostedt@goodmis.org, Ananth N Mavinakayanahalli , ebiederm@xmission.com, sargun@sargun.me, Aravinda Prasad , brendan.d.gregg@gmail.com, jolsa@redhat.com Subject: Re: [PATCH v7 1/8] perf: add PERF_RECORD_NAMESPACES to include namespaces related info Message-ID: <20170301204509.GH15145@kernel.org> References: <148768564246.30285.16450228018975882950.stgit@hbathini.in.ibm.com> <148768568352.30285.11532725816180363315.stgit@hbathini.in.ibm.com> <20170224121418.GQ6515@twins.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170224121418.GQ6515@twins.programming.kicks-ass.net> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.7.1 (2016-10-04) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Fri, Feb 24, 2017 at 01:14:18PM +0100, Peter Zijlstra escreveu: > On Tue, Feb 21, 2017 at 07:31:23PM +0530, Hari Bathini wrote: > > With the advert of container technologies like docker, that depend > > on namespaces for isolation, there is a need for tracing support for > > namespaces. This patch introduces new PERF_RECORD_NAMESPACES event > > for recording namespaces related info. By recording info for every > > namespace, it is left to userspace to take a call on the definition > > of a container and trace containers by updating perf tool accordingly. > > > > Each namespace has a combination of device and inode numbers. Though > > every namespace has the same device number currently, that may change > > in future to avoid the need for a namespace of namespaces. Considering > > such possibility, record both device and inode numbers separately for > > each namespace. > > > > Signed-off-by: Hari Bathini > > --- > > include/linux/perf_event.h | 2 + > > include/uapi/linux/perf_event.h | 32 +++++++++ > > kernel/events/core.c | 139 +++++++++++++++++++++++++++++++++++++++ > > kernel/fork.c | 2 + > > kernel/nsproxy.c | 3 + > > 5 files changed, 177 insertions(+), 1 deletion(-) > > Arnaldo, seeing that most of this patch set is tool stuff, could you > take the lot through the tool tree? > > This patch: > > Acked-by: Peter Zijlstra (Intel) Ok, looking at it now. - Arnaldo