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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D7592C433F5 for ; Mon, 1 Nov 2021 15:42:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9F41660EBB for ; Mon, 1 Nov 2021 15:42:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232390AbhKAPpa (ORCPT ); Mon, 1 Nov 2021 11:45:30 -0400 Received: from foss.arm.com ([217.140.110.172]:42318 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229658AbhKAPp2 (ORCPT ); Mon, 1 Nov 2021 11:45:28 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id CA75213A1; Mon, 1 Nov 2021 08:42:54 -0700 (PDT) Received: from [10.1.33.137] (e127744.cambridge.arm.com [10.1.33.137]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 98B213F5A1; Mon, 1 Nov 2021 08:42:52 -0700 (PDT) Subject: Re: [RFC] perf arm-spe: Track task context switch for cpu-mode events From: German Gomez To: Leo Yan Cc: Namhyung Kim , James Clark , Arnaldo Carvalho de Melo , Jiri Olsa , Ingo Molnar , Peter Zijlstra , LKML , Andi Kleen , Ian Rogers , Stephane Eranian , Adrian Hunter References: <87dad53f-a9a5-cd36-7348-ee10f4edd8fb@arm.com> <20211011142940.GB37383@leoy-ThinkPad-X240s> <8a1eafe3-d19e-40d6-f659-de0e9daa5877@arm.com> <20211018132328.GG130233@leoy-ThinkPad-X240s> <354d76da-5402-5c24-516f-c1f7e58590fc@arm.com> <20211101151101.GA375622@leoy-ThinkPad-X240s> <70967300-4854-30d5-7ab4-5e2601052036@arm.com> Message-ID: <0bcb26fb-f04d-7ba7-1118-37022466ccc5@arm.com> Date: Mon, 1 Nov 2021 15:42:50 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <70967300-4854-30d5-7ab4-5e2601052036@arm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/11/2021 15:36, German Gomez wrote: > [...] > Not really. It will only peek at the first decoded packet without Slight correction for clarity: s/decoded packet/decoded record/. I would be peeking at the first record in the auxtrace queue. The context packet is stored in the context_id field of the record. > dropping it. I couldn't think of a corner case where the decoder might > miss a context packet for the first records (I also haven't seen any -1 > values so far). >