Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp3287980ioa; Tue, 26 Apr 2022 00:01:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+JBlT6XC6D02IBCTrdELYenmZMG62slhUssG16HwG/pAOOrW/Ma0Ek2gfg3fzqR0jHUDu X-Received: by 2002:a05:6a00:10cc:b0:4fe:3f1c:2d1 with SMTP id d12-20020a056a0010cc00b004fe3f1c02d1mr23000102pfu.0.1650956510384; Tue, 26 Apr 2022 00:01:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650956510; cv=none; d=google.com; s=arc-20160816; b=Iy+Mu48S8XCrR19gbNo9ZfLBOHs5U5JyBbLXUlq12awotENJyx9L6F0uZUQTOpSoyd zoqEEGmyUuSvqBJWINDkRGvoA0UrfbJcU2MrxLDHC5QqqCx1819EHBDPsDlQ28N4M+5c kEgfraJjbnsJPbAVWBWPdb3XdijqTz9VxrDM/vB/jkzti9IpoUCoomivzPQuwLC4u6ct V3ELrSEndEGg+h0RKKramapVdRytOJBUP5uKIL9AIyjZUUwmvJ+Tao5QzT/juz58rCpl N+7Ryv7eZH4hdBpfSP7AkVMY9SCsCwXu09ZLLp60Mad5/EVWik+dSmq3ZQcDnTPoRzl9 DYSw== 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:subject:cc:to:from:date; bh=izqpc3oouAp8fkMNMtwW1Eot4Qitnd/sHTSDx/gsgbo=; b=epznFXSGwens78JfFkGZlQVB2jPqXYQtVLxThRBTwi6dQoPO6/L8lxT4hGFIuMchPI fLf9cuehra9fJP3RsHTuvYQf7xqW/8acagM1yC8J+emE5mK+AbM42n5reuy+TvEr6fGI RgkqbTGHiCxusT9rHSYS9lpM+Wd8H60hgkXkJorc02r012Ky1niaRWboxohcPT2/Rob3 Yq3GV1qLM6hQRgiKOydxFugHecsVaNzi84BuMdDmW+XYTdtiMi9Kn0Wh3mX9rg3YO2F0 PkIrYVN4Sr7+4oVxFpG2bcv/HvHZnK8xXGJfTVWHQnx3XOhig/WEdvD9FX7n1/F0HQvc 8tVg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y8-20020a056a00190800b004fa3a8e00b1si18613631pfi.360.2022.04.26.00.01.36; Tue, 26 Apr 2022 00:01:50 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241495AbiDZBwk (ORCPT + 99 others); Mon, 25 Apr 2022 21:52:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241566AbiDZBwi (ORCPT ); Mon, 25 Apr 2022 21:52:38 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FDEB120D04; Mon, 25 Apr 2022 18:49:33 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D305461748; Tue, 26 Apr 2022 01:49:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 29014C385A7; Tue, 26 Apr 2022 01:49:30 +0000 (UTC) Date: Mon, 25 Apr 2022 21:49:28 -0400 From: Steven Rostedt To: "Luck, Tony" 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 Message-ID: <20220425214928.2aac3391@gandalf.local.home> In-Reply-To: <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> <1752057af33e4eb28bcea0fd75e44048@intel.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS 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 Mon, 25 Apr 2022 16:49:35 +0000 "Luck, Tony" wrote: > 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 values. > > 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? Yes, they are expensive as each TRACE_EVENT() can add a few KB of text and data. But you can add a DECLARE_EVENT_CLASS() and then add "printk" differences that are less memory heavy. See DEFINE_EVENT_PRINT(). -- Steve