Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3604303rdb; Wed, 13 Sep 2023 18:14:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE5lrrRC3FT17P8V5G7X57qFJQuBEQ799oKTmRCwNATn+ot2p9sMsHhnwTzo1/+zYUsIA7D X-Received: by 2002:a05:6a00:998:b0:68e:2d9d:b0cc with SMTP id u24-20020a056a00099800b0068e2d9db0ccmr5034525pfg.6.1694654069002; Wed, 13 Sep 2023 18:14:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694654068; cv=none; d=google.com; s=arc-20160816; b=rbDQ3b26GyfGEqVraU+FSiHkk+D4Lr1CXh6M7zaN1POlmU+S/Bw1AcXQj8yZ+sYvK+ IRmx8W+5OSlMCLIvyoNtn2qHQdaWLqAUI0HMsI702eqmv2QU7/UQwshDqHp3pxUKcIB/ APONhNPpEY/aBdjyyP0bHUTQwqOUH7CjfVG3oPg+l/1zaH+uTrW8Itktb9iEhF/qOlsj 50vbukh+n5S90uqYGmQjUu8ya8QOd/pyr8Pei3bETS2LsEoIpaRrl6ehAK0Oy4PveKqo xLRI/VVHjNVP2MQH/d7c0UtKjyBSHPAYFx9afBwoIDdrNM7SwyksWoRvABQCgk4pV5mC lcNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=BaPXEhyTHar+Z9iFiuX4H+2rX52D1gCM2x0bzrYZGKw=; fh=8xS9zNNEexx7KHEczBpq5wXIDtxA/g5mXnxETx6X+p0=; b=weYW66CcnHL8fP3MgQAtHYpZ493/WGWwGuwupdnjCfs3chN+G3JD1+ZAGZAuZj3y19 Xdfl7wuLRNec0+e4H2ZcWuhi99akuOYLK33IE1ImTWNkxVRlk92sEeKbqZiS6VglWtuW GgE4/WD3IrMS7bkdNYAbfsa/cbhavZq7S28Jigf3ZD8DOm1ogMwkHq9W385r4JJCB3QY bgXvU5nG8JeTleoAvVh6wROvV5O3hCQXXiqQiptVB/0LyXDRGsycyVFkkeYL827sG7Xj DEiGTv7zD8VttKRZ957+llwsmLtzYc1SYL70n2RW1z1f2AhKRaoKMQN8Cw4JQ5iR//EB 7jcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=V79RYm2I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id j9-20020a056a00234900b0068a3e169b99si472511pfj.260.2023.09.13.18.14.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 18:14:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=V79RYm2I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id BC16483EB31F; Wed, 13 Sep 2023 11:38:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231972AbjIMSiL (ORCPT + 99 others); Wed, 13 Sep 2023 14:38:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231860AbjIMSiA (ORCPT ); Wed, 13 Sep 2023 14:38:00 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B6A6A3; Wed, 13 Sep 2023 11:37:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694630276; x=1726166276; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Z8Z0UQUOAbWvwtFJniXI4N/ipWPW87ZWVEGdjD0eBS0=; b=V79RYm2IUEkWgsPARVyFPUZtgSizfBKRusXPyE/9EqrPZPhM5gU35/tE FTnqgPoMwBENvSlp/1mTyrID4z9dFPQOIq1g6P649QAfsTxnAPP1vNEfQ p076ovaojNrHjNRD0+8Ed3cvqfAP+x4TFwYg712iF4BjMU2z5UNk6hmRr BQhb82tMc/6Z92AqTmcLsTnWhsNccwcXmAZEg8WxLV1rIRjnoDMhrroJN 0SVsOh1BaAbSSRB9XNy+VCnt0ytUBQ3clI4Dlv6b7pO45jhWWuT9dNG80 YChCrXUNMYkJF/BdwcAMaPnR5GTM9bl3MSw3jUwv6Gtkl+vTyEtb3TYSe Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10832"; a="369019159" X-IronPort-AV: E=Sophos;i="6.02,143,1688454000"; d="scan'208";a="369019159" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2023 11:37:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10832"; a="744238587" X-IronPort-AV: E=Sophos;i="6.02,143,1688454000"; d="scan'208";a="744238587" Received: from jithujos.sc.intel.com ([172.25.103.66]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2023 11:37:55 -0700 From: Jithu Joseph To: hdegoede@redhat.com, markgross@kernel.org Cc: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, rostedt@goodmis.org, jithu.joseph@intel.com, ashok.raj@intel.com, tony.luck@intel.com, linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org, patches@lists.linux.dev, ravi.v.shankar@intel.com, pengfei.xu@intel.com Subject: [PATCH 05/10] trace: platform/x86/intel/ifs: Modify scan trace Date: Wed, 13 Sep 2023 11:33:43 -0700 Message-Id: <20230913183348.1349409-6-jithu.joseph@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230913183348.1349409-1-jithu.joseph@intel.com> References: <20230913183348.1349409-1-jithu.joseph@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 13 Sep 2023 11:38:16 -0700 (PDT) Account for the 8/16 bit MSR bitfield width differences between gen0 and newer generations in the scan trace path. Signed-off-by: Jithu Joseph Reviewed-by: Tony Luck Tested-by: Pengfei Xu --- include/trace/events/intel_ifs.h | 16 ++++++++-------- drivers/platform/x86/intel/ifs/runtest.c | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/include/trace/events/intel_ifs.h b/include/trace/events/intel_ifs.h index d7353024016c..af0af3f1d9b7 100644 --- a/include/trace/events/intel_ifs.h +++ b/include/trace/events/intel_ifs.h @@ -10,25 +10,25 @@ TRACE_EVENT(ifs_status, - TP_PROTO(int cpu, union ifs_scan activate, union ifs_status status), + TP_PROTO(int cpu, int start, int stop, u64 status), - TP_ARGS(cpu, activate, status), + TP_ARGS(cpu, start, stop, status), TP_STRUCT__entry( __field( u64, status ) __field( int, cpu ) - __field( u8, start ) - __field( u8, stop ) + __field( u16, start ) + __field( u16, stop ) ), TP_fast_assign( __entry->cpu = cpu; - __entry->start = activate.start; - __entry->stop = activate.stop; - __entry->status = status.data; + __entry->start = start; + __entry->stop = stop; + __entry->status = status; ), - TP_printk("cpu: %d, start: %.2x, stop: %.2x, status: %llx", + TP_printk("cpu: %d, start: %.4x, stop: %.4x, status: %.16llx", __entry->cpu, __entry->start, __entry->stop, diff --git a/drivers/platform/x86/intel/ifs/runtest.c b/drivers/platform/x86/intel/ifs/runtest.c index 4bbab6be2fa2..ba3f9ad88a82 100644 --- a/drivers/platform/x86/intel/ifs/runtest.c +++ b/drivers/platform/x86/intel/ifs/runtest.c @@ -206,7 +206,7 @@ static void ifs_test_core(int cpu, struct device *dev) status.data = msrvals[1]; - trace_ifs_status(cpu, activate, status); + trace_ifs_status(cpu, to_start, to_stop, status.data); /* Some cases can be retried, give up for others */ if (!can_restart(status)) -- 2.25.1