From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753561AbcLLS0F (ORCPT ); Mon, 12 Dec 2016 13:26:05 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:55878 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752510AbcLLS0D (ORCPT ); Mon, 12 Dec 2016 13:26:03 -0500 Subject: Re: [PATCH v2 1/3] perf: add PERF_RECORD_NAMESPACES to include namespaces related info To: Peter Zijlstra References: <147999860459.15705.11450781745380950795.stgit@hbathini.in.ibm.com> <147999864851.15705.3363371034116608966.stgit@hbathini.in.ibm.com> <20161124151011.GG3092@twins.programming.kicks-ass.net> <3d42dd8c-446d-f0de-1853-b78190a109c6@linux.vnet.ibm.com> <20161209140913.GO3107@twins.programming.kicks-ass.net> 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 From: Hari Bathini Date: Mon, 12 Dec 2016 23:55:44 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <20161209140913.GO3107@twins.programming.kicks-ass.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16121218-0040-0000-0000-000002D619D3 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16121218-0041-0000-0000-00000BDE6FFF Message-Id: <91f54dad-65aa-1fdd-bbe6-a990370b0f80@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-12-12_12:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1609300000 definitions=main-1612120275 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Peter, On Friday 09 December 2016 07:39 PM, Peter Zijlstra wrote: > On Fri, Dec 09, 2016 at 12:10:20AM +0530, Hari Bathini wrote: >> Hi Peter, >> >> >> Sorry for taking so long to respond... >> >> >> On Thursday 24 November 2016 08:40 PM, Peter Zijlstra wrote: >>> 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. >> I tried using pid/tid from sample data, but realized that pid/tid in >> event_id >> could be different from the one in sample data, at least for fork/namespaces >> events, since __perf_event_header__init_id( ) that updates the sample data >> is getting the pid/tid of current task. > Ah indeed. Yes please disregard my comment then. Posted v3 addressing the TODOs & fixing the error reported by kbuild test robot. Thanks Hari