Received: by 2002:a05:6a10:5594:0:0:0:0 with SMTP id ee20csp572254pxb; Mon, 25 Apr 2022 16:57:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5O9zJ5qV5fVIT394D5lW4C42txM6sjNe/VgDzKWZwrUEyGIo1/dqUbk0S//3hQXJZVU74 X-Received: by 2002:a17:907:1b14:b0:6ef:a5c8:afbd with SMTP id mp20-20020a1709071b1400b006efa5c8afbdmr19239661ejc.151.1650931045282; Mon, 25 Apr 2022 16:57:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650931045; cv=none; d=google.com; s=arc-20160816; b=AR8OowTJeE3DXq8rlIncN5Z02PFvE1Q9LZq2z4g6Rk/1XAWwfvlLn4Byb+wmsGsrCe GqjnFN26EYLmhLhLfvrDIaAqJB1aJ5IwMH456HQW9FGlM8pBJaETtG9Tit9CEWfPKqu+ IszmxtCHx0Ayy3AcL6F3e18+fcNnCFWpiBdjlfcC37nqZCcbwyts4dNL55RFm9EeRBlp 3MznbRL5P4uyWnBDGuVccRlR6f+BUgVyMy3E5x1x8lxOUCqJpadETxTptguVX5xN2hAn 9DUX6PqRwlhPOIVliJSTb1gNgSUTKQU0Ba0MvYwUeSMEpGwxPfsrHxlbdl5u/NdYW0dD 2L3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :dlp-version:dlp-reaction:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=+YLr68Al76/Vdjip6s2XpaWC53/CRQYuom1Nf2sS2AY=; b=R8DPvvlu7/DiCeJ4Z2VhYVH6okYMAdp/NkgA9qiA18nb9wuCmn6CBHVyQqVDRohQbW ilNL9iaF3tIvPMahmDS9cr/aE3U20xqtxLTEbNC/EclnmQm2VZdTzjC831ZEerhRRIRX +GmKdQRl5ZqdeihXpiG5kCEh1+nJSC8yv20++dLDJOE2Liyy+5rRzXFxLKv5cF/OQBFp LLjKVHEqk/NXqGYhrg7vQFRPbg1u0adATFt5QIUM15VVEu2T5DEDeVcQkjvDb5/cB4Vk oAJAghmu/t5g4hS/xTD++/0U96/jXk7ynDWlfTg5LuQ9hpT2oed9Yfrx8fxE/1h6wmVy hp1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="b9bi1/Sd"; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mm6-20020a170906cc4600b006e8a4dc2851si15035449ejb.0.2022.04.25.16.57.01; Mon, 25 Apr 2022 16:57:25 -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=@intel.com header.s=Intel header.b="b9bi1/Sd"; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243557AbiDYQwt (ORCPT + 99 others); Mon, 25 Apr 2022 12:52:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243585AbiDYQwm (ORCPT ); Mon, 25 Apr 2022 12:52:42 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D69A724969; Mon, 25 Apr 2022 09:49:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1650905377; x=1682441377; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=x1VjlOLFf7+Iwtn5He+Gw098wHontYefP4lyjR1he+4=; b=b9bi1/SdNNCgm03qImb79kNc92BtVmgknXpIjjRJuDxvy4oDjCTtqueq gOBs0YVnAoorP14Igtzhn/qLLjuIKqG0fJnjx/u61CBaFAqtVw1o6zllf 1LEm4Zzv4NWjfZ9vcwOC+H/mv6jhSRLRNlcb1ULIgc9H0v8IF/9/r48mS aH6mO9AT9N8/L2O+E/cOGtSkyszGaDrCGKORKKwAcyyK0+geK43PHoJ+Z XhYJHbY0xu0VV+t6nZpCFvEain3xhqvXgRMGGgXPnwuyn6Fv1uFSFr2JR Ul0E86yoKJxqAsGZnMqAsa/36nuPW/6jjAUL4ZDbjttyPBXULknzsSjRj A==; X-IronPort-AV: E=McAfee;i="6400,9594,10328"; a="264822399" X-IronPort-AV: E=Sophos;i="5.90,288,1643702400"; d="scan'208";a="264822399" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Apr 2022 09:49:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,289,1643702400"; d="scan'208";a="628115236" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by fmsmga004.fm.intel.com with ESMTP; 25 Apr 2022 09:49:36 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Mon, 25 Apr 2022 09:49:36 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Mon, 25 Apr 2022 09:49:35 -0700 Received: from fmsmsx610.amr.corp.intel.com ([10.18.126.90]) by fmsmsx610.amr.corp.intel.com ([10.18.126.90]) with mapi id 15.01.2308.027; Mon, 25 Apr 2022 09:49:35 -0700 From: "Luck, Tony" To: Steven Rostedt CC: "hdegoede@redhat.com" , "markgross@kernel.org" , "tglx@linutronix.de" , "mingo@redhat.com" , "bp@alien8.de" , "dave.hansen@linux.intel.com" , "x86@kernel.org" , "hpa@zytor.com" , "corbet@lwn.net" , "gregkh@linuxfoundation.org" , "andriy.shevchenko@linux.intel.com" , "Joseph, Jithu" , "Raj, Ashok" , "Williams, Dan J" , "linux-kernel@vger.kernel.org" , "linux-doc@vger.kernel.org" , "platform-driver-x86@vger.kernel.org" , "patches@lists.linux.dev" , "Shankar, Ravi V" Subject: RE: [PATCH v4 09/10] trace: platform/x86/intel/ifs: Add trace point to track Intel IFS operations Thread-Topic: [PATCH v4 09/10] trace: platform/x86/intel/ifs: Add trace point to track Intel IFS operations Thread-Index: AQHYVoPmGcq84+Hs50ec7Nq4KoK2Oa0BMJaA//+oPOA= Date: Mon, 25 Apr 2022 16:49:35 +0000 Message-ID: <1752057af33e4eb28bcea0fd75e44048@intel.com> References: <20220419163859.2228874-1-tony.luck@intel.com> <20220422200219.2843823-1-tony.luck@intel.com> <20220422200219.2843823-10-tony.luck@intel.com> <20220425105251.3f5e8021@gandalf.local.home> In-Reply-To: <20220425105251.3f5e8021@gandalf.local.home> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.6.401.20 x-originating-ip: [10.1.200.100] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 > > Add tracing support which may be useful for debugging systems that fail= to complete > > In Field Scan tests. > > > > Reviewed-by: Dan Williams > > Signed-off-by: Tony Luck > > --- > > MAINTAINERS | 1 + > > drivers/platform/x86/intel/ifs/runtest.c | 5 ++++ > > include/trace/events/intel_ifs.h | 38 ++++++++++++++++++++++++ > > From the tracing POV: > > Acked-by: Steven Rostedt (Google) Question for the future of this driver. There are a couple more scan tools= coming in the future. The interface is similar: WRMSR to start a scan RDMSR to get the results For this first one, I made the trace code do some user friendly decoding of= the WRMSR value to just show the two interesting fields (start & stop). The future scan modes will have different fields. I see two paths: 1) Create a new user friendly trace point for each new scan mode. 2) Just provide a generic one that dumps both the 64-bit WRMSR and RDMSR va= lues. Q: Are trace points "expensive" in some way ... so better to just have one = than three? Or are the cheap enough that decoding for the user is an OK thing? Thanks -Tony