Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp410118rdb; Tue, 16 Jan 2024 04:23:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IHuUHjmojBnOIUEp1GSVRfs6GvNlog+CDOPR6Jlih/6cjT7kDmaRGy/ymQkXTEgCx5ws76T X-Received: by 2002:a05:6512:3e1d:b0:50e:83eb:b8a2 with SMTP id i29-20020a0565123e1d00b0050e83ebb8a2mr3652186lfv.88.1705407783129; Tue, 16 Jan 2024 04:23:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705407783; cv=none; d=google.com; s=arc-20160816; b=BYrpTcU44++8exw81wkL7I7wqSD4E5Vgi+S4rFRYu0Q+QeZIgWTv4DCgRm2/EvBB9h kqkMzs5lC3SDfheFPytCir0GNw8aw+h5VDq5Ey7pxY99pqfQrGepAi1DGB4q+oZg77zR EKMKC2klU6AkEVXC4g9oJr5mg2Ey5JniSPeDI4LaaYGJlpdKwRExmFWEJDr6Pv1AD5vh axXFnpRwPKkZXhIQ752lN7NhXJdFbnITos+ubLc/3IZ5SBn1hjPlKsayVx+UxNHsypB1 xadBMlCICV0vRjGmI6/xwUFRDdfQTnX9kAV0+DgEcRutd+JP0kO9LH/oPHq+MjvkFc5c rLlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:from:references :cc:to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=rEJaqhwmpG6DT+3J/MpzRD6Q1AzwkKm1YPkmUQWli2A=; fh=+/tIE7DCjpyU6AmdJDPrkF7tSnlRvwLzR09NYgVobW0=; b=AZpdGkPgewagG/GUU2ZhVFBInFmEAjBC9pHhw/XijsdCisr+s3XchrskWA7xszGVAh 5483lUz2muMU3oKhOQqTmGX5nzUfIIsfFYZq5jdJJ++5mYHLfVL+Qj0BNhknDY1NjTXZ hG/Ka+iWvGccQxOqbzH0uto4dkIr+qUaodwcS16zbJ7wRstB2kc06oE6HHtREJUTPj/N 6vvekNMOVG4OyC/FOwSq6hm/tCxyZR6sdk/ZEIMf/PChCQ1i0r0YB1zIhw79UI21Usav IGPGhZWyrpuuKvcIWUiSLtD3llSNe4VgwdHXdaIAe5WKMTNwzTo/bUmE1lmHsSCfktEz 5Szw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=h1oun1bk; spf=pass (google.com: domain of linux-kernel+bounces-27373-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27373-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 i10-20020a170906264a00b00a26f5e38a09si4630788ejc.892.2024.01.16.04.23.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 04:23:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-27373-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=h1oun1bk; spf=pass (google.com: domain of linux-kernel+bounces-27373-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27373-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 999031F24374 for ; Tue, 16 Jan 2024 12:23:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5A9451BC49; Tue, 16 Jan 2024 12:22:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="h1oun1bk" Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) (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 BF52B1B97C; Tue, 16 Jan 2024 12:22:33 +0000 (UTC) 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=1705407753; x=1736943753; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=LzEFqIDkEf+pL1vSvs+eYDMky2CkT9z1U+TPoNwWcj0=; b=h1oun1bkZ5uaQOirPhUVU93/8mQgFD08qJmGqnoIIt/5IngOtDCq9jO4 iSH7XC0brURoOQHSYpB+XJeTZpl4xPw86GFVkHKBVmgXv/KprqOqBVcA1 LEMc1bmkeslB27TSQJ7oYIQzLj6YxWbFTgNvLhdXgZj6ebm+DOBfwwKq0 0g1pUaPPtbxwJZyu4wKOQ5Dd+hBARxXZf5yqHd24a4EOJjbnFV7dDb8s7 i0gW67tHXoIsAz+cW7+YDUep+XCA4DbrTWNRcvzQC1I3qQeTC9l3xSO+G GQvNQnwycnmkFCfwvB7klBE8PpqtnvQ53v6wibY/FH+SezRVUI69BaXSh A==; X-IronPort-AV: E=McAfee;i="6600,9927,10954"; a="466227537" X-IronPort-AV: E=Sophos;i="6.05,199,1701158400"; d="scan'208";a="466227537" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jan 2024 04:22:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10954"; a="760164094" X-IronPort-AV: E=Sophos;i="6.05,199,1701158400"; d="scan'208";a="760164094" Received: from ahunter6-mobl1.ger.corp.intel.com (HELO [10.0.2.15]) ([10.249.38.159]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jan 2024 04:22:27 -0800 Message-ID: <60cc9fa8-e714-41d0-a82d-9c8a54dfde4e@intel.com> Date: Tue, 16 Jan 2024 14:22:01 +0200 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 V4 10/11] perf intel-pt: Add documentation for pause / resume Content-Language: en-US To: Andi Kleen Cc: Peter Zijlstra , 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 , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org References: <20240111081914.3123-1-adrian.hunter@intel.com> <20240111081914.3123-11-adrian.hunter@intel.com> <87ply1lebh.fsf@linux.intel.com> From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki In-Reply-To: <87ply1lebh.fsf@linux.intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 16/01/24 13:15, Andi Kleen wrote: > Adrian Hunter writes: >> + >> +For example, to trace only the uname system call (sys_newuname) when running the >> +command line utility uname: >> + >> + $ perf record --kcore -e >> intel_pt/aux-action=start-paused/k,syscalls:sys_enter_newuname/aux-action=resume/,syscalls:sys_exit_newuname/aux-action=pause/ >> uname > > It's unclear if the syntax works for hardware break points, kprobes, uprobes too? Yes, the perf tool syntax requires only that the group leader is an AUX area event like intel_pt. Note that an attempt is made to automatically group AUX area events with events with aux-action, so grouping syntax like '{...}' is not always necessary. Note the current kernel implementation is called from __perf_event_output() which is used in nearly all cases for the output of samples, the exceptions being Intel BTS (which we do not support at the same time as Intel PT, but wouldn't make much sense anyway) and S390 cpumsf_output_event_pid(). > That would be most useful. If it works would be good to add examples for it. OK