From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1F8EDC4706C for ; Tue, 16 Jan 2024 12:23:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=lTgr14uX9EQiRC/xTG++zBNZXuhy30jV3Y5Zeat+Y/A=; b=VXg9y4ykL8qgvY sObNVJuXZbtYDASU54FiJRjicLLKG0lgTlUz2czcnspKwSNBmytnHRIg4BLlYC5HcGxWIx5sSUZ26 /Kg4ODanf49dlYvQBZxYjLcyeTfbXGXsNaKhT+gnW/U9nkiU73VWw51jOu+VMMs7X+uHf9AsljBxq sGx5wMMsLH1K/hKFQziyDXVSM3XWRA8VUphpx2QG9VmXOjLNVdSw80Is13meypozmY9xPvrsJO/Tq J8KxIRam7Jo6IKNtl5jaK90x8cWjKXyjoSEe4tDEJW58+yEIlYXLbP/eBmFd9tceuoF05uQLdzb+U q9lpV86yh0DYGyiYO+oQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rPiSm-00C3tx-1q; Tue, 16 Jan 2024 12:22:40 +0000 Received: from mgamail.intel.com ([134.134.136.100]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rPiSi-00C3rk-2z for linux-arm-kernel@lists.infradead.org; Tue, 16 Jan 2024 12:22:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1705407756; x=1736943756; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=LzEFqIDkEf+pL1vSvs+eYDMky2CkT9z1U+TPoNwWcj0=; b=morhTOV4KjIWz4jZA8bc2z6DZSIrkEQdzZXd9hAHBYfpd/K91EKLKL1s 0tqf/4k6NtQl2zixmmST+FjxQBO1rXzcR30LNXZ7EpV5NGqLtjLysiO6Y SUMAfX4kx0PzYHFqnlD5sBS77l+dppN94/E/GvS1YotAZI7YXoh3Q1VVB jF8H78PX7XsQk70QG4bOBqdWauzscdCNjaht7tWocA2FFaMQ0XDqQDc3s XppueCKw4ApT/qtgpuTyHDKFadPuhvjEQVxHuvJ+WbmjT3W1ZLxykQ7Wp IJoqIZKNq9D4GtG9fiV+ceLzm2xs5SfWr9nu6SjKtzmAiRXPrSD57k+1I Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10954"; a="466227543" X-IronPort-AV: E=Sophos;i="6.05,199,1701158400"; d="scan'208";a="466227543" 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240116_042237_053047_726F0D1C X-CRM114-Status: GOOD ( 13.65 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel