Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2839512rwd; Fri, 9 Jun 2023 18:45:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ68R7Udo+4DT/YRx9ooeh50QlNOLnrjQJyG5+P1lPnvextRPqQefAWnTtbpQPPqd5+ROYt1 X-Received: by 2002:a17:90b:4c89:b0:259:bdd1:c46 with SMTP id my9-20020a17090b4c8900b00259bdd10c46mr2237409pjb.34.1686361507615; Fri, 09 Jun 2023 18:45:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686361507; cv=none; d=google.com; s=arc-20160816; b=ztPSMnGmm/OZBiLO1uKnSvlo8CggUn19VKbQFA7+O08iwzipe3uRdcRCsFYSuy45jM eKfGNtHqeEbRuXriPd44oUOeUQnY8v8xZRokNTBAn2jEgip7LJNWFi7jl0bs73b0CTtu 8oTTneXisWnHfkkVyfabsR1M+/aiRlGZTVo71hM0C8L+QAIdstsEb9kK6Wr+qiXE62o7 1S4yW6qH1EVS1D7LMp9tJDbfHB3e4c1uI1Yvg8S2tn6koxkp0xbE8J94etHC0kRdjHsm FVBvnf3UbvKgreXQObGzshX08T6j22vdcj0CQGoAVSisq8UkAqrtFbVWNDcnGsYbyRK+ iSwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=qMoAwEd9SlzlxTzlnGrB3GqIf4l0rMIqn94dDmyDoGA=; b=cUexnufHkNd4+27RG95APAgJmND+jJBh004ZbFa2tudDBCVC79vDbk9Bld9L30OV1s QGYpKyJOy9cM4DWkgMQ8Tn01FI4zYLif6Cj1dq0iR6qZLE8fw8EpupstX4Evr/7hw4gK Q3o8mwejE+LmTdwhcafbJFKjYKqZtkkc4q21u5AlxOfDelN51USMvYXGafqd1l6l9Uwe jW4Lowpc058ceFfpfELFM5IwLc93PakKyxRZ7pJiJSS3f6CVwaQq9m+7q/tQIDtxaLDl J9uuJes3G+oFM+17zzENpLZ9EtktdSYuaLDRws1ZTVbxV6BSJNgUhtZVsHINsfRkA7uj CCFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OOm3Ohgj; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lk8-20020a17090b33c800b0024ef1d1151bsi3680661pjb.17.2023.06.09.18.44.53; Fri, 09 Jun 2023 18:45:07 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.s=google header.b=OOm3Ohgj; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229707AbjFJBcl (ORCPT + 99 others); Fri, 9 Jun 2023 21:32:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229522AbjFJBcj (ORCPT ); Fri, 9 Jun 2023 21:32:39 -0400 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D83835BB for ; Fri, 9 Jun 2023 18:32:37 -0700 (PDT) Received: by mail-pf1-x430.google.com with SMTP id d2e1a72fcca58-651ffcc1d3dso1976503b3a.3 for ; Fri, 09 Jun 2023 18:32:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686360757; x=1688952757; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=qMoAwEd9SlzlxTzlnGrB3GqIf4l0rMIqn94dDmyDoGA=; b=OOm3OhgjZM+KfutyMsF6l5PCN2dehGk7rml7KOoEYV2LPG1G6PnhgikuF+d7n+Rfo0 srY09o5ZRTX4h+Edx0x979EiH4CeYQHvPdXrYoWpjZAbz4lFTuK6V+dkYYLXYxLoKJF7 Xjj5sXug6afD45tlamE69r4bKhD1YOZVgwrAldLc4ecC4WK6MCWn9vRto3q+xw+azMVD BrIH4uR6n1OVuQqSBq2zHMo4NV1yx8gzika/0NV3i6V1AXMYp5iaTyCpgPI8oyAXN9bN SgXXwfc5Y+kcNkNNRX0UrdRhBWTA8Zp8z80ym0R9tXvzrdUnbsyavLDJkEbeyqdlDo6p A4ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686360757; x=1688952757; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=qMoAwEd9SlzlxTzlnGrB3GqIf4l0rMIqn94dDmyDoGA=; b=Uoj5Atuw6RXPL4o4AJwIp/YJt93rZ5pwXMHo2stT5smDvvSQTIX1700vdkKlWftur/ oUQ8BajUDKLlcuFV11mxWLoDHEf4E5omgCCSneNQulcwxtBIN5fgcWFAjHChlEr5KFmf 4ZVzB1hU2RIYPKRZ9qWveBlMXVdojOjsAVSvzhJkMowcbtSU2CQ7G2W1Gc0T1r1TnKrp 2c5z1L627fJztIRjgL2lZaE3XIRqLzkqShuNZVADwD7w6fNbfuM6/rRd+1YKHngQW9QV lp3gUQiAcQrrdL+VzkvCe/2WRG9cSXf+aBXYspuasUFyUyPECzdUqIt6CR3hwi3buHX2 GDTg== X-Gm-Message-State: AC+VfDxErjnJO3tvOg2swdXR9PDv1TYA9c5roEzk1c5xOuGm/9eH5eOw 4M3h1hZloZLV7dgQncxot/FlAQ== X-Received: by 2002:a05:6a20:8405:b0:10d:f812:e4b5 with SMTP id c5-20020a056a20840500b0010df812e4b5mr2858569pzd.35.1686360757014; Fri, 09 Jun 2023 18:32:37 -0700 (PDT) Received: from leoy-huanghe ([156.59.39.102]) by smtp.gmail.com with ESMTPSA id p26-20020aa7861a000000b0063d24fcc2b7sm3210133pfn.1.2023.06.09.18.32.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Jun 2023 18:32:36 -0700 (PDT) Date: Sat, 10 Jun 2023 09:32:28 +0800 From: Leo Yan To: James Clark Cc: coresight@lists.linaro.org, Suzuki K Poulose , Mike Leach , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter , John Garry , Will Deacon , linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 3/5] perf cs-etm: Make PID format accessible from struct cs_etm_auxtrace Message-ID: <20230610013228.GB174906@leoy-huanghe> References: <20230608105930.1389276-1-james.clark@arm.com> <20230608105930.1389276-4-james.clark@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230608105930.1389276-4-james.clark@arm.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Thu, Jun 08, 2023 at 11:59:27AM +0100, James Clark wrote: > To avoid every user of PID format having to use their own static > local variable, cache it on initialisation and change the accessor to > take struct cs_etm_auxtrace. > > Signed-off-by: James Clark Reviewed-by: Leo Yan