Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966358AbcKXPKa (ORCPT ); Thu, 24 Nov 2016 10:10:30 -0500 Received: from bombadil.infradead.org ([198.137.202.9]:33846 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965739AbcKXPK2 (ORCPT ); Thu, 24 Nov 2016 10:10:28 -0500 Date: Thu, 24 Nov 2016 16:10:11 +0100 From: Peter Zijlstra To: Hari Bathini Cc: ast@fb.com, lkml , acme@kernel.org, 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 Subject: Re: [PATCH v2 1/3] perf: add PERF_RECORD_NAMESPACES to include namespaces related info Message-ID: <20161124151011.GG3092@twins.programming.kicks-ass.net> References: <147999860459.15705.11450781745380950795.stgit@hbathini.in.ibm.com> <147999864851.15705.3363371034116608966.stgit@hbathini.in.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <147999864851.15705.3363371034116608966.stgit@hbathini.in.ibm.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 Content-Length: 675 Lines: 26 On Thu, Nov 24, 2016 at 08:14:29PM +0530, Hari Bathini wrote: > @@ -862,6 +875,19 @@ enum perf_event_type { > */ > PERF_RECORD_SWITCH_CPU_WIDE = 15, > > + /* > + * struct { > + * struct perf_event_header header; > + * > + * u32 pid, tid; > + * u64 time; pid,tid and time are already present in sample_id. Many of the 'legacy' record have redundant information since we added sample_id, but most of the new ones haven't and rely on sample_all being set. > + * u64 dev_num; > + * u64 inode_num[NAMESPACES_MAX]; > + * struct sample_id sample_id; > + * }; > + */ > + PERF_RECORD_NAMESPACES = 16, > + > PERF_RECORD_MAX, /* non-ABI */ > };