Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp125452pxb; Thu, 21 Apr 2022 19:00:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrMSGZQMSJq3dRWX9kc8qsN5Q2M0SJd2jq2FmxIm1d4JZGD7UOB68vJIDOWLSsPfGRXs+I X-Received: by 2002:a17:903:240f:b0:156:8e81:a0a3 with SMTP id e15-20020a170903240f00b001568e81a0a3mr2272006plo.13.1650592821186; Thu, 21 Apr 2022 19:00:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650592821; cv=none; d=google.com; s=arc-20160816; b=xRTBpBN8xZVFlmJgXiBYSsVNDQUrOQ/YOlPYwob88ElSivnScGplpOIyBp4UBLtYDx 8iwhXEMKq1b6aRJs4dg8Y+xlxM0RT9Vs0zz4Jwj73aGfYyNX6Ty+FA/tvxedRtEpUMOc IP5Fy4aPo8+MfkkPJe74rKHlsvZDFpNpesCxr9z/8k3bnHTCmzyP3vD2HFdgALFgDfKO mnvmY3ikX3sIgDRJg1W7XsaV05Z3d5aRJAgzzDAXpVWZ5qSrl2ozxr3WZ5Uz0bGRJixx ehd5tFvHldtFSW98Et5dKwD/CkToVeX8Jw30YATpxv+VXqdubCQAfQODPHZqDOOwWUuy I2ww== 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=ueo/YIUcy0uRuOOHZZGfXfvl1O1CDqh4nWRcDB7pgjI=; b=yMaa4VPK1RO4Sz9yWAZYY+sGhREEAbOMCm23NkJGAq+FSHtVoKa9dbQMg/YFpxNvJL TGgKTYoaOLypUMf3C6bqFNOEPRZApNFZ71SLPUE1OwbMPQmLhaEqqC0OmFxI7seZ6O91 99NjzlMldWC2Ke1kBsrX5ACObgjdrfevfslFfMhe+KyS5YcnhmtuoXDgHv4L0WhaklMl +C/0QtiLevn1/gj4tBAeMByP88rdEV5wCksVC5FcHxKMjiOAJO2cR34ZMkfv8/ISJpaw DM3ZzqLYIFRaboJo5aCY7ZH2b5R/L4oZfEiUKmzjpsNkCoksCuiWNyXi9V01U5pZZWDn 0Dhg== 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 nv16-20020a17090b1b5000b001cb7cda1a79si11666907pjb.148.2022.04.21.18.59.37; Thu, 21 Apr 2022 19:00:21 -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 S1383262AbiDTXld (ORCPT + 99 others); Wed, 20 Apr 2022 19:41:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344527AbiDTXlc (ORCPT ); Wed, 20 Apr 2022 19:41:32 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D4323969C; Wed, 20 Apr 2022 16:38:45 -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 C0C5D61B38; Wed, 20 Apr 2022 23:38:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5CCADC385A1; Wed, 20 Apr 2022 23:38:41 +0000 (UTC) Date: Wed, 20 Apr 2022 19:38:39 -0400 From: Steven Rostedt To: Tony Luck 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, jithu.joseph@intel.com, ashok.raj@intel.com, dan.j.williams@intel.com, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, platform-driver-x86@vger.kernel.org, patches@lists.linux.dev, ravi.v.shankar@intel.com Subject: Re: [PATCH v3 10/11] trace: platform/x86/intel/ifs: Add trace point to track Intel IFS operations Message-ID: <20220420193839.6e9d810b@gandalf.local.home> In-Reply-To: <20220419163859.2228874-11-tony.luck@intel.com> References: <20220407191347.9681-1-jithu.joseph@intel.com> <20220419163859.2228874-1-tony.luck@intel.com> <20220419163859.2228874-11-tony.luck@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 Tue, 19 Apr 2022 09:38:58 -0700 Tony Luck wrote: > +TRACE_EVENT(ifs_status, > + > + TP_PROTO(union ifs_scan activate, union ifs_status status), Really, you want to pass the structure in by value, so that we have two copies? One to get to this function and then one to write to the ring buffer? -- Steve > + > + TP_ARGS(activate, status), > + > + TP_STRUCT__entry( > + __field( u64, status ) > + __field( u8, start ) > + __field( u8, stop ) > + ), > + > + TP_fast_assign( > + __entry->start = activate.start; > + __entry->stop = activate.stop; > + __entry->status = status.data; > + ), > + > + TP_printk("start: %.2x, stop: %.2x, status: %llx", > + __entry->start, > + __entry->stop, > + __entry->status) > +); > + > +#endif /* _TRACE_IFS_H */