Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp1327659rdb; Fri, 19 Jan 2024 16:11:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IGXi2C5Iac8r0bdeO5mGIxSwmbKsif7K+Rcnp66GXnEVz875MQJYIS6grc3ddGEWJ5ODqE1 X-Received: by 2002:a1c:4c14:0:b0:40d:6eb8:2f4d with SMTP id z20-20020a1c4c14000000b0040d6eb82f4dmr196218wmf.199.1705709468789; Fri, 19 Jan 2024 16:11:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705709468; cv=pass; d=google.com; s=arc-20160816; b=TrmHKmgEHvI5drSAMaOVzyTs/NkTeu/VCj7gJSEHnnuEo2o62ZKMCDKAJz7QeoOXYk f0YF599efvbr06zC7m+EipUiemRs+IPUmWHA1WyF3RH30RhLAWkHyeUXp4DDpqWLlEC8 WNyGyXOLHFYi5LdsSSgczTlrkdDZGV5yxNPdsC3i4+XrvTznl2DfXoPohVnEWnUebF8F NV+yhY57+6ggH34fhO/lVZO8ThNweHm16/XfmFH0YH1ES93FlON5EfRPRqiVA3Bpzvut kvqFQhzU4wqAI+AsmlMuZTUX1CieLPQ+5oQVnRYSWRWVYzXrChd6H5fEzkd+mdiJro6q /KLw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=FCIf4jjmsCjm0WrvfocICE7muDXMamDKBfgKtLjKjoo=; fh=TkYaAWk2mWNEyT0z/7b96M1nl9mS3DYztZ0F7s6YT4A=; b=fKWPT2xQv1EjXVyJUOu49jW8kMWJ2p1FI2fP2PHEFG/KCNQEk57WZvlQNR2VemaPjZ 7TrYwCcmU78kATuVl1iNxW4RF5t+C6Jj1oDJbvn8avAPMOr+QfrgH3wpveAuzGs/6H83 AIbGh82DDWNMQd6Eq2OHmAme+ejFeSMPiSdSHzRqvJQmuE8LBW//86qA5517ZGwhJqEe CoE9NfCiYvyTx9V6kJDwY7lr01f4s6vubxY8e14pCy/ieLJGsIHLsy8or2ZzxoLmgTFP 0ALh+78zsbkXV6zJeEaKNMWSgJwjG9MOtXbKIyRoI6bC+jhlM/o/0yls4tlWu53cIF3b P7jw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YJFzAItI; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-31620-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31620-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id p15-20020a056402500f00b0055853b9809dsi8438843eda.13.2024.01.19.16.11.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 16:11:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31620-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YJFzAItI; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-31620-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31620-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 9A97A1F22FA3 for ; Fri, 19 Jan 2024 22:55:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DE8E458AA7; Fri, 19 Jan 2024 22:55:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="YJFzAItI" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 580FC57884; Fri, 19 Jan 2024 22:55:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.8 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705704906; cv=none; b=e91cnW/OynQTXKDN0RSvkKeYHg8NA3SIUQ74bOOa/axw24HPwkwiQuJ0XZaE8VZazbWFgABpnMMJaMB5OCQl5fKUiAQx5o8AfTfMBkv5fKSt4U8plNmMBoziFMLQIBkZKEM16cZWs4YvixyZF+32Lio5S5cQU/ylaIUp3Dwu8uE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705704906; c=relaxed/simple; bh=FCIf4jjmsCjm0WrvfocICE7muDXMamDKBfgKtLjKjoo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=WDJlE7UuvY3dQSwif67J2bhfqmSl0MD93CPCvUBYktE2h4E3oMEcOZHTBwzk72hgawOMT/GVAWYFT+eTfhOKXfBNFbX6386o+BkPzHRuugo8gBDudgHmCZdGZGtpc8tpfF81XhjU9a8Mf0zgMx3YzUQIM9c8t1DvFx7Hc8+ufOw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=YJFzAItI; arc=none smtp.client-ip=192.198.163.8 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1705704904; x=1737240904; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=FCIf4jjmsCjm0WrvfocICE7muDXMamDKBfgKtLjKjoo=; b=YJFzAItI7X9yBUy/NKhHvf13iCjNWMBNUcBdBI8wnoCYYyAZQZ/v9ofl +pYhObx2R/WL2n0sisfgIfaPlodtrKLLcfA4QEsMbzb5DYmdYQo5UkHp+ AczG+E0vRTnBwAU58oVSMYyagYH0w6cjJWGkZ5Vr/uwm/KwSCxd2MYlQ7 zdtSgRXQpFXjZv315Rukd9yZGazqp64FGIs7AHue5F3IHfyniF+frCoWF 38PcnLxlZorgVWbBldeFp77kerwykZ/kHMU23/W+KGVGs3hs7JweT5ASa HDNQHh/TYoa40Wuftr+yZqpbqh38I0noMFk21Em8VN23nZ291HAh6F3JZ w==; X-IronPort-AV: E=McAfee;i="6600,9927,10957"; a="14383183" X-IronPort-AV: E=Sophos;i="6.05,206,1701158400"; d="scan'208";a="14383183" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jan 2024 14:55:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,206,1701158400"; d="scan'208";a="683998" Received: from tassilo.jf.intel.com (HELO tassilo) ([10.54.38.190]) by fmviesa005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jan 2024 14:55:03 -0800 Date: Fri, 19 Jan 2024 14:55:01 -0800 From: Andi Kleen To: Ben Gainey Cc: "irogers@google.com" , "alexander.shishkin@linux.intel.com" , James Clark , "peterz@infradead.org" , Mark Rutland , "linux-perf-users@vger.kernel.org" , "mingo@redhat.com" , "acme@kernel.org" , "linux-kernel@vger.kernel.org" , "jolsa@kernel.org" , "namhyung@kernel.org" , "adrian.hunter@intel.com" Subject: Re: [PATCH 0/1] Support PERF_SAMPLE_READ with inherit_stat Message-ID: References: <20240119163924.2801678-1-ben.gainey@arm.com> <87a5p1kyif.fsf@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: > I had considered that, but given currently this perf_event_attr > configuration is not allowed, I assumed that it would require existing > tools to add support which would in effect be an opt-in. Of course, > adding a new flag to be explicit would be trivial enough if required. That's fair. Makes sense. > That said, the binary format for the mmap records / read() etc does not > change so using an unmodified tool to parse the data file will give bad > results. Therefore any workflow where "modified recording tool" can be > combined with "older / unmodified parsing tool" will break. Not sure of > the best way to handle this... presumably whenever a change is made to > the perf record format, any workflow that allows old parsers to read > new format data without version checks could fail? Admittedly this is a > "looks the same but isn't" change so harder for tools devs to spot. Any > suggestions? For perf itself we can find something. It does a couple of checks, like reserved bits in the perf_event_attr. For the general case of other parsers it's unclear. I suppose could increment the magic identifier to PERFILE3 -Andi