Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4339569rwb; Tue, 8 Nov 2022 15:54:03 -0800 (PST) X-Google-Smtp-Source: AMsMyM7Fxp/SetMyTp0lwKfCoIDiFIPonhNm8U1nwEDQi03d83rUJR80CclTI+Tz3SSCXWTYfy8Q X-Received: by 2002:a17:906:fcb0:b0:7ae:388:98c5 with SMTP id qw16-20020a170906fcb000b007ae038898c5mr34144322ejb.120.1667951643453; Tue, 08 Nov 2022 15:54:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667951643; cv=none; d=google.com; s=arc-20160816; b=QEjtPA1pCKxzbTDZnPAPBOb56DrU7ibil4y7U+2ZhVPel6SbJ9W/as9PJzeOshzIPI qlHwvXWLuUvRYLTbZBFpaBXQZoVKNQD6L880/ciftb+cQb9JA8vHQNkNStGLaxsiNFhJ inIXrsrD7lASPJ0vc7aqnYRzmO5buZV29tagHsEqkvQy6s9njoD5W5Tr494CcRJkE0V+ pamnssC0P7f3rS7aMIRrSkcDvvv2W+IFqOp+tYalOjNoJNEV74YirCcjMpdl/YMF+YzT XtM2TdGpuCUbRuDu5jnlKH5qnWzbfgBFEo0cCZTS88h+n4fan1RiZQ7HLB6ZyBD91J02 DFuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=g9Ww2/55MfDxYmCA7OxgObJfRlVPxxAvVeXhAogk+80=; b=mMSn4TMxo/RJlz3OjLRmauVuUhh0RXLYXkWreEB4HMNOjWf48KRN1Dj/ZHf+slDT7F TRGZe8jCnU/gasx0hF8x/4s3FP1fIaTr54uV4g05Zw0y2cARsLjsfAUOXIugB+7Zaalf DWgeyHAAf+sYSGfbvi9o/Lz4N8Z7EkSZI1ecXc7S6S/iBhPOz1CphVG8bPF8NWzwiYMm 6B/VWmYptWbRF/Gkj2iqKaJsQtO/AdvmyQZCh4bEHHFwnBNeEkgkd7W3cZEnLFxIqjg0 XP+9jWb8WFm+W44E95kxK43Sa/K+6tOFhZrouhbCZLfhCdCze12AqN5J2VIRptEF9iMO Nhdg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qf37-20020a1709077f2500b007ae4717bef9si14492797ejc.733.2022.11.08.15.53.11; Tue, 08 Nov 2022 15:54:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229982AbiKHXbJ (ORCPT + 92 others); Tue, 8 Nov 2022 18:31:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229774AbiKHXbI (ORCPT ); Tue, 8 Nov 2022 18:31:08 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 22698BF63; Tue, 8 Nov 2022 15:31:04 -0800 (PST) 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 94E2623A; Tue, 8 Nov 2022 15:31:10 -0800 (PST) Received: from [10.57.68.207] (unknown [10.57.68.207]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C5B443F703; Tue, 8 Nov 2022 15:31:02 -0800 (PST) Message-ID: <607fe06e-5109-ecfe-155b-624422970bdf@arm.com> Date: Tue, 8 Nov 2022 23:31:01 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: [PATCH v5 09/14] perf: cs-etm: Move mapping of Trace ID and cpu into helper function To: Mike Leach , coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: mathieu.poirier@linaro.org, peterz@infradead.org, mingo@redhat.com, acme@kernel.org, linux-perf-users@vger.kernel.org, leo.yan@linaro.org, quic_jinlmao@quicinc.com References: <20221101163103.17921-1-mike.leach@linaro.org> <20221101163103.17921-10-mike.leach@linaro.org> From: Suzuki K Poulose In-Reply-To: <20221101163103.17921-10-mike.leach@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/11/2022 16:30, Mike Leach wrote: > The information to associate Trace ID and CPU will be changing. > > Drivers will start outputting this as a hardware ID packet in the data > file which if present will be used in preference to the AUXINFO values. > > To prepare for this we provide a helper functions to do the individual ID > mapping, and one to extract the IDs from the completed metadata blocks. > > Signed-off-by: Mike Leach > Reviewed-by: James Clark > --- Acked-by: Suzuki K Poulose