Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp589099pxj; Thu, 3 Jun 2021 14:19:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5Gc/8P2Xbgs9BtEVAGmLikReZejS96SRcxwGTBr7X3i3Qceiq9nTiCUX7/ewTbnStylkx X-Received: by 2002:a05:6402:188:: with SMTP id r8mr1316735edv.75.1622755174850; Thu, 03 Jun 2021 14:19:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622755174; cv=none; d=google.com; s=arc-20160816; b=MpZGSBhzjOYoypMPoDZXqi8Q9+Z1u3Fub3WmAKN2WpOlGFUjJ5PoQyUnLQTixaSA8G IbLxGfnJJKqgt5GQ4+N7Sb0ejvShDtRppVnMC2LU9fD8r3BfXaSOzMDISaqmtM1/+F04 Q/XoZbo6Pj8XvjrCWz+B8b0owxOyhsw2EA/QZqcaSs1+A5SPCqIRgfEirQ8Piy314pxp I18s1LaZLYRIkyikrPAr9+ZrwDAyvVVNrMb2Y5UM9rW3Tc3zXD+Tgr9243I62kABStRf PjjBMTTZ1xNvhtkIFms7H4F8hyCTafgRGRaXf5m5rv3RcpZZoQOqSOAcRSIQv7B+Ropw wcQg== 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=TYVkZgcQO+Mhhl+FoKamYLbVsrJjiC2WRCucUlmKcTg=; b=rCGT1CQlTsNF50KV8a4QTPdI2LqhFWPgesP11Ns02zfV8RXHPCT6csVHVMm+d5pCcD igzc/RjaePxU7B3Q62eBkTDbsqaZ6tWDN2A37p4GKNjDwwZgx2/RjDIpZ4zImOAZxu1K 735pSXc9o2/qw/qaLsZJyY3tuR+UyYeyLE4Nd7koBJmyAeRzCY8j0fBEBXNS4FsPguK/ MEl5NugfCD/PyGpKCHdwUNwcgd5lXYxJYf8TvP/MZ8KWaTHlbjdctALBxrB6hH4tnj3B H6HIANcSdJ5CFvc7PeCrKzcptxz3IZD9o9THnSFQplClARLHocialtk5UohTjolM2e9i H98Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a4si3002989ejs.331.2021.06.03.14.19.09; Thu, 03 Jun 2021 14:19:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230062AbhFCVTr (ORCPT + 99 others); Thu, 3 Jun 2021 17:19:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:48712 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229963AbhFCVTq (ORCPT ); Thu, 3 Jun 2021 17:19:46 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3A9DF6139A; Thu, 3 Jun 2021 21:18:00 +0000 (UTC) Date: Thu, 3 Jun 2021 17:17:58 -0400 From: Steven Rostedt To: Daniel Bristot de Oliveira Cc: linux-kernel@vger.kernel.org, Phil Auld , Sebastian Andrzej Siewior , Kate Carcia , Jonathan Corbet , Ingo Molnar , Peter Zijlstra , Thomas Gleixner , Alexandre Chartre , Clark Willaims , John Kacur , Juri Lelli , linux-doc@vger.kernel.org Subject: Re: [PATCH V3 4/9] tracing/hwlat: Implement the per-cpu mode Message-ID: <20210603171758.48da3357@gandalf.local.home> In-Reply-To: <187db3f9eed1603c858a1f7669d0140dfb753bfd.1621024265.git.bristot@redhat.com> References: <187db3f9eed1603c858a1f7669d0140dfb753bfd.1621024265.git.bristot@redhat.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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 14 May 2021 22:51:13 +0200 Daniel Bristot de Oliveira wrote: > void trace_hwlat_callback(bool enter) > { > - if (smp_processor_id() != nmi_cpu) > + struct hwlat_kthread_data *kdata = get_cpu_data(); > + > + if (kdata->kthread) Shouldn't that be: if (!kdata->kthread) ? -- Steve > return; > > /* > @@ -158,13 +173,13 @@ void trace_hwlat_callback(bool enter) > */ > if (!IS_ENABLED(CONFIG_GENERIC_SCHED_CLOCK)) { > if (enter) > - nmi_ts_start = time_get(); > + kdata->nmi_ts_start = time_get(); > else > - nmi_total_ts += time_get() - nmi_ts_start; > + kdata->nmi_total_ts += time_get() - kdata->nmi_ts_start; > } > > if (enter) > - nmi_count++; > + kdata->nmi_count++; > } >