Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp343179lqg; Thu, 11 Apr 2024 05:03:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUHX0W9r0JQRp+dqaV7bQTlrYxBiv2h4WMNv35tCCDkuYH8p/WksiorOwmD25uy1ZZ5yWNjfQ9M2IHPee8HuIfTkY06/iByVOqnXxGoBg== X-Google-Smtp-Source: AGHT+IF6vINW4Hzcww/ovQXwcy6FdkiBmbPXWFVhs7BNcUluqt1E5AuRdWoQia6+EITgHcLwRpDi X-Received: by 2002:a05:6102:3e22:b0:47a:36d8:296 with SMTP id j34-20020a0561023e2200b0047a36d80296mr1724693vsv.22.1712837003024; Thu, 11 Apr 2024 05:03:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712837003; cv=pass; d=google.com; s=arc-20160816; b=rKsW6SlJLwZr4Hdi0T63tLRdEtxB+hIV+WcAnBbZVtbv3dBp+rDzrbsjQghyyXAyqC /drT7DUstBBL2m0bq1Js1FLE4LHrzYZ+kKHJDNGr9D/GrodwzlYQaUHiES/wXlsGKXiR st8QheutJ3ngA3i9E8X0G7akUBi27E9TgQG2KGQdOJhbTIUxuYzkTu70w+Zg2viBYyN7 vga9H2Pn6bw9m+Fjs3dSXFG/77bg91IKYC3fcItbUnlol9uVte7dsbpmyW+ihs/WeGzJ hq9qOU35MSREvMtxfDNUu2W+SS71YGGSgVsQabk1M02yoNYXZ2nuPKzX08ohjmm/c3kf VVww== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:content-language :references:cc:to:from:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=YrBqq6baD66VBDJWPTqKXcxlM9Av0oLVkEq2foKyZQU=; fh=U6go9TgVfhaVn8TnsTwh7UQoqP4RUXu7+mrCNIc4gvk=; b=KXOZvj5TwxZ56AUzyYi7qLoil/hxAr1MwJoIHerrST+77EOAfXOUj2a1PD1p7DTi6L IEOowX+kcgCXGieexYzoYtFX5Krx1VhZbfhCc35lloxenbpTe2EFGa+Rnsj1xdcRWzKg HyZaQhI+Xr6kyMjCjJ8+pAFpYieYYAfw47f1+dhxBoFZC0Mok9sAxv9r+K3UaxChr8+p XV97tw7ylnEerxqzLqAKsfggSugo/G6PrsZC0WcI8IASiA6KejjjmRexDXzXK2CnhnxC /gZYL3rtL334jROrZtuuJ2KsgqVqnCF86zX4lhTWzqUgRxxWQHBuvFuRHJHlAlqWss/P IKeg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lB2H0fd0; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-140397-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140397-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id w9-20020a056102304900b00478476b36ffsi99941vsa.414.2024.04.11.05.03.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 05:03:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-140397-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lB2H0fd0; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-140397-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140397-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B7BF81C20CA1 for ; Thu, 11 Apr 2024 12:03:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 60B1B14BF8F; Thu, 11 Apr 2024 12:03:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="lB2H0fd0" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) (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 832E214B088; Thu, 11 Apr 2024 12:03:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.20 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712836984; cv=none; b=H0puaORP9B9eWzvDiyg6M8pBJzLiVH+UsYGFjRCfbgRxn4ZdtHas6kfJ76XDQEnuF/PGUsvo19NCj5yw/40i/JTPZoBTkEdchVL5BseWe4PsoaLJeDNyERjWfzs3lo/qSHVTG+En79o9J01+cKy3gYxRO/cUMV/qP1Pzz4beec4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712836984; c=relaxed/simple; bh=w/vOEbMmfPknPax0PCVBUtjsTjwIaGY1cFmOJIdMJig=; h=Message-ID:Date:MIME-Version:Subject:From:To:Cc:References: In-Reply-To:Content-Type; b=GtqUtQ6L4zGRRWukcZ96bXEQf+4Y4/77PHSHWx4DnEJ7XUwUU5YsKJZW4u4nnFh2LgZ74ZwVd9eUveVojsGjEeewHSbdP2uhwqPheCyVxpnyx+hx2onYGvSMWHO3xDgP1tY387xWxyk4DskowXyCbFn2Rvh0/a7vifQziaVBulE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=lB2H0fd0; arc=none smtp.client-ip=198.175.65.20 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712836983; x=1744372983; h=message-id:date:mime-version:subject:from:to:cc: references:in-reply-to:content-transfer-encoding; bh=w/vOEbMmfPknPax0PCVBUtjsTjwIaGY1cFmOJIdMJig=; b=lB2H0fd0xfdHlmV0NLV7XH01Tke5jMWno9MWv49bzoxeXsliRz9PgTaP JhVIWr0J1dnglHUGBEajg2suu7wO+dFINQY4XEi++NCLNA1ZKb8OGmocH ZntbpYHCb5v6Hz96QG1N3YebFeKNwpifxEfe+0Ia31L8DylG1D5fBj0kZ EleEHCjxMO2UxXUdxrrdaIQ6Ip44scGc/GghXl3/HRtxfCD9Qww86Dd8r TSPWlwKk/HyAbMrsrDo4Kdgr3uN1EOxqLmoxCLoxOyGXMy1kyeJGOeps3 EWsGbz9obEu+IjdfHy7uF1hzrY4W8/UhWyGLCRWFnFk7dpsH1zdGfdDxu w==; X-CSE-ConnectionGUID: BMYvkezJR2i+qUG3P/KwvQ== X-CSE-MsgGUID: jeZepP/RQKWTyOPDbcOkAg== X-IronPort-AV: E=McAfee;i="6600,9927,11039"; a="8093759" X-IronPort-AV: E=Sophos;i="6.07,193,1708416000"; d="scan'208";a="8093759" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Apr 2024 05:03:02 -0700 X-CSE-ConnectionGUID: rI/AsT8zTZuYByDVI7n3KQ== X-CSE-MsgGUID: +C8GXXHYTSa0xyIVMWtoog== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,193,1708416000"; d="scan'208";a="20954700" Received: from ahunter6-mobl1.ger.corp.intel.com (HELO [10.0.2.15]) ([10.251.215.66]) by fmviesa008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Apr 2024 05:02:56 -0700 Message-ID: <52f3abd2-4f75-4147-bc7b-c98960d9494b@intel.com> Date: Thu, 11 Apr 2024 15:02:52 +0300 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH V5 00/12] perf/core: Add ability for an event to "pause" or "resume" AUX area tracing From: Adrian Hunter To: Peter Zijlstra Cc: Ingo Molnar , Mark Rutland , Alexander Shishkin , Heiko Carstens , Thomas Richter , Hendrik Brueckner , Suzuki K Poulose , Mike Leach , James Clark , coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, Yicong Yang , Jonathan Cameron , Will Deacon , Arnaldo Carvalho de Melo , Jiri Olsa , Namhyung Kim , Ian Rogers , Andi Kleen , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org References: <20240208113127.22216-1-adrian.hunter@intel.com> Content-Language: en-US Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki In-Reply-To: <20240208113127.22216-1-adrian.hunter@intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 8/02/24 13:31, Adrian Hunter wrote: > Hi > > Hardware traces, such as instruction traces, can produce a vast amount of > trace data, so being able to reduce tracing to more specific circumstances > can be useful. > > The ability to pause or resume tracing when another event happens, can do > that. > > These patches add such a facilty and show how it would work for Intel > Processor Trace. > > Maintainers of other AUX area tracing implementations are requested to > consider if this is something they might employ and then whether or not > the ABI would work for them. Note, thank you to James Clark (ARM) for > evaluating the API for Coresight. Suzuki K Poulose (ARM) also responded > positively to the RFC. > > Changes to perf tools are now (since V4) fleshed out. > > > Changes in V5: > > perf/core: Add aux_pause, aux_resume, aux_start_paused > Added James' Ack > > perf/x86/intel: Do not enable large PEBS for events with aux actions or aux sampling > New patch > > perf tools > Added Ian's Ack > > Changes in V4: > > perf/core: Add aux_pause, aux_resume, aux_start_paused > Rename aux_output_cfg -> aux_action > Reorder aux_action bits from: > aux_pause, aux_resume, aux_start_paused > to: > aux_start_paused, aux_pause, aux_resume > Fix aux_action bits __u64 -> __u32 > > coresight: Have a stab at support for pause / resume > Dropped > > perf tools > All new patches > > Changes in RFC V3: > > coresight: Have a stab at support for pause / resume > 'mode' -> 'flags' so it at least compiles > > Changes in RFC V2: > > Use ->stop() / ->start() instead of ->pause_resume() > Move aux_start_paused bit into aux_output_cfg > Tighten up when Intel PT pause / resume is allowed > Add an example of how it might work for CoreSight Any more comments?