From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) (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 F3CA76FAE; Tue, 19 Dec 2023 06:05:44 +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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="MFhhsSqL" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702965944; x=1734501944; h=message-id:date:mime-version:subject:from:to:cc: references:in-reply-to:content-transfer-encoding; bh=B9VaDMUrCEz6mgrMx63+aVJwvbSy2QKfCuC4u1wqq24=; b=MFhhsSqLCzJK6mAN/A+WzpuTVlxptkHoRPvtDQNthd2sTAlUyPpV7/xB bIKDRgmfsvLahWcjNxG4p+jNhxCsecNJBMyUf6UQUduC15qWPc/Hze/Gh 2PPn2ylaTnDxedCPNpmqQLeEgjLFtOahtJAA7X2B9a0usiiqTncw/tndr KcThUvZAl6mFd/uqo4PPARaOQJv2GGDgyxtUchDRIjh2pocNZUxNCtlYU 5M0U6/pPGv75cJLYEj+nDViyDmGT1oskrj6AprkMNCkL0kHC7lsLOvFIV h9gdrUFxDfzs381Uty3YxIaCATBATMY98SO2z1MZ+xSe1HnKaS2piSejJ g==; X-IronPort-AV: E=McAfee;i="6600,9927,10928"; a="459953189" X-IronPort-AV: E=Sophos;i="6.04,287,1695711600"; d="scan'208";a="459953189" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Dec 2023 22:05:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,287,1695711600"; d="scan'208";a="17478195" Received: from opipikin-mobl2.ger.corp.intel.com (HELO [10.0.2.15]) ([10.252.50.174]) by orviesa002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Dec 2023 22:05:39 -0800 Message-ID: Date: Tue, 19 Dec 2023 08:05:34 +0200 Precedence: bulk X-Mailing-List: linux-perf-users@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RFC V2 0/4] perf/core: Add ability for an event to "pause" or "resume" AUX area tracing From: Adrian Hunter To: Peter Zijlstra , James Clark Cc: Ingo Molnar , Mark Rutland , Alexander Shishkin , Heiko Carstens , Thomas Richter , Hendrik Brueckner , Suzuki K Poulose , Mike Leach , 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: <20231208172449.35444-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: <20231208172449.35444-1-adrian.hunter@intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 8/12/23 19:24, 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. > > Changes to perf tools are not fleshed out yet. > > > 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 comments? > > > Adrian Hunter (4): > perf/core: Add aux_pause, aux_resume, aux_start_paused > perf/x86/intel/pt: Add support for pause / resume > perf tools: Add support for AUX area pause / resume > coresight: Have a stab at support for pause / resume > > arch/x86/events/intel/pt.c | 63 ++++++++++++++++++++- > arch/x86/events/intel/pt.h | 4 ++ > drivers/hwtracing/coresight/coresight-etm-perf.c | 29 ++++++++-- > include/linux/perf_event.h | 15 +++++ > include/uapi/linux/perf_event.h | 11 +++- > kernel/events/core.c | 72 +++++++++++++++++++++++- > kernel/events/internal.h | 1 + > tools/include/uapi/linux/perf_event.h | 11 +++- > tools/perf/util/auxtrace.c | 4 ++ > tools/perf/util/evsel.c | 9 +++ > tools/perf/util/evsel_config.h | 6 ++ > tools/perf/util/parse-events.c | 33 +++++++++++ > tools/perf/util/parse-events.h | 3 + > tools/perf/util/parse-events.l | 3 + > tools/perf/util/perf_event_attr_fprintf.c | 3 + > 15 files changed, 255 insertions(+), 12 deletions(-) > > > Regards > Adrian 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 3BB9CC41535 for ; Tue, 19 Dec 2023 06:06:17 +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:References:Cc:To:From: 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=SG3fselFx+XwEgvlBLGHKNmFOxFpMEVTLs4gnL9Agvo=; b=qwkqbtm/hBBVTf P6HJTOYRt4bBRoH/d2S5PpCJKw6H/BmfNQxqap2mVDHkHsVaEKhUUja3M245Csb1wfOtEVa8URDKW MwBNi5bCs9Z8DrRB99yevo9rC+JKugOH4irTxBbReQU1RtV8Bf3Hg4SqjZhq3+z1N6RJ9zG+OuEAn rA9Dgbk3DsaRX41c2TS4N+2UCgQWq/1SBPsN1YQbnqyp2YtoXVqGMI93SWUSRLM5AnG20SIsmpkeC IOsfbfyIW2TxeVPzd6L6VgnsQyXZqBlUecyE9k7+FPHnsAY/nS1q1pM1pY6YQjTSs7iiXHMlBvxw6 n2sLdGQE/9+P/aS3ERbw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rFTEi-00Cx6r-33; Tue, 19 Dec 2023 06:05:48 +0000 Received: from mgamail.intel.com ([134.134.136.31]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rFTEf-00Cx6C-1e for linux-arm-kernel@lists.infradead.org; Tue, 19 Dec 2023 06:05:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702965945; x=1734501945; h=message-id:date:mime-version:subject:from:to:cc: references:in-reply-to:content-transfer-encoding; bh=B9VaDMUrCEz6mgrMx63+aVJwvbSy2QKfCuC4u1wqq24=; b=bSrSO4M7M38zaFA+L9IoGGP0CEj8mdHUfOKxyC1RRLsgc5Ym4oeJumPS 4btFNS3m9tCvGamPuot2ltly9gA4RNHFCTfm6X8m7+DlDxITkrK1gHxBm S/O8OfZsxh5lDzx7B9M2+lVSzzpKt6h/CckEiIGlGxTDT0r6aP3LDD/mb Yj8et0xqAJaNFpmA7aMxacVAdAcSF9zuRM5f7X1V897O9TpCKVrVKP8mr AKOE/ZxqF0NNRnWx+P39p83qyJYTQX+khOLvgI/buyoNN5gInXA++Qn4h /8h0ZvcL86bxurKkFRM506wl05iHJ8XmjPjKFurcHLI/BLCtwCzJL6H7G Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10928"; a="459953191" X-IronPort-AV: E=Sophos;i="6.04,287,1695711600"; d="scan'208";a="459953191" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Dec 2023 22:05:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,287,1695711600"; d="scan'208";a="17478195" Received: from opipikin-mobl2.ger.corp.intel.com (HELO [10.0.2.15]) ([10.252.50.174]) by orviesa002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Dec 2023 22:05:39 -0800 Message-ID: Date: Tue, 19 Dec 2023 08:05:34 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RFC V2 0/4] perf/core: Add ability for an event to "pause" or "resume" AUX area tracing From: Adrian Hunter To: Peter Zijlstra , James Clark Cc: Ingo Molnar , Mark Rutland , Alexander Shishkin , Heiko Carstens , Thomas Richter , Hendrik Brueckner , Suzuki K Poulose , Mike Leach , 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: <20231208172449.35444-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: <20231208172449.35444-1-adrian.hunter@intel.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231218_220545_646711_EB9AB99B X-CRM114-Status: GOOD ( 21.55 ) 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 8/12/23 19:24, 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. > > Changes to perf tools are not fleshed out yet. > > > 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 comments? > > > Adrian Hunter (4): > perf/core: Add aux_pause, aux_resume, aux_start_paused > perf/x86/intel/pt: Add support for pause / resume > perf tools: Add support for AUX area pause / resume > coresight: Have a stab at support for pause / resume > > arch/x86/events/intel/pt.c | 63 ++++++++++++++++++++- > arch/x86/events/intel/pt.h | 4 ++ > drivers/hwtracing/coresight/coresight-etm-perf.c | 29 ++++++++-- > include/linux/perf_event.h | 15 +++++ > include/uapi/linux/perf_event.h | 11 +++- > kernel/events/core.c | 72 +++++++++++++++++++++++- > kernel/events/internal.h | 1 + > tools/include/uapi/linux/perf_event.h | 11 +++- > tools/perf/util/auxtrace.c | 4 ++ > tools/perf/util/evsel.c | 9 +++ > tools/perf/util/evsel_config.h | 6 ++ > tools/perf/util/parse-events.c | 33 +++++++++++ > tools/perf/util/parse-events.h | 3 + > tools/perf/util/parse-events.l | 3 + > tools/perf/util/perf_event_attr_fprintf.c | 3 + > 15 files changed, 255 insertions(+), 12 deletions(-) > > > Regards > Adrian _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel