From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754315AbdBPLri (ORCPT ); Thu, 16 Feb 2017 06:47:38 -0500 Received: from bombadil.infradead.org ([65.50.211.133]:46478 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932096AbdBPLrf (ORCPT ); Thu, 16 Feb 2017 06:47:35 -0500 Date: Thu, 16 Feb 2017 12:47:17 +0100 From: Peter Zijlstra To: "Eric W. Biederman" Cc: Hari Bathini , ast@fb.com, lkml , acme@kernel.org, alexander.shishkin@linux.intel.com, mingo@redhat.com, daniel@iogearbox.net, rostedt@goodmis.org, Ananth N Mavinakayanahalli , sargun@sargun.me, Aravinda Prasad , brendan.d.gregg@gmail.com, jolsa@redhat.com Subject: Re: [PATCH v6 1/3] perf: add PERF_RECORD_NAMESPACES to include namespaces related info Message-ID: <20170216114717.GY6500@twins.programming.kicks-ass.net> References: <148654265580.27983.8822211570127163843.stgit@hbathini.in.ibm.com> <148654268436.27983.5340774362600828412.stgit@hbathini.in.ibm.com> <87zihmtm1k.fsf@xmission.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87zihmtm1k.fsf@xmission.com> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 17, 2017 at 12:25:27AM +1300, Eric W. Biederman wrote: > > +/* > > + * The maximum size of the name of each namespace > > + */ > > +#define NS_NAME_SIZE 8 > > + > > +struct perf_ns_link_info { > > + char name[NS_NAME_SIZE]; > > + __u64 dev; > > + __u64 ino; > > +}; > > Ugh. I missed the name the first time around. > > That really looks like useless clutter. You already know the index so > the name doesn't add any information, so unless I am missing something > that name will just slow down the perf kernel implementation with > useless work. > > The userspace reader can have the information just as reliably by > looking at the index and indexing into a table. > > The set of namespaces changes slowly enough that this is not likely to > be a problem in practice. Especially as perf is released with the > kernel. Right; Hari, please ditch that name thing.