From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_2 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EEB9EC433DF for ; Tue, 19 May 2020 22:18:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BA540207E8 for ; Tue, 19 May 2020 22:18:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727063AbgESWSH (ORCPT ); Tue, 19 May 2020 18:18:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:34138 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725998AbgESWSG (ORCPT ); Tue, 19 May 2020 18:18:06 -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 015DE2075F; Tue, 19 May 2020 22:18:03 +0000 (UTC) Date: Tue, 19 May 2020 18:18:02 -0400 From: Steven Rostedt To: Thomas Gleixner Cc: LKML , x86@kernel.org, "Paul E. McKenney" , Andy Lutomirski , Alexandre Chartre , Frederic Weisbecker , Paolo Bonzini , Sean Christopherson , Masami Hiramatsu , Petr Mladek , Joel Fernandes , Boris Ostrovsky , Juergen Gross , Brian Gerst , Mathieu Desnoyers , Josh Poimboeuf , Will Deacon , Tom Lendacky , Wei Liu , Michael Kelley , Jason Chen CJ , Zhao Yakui , "Peter Zijlstra \(Intel\)" Subject: Re: [patch V6 01/37] tracing/hwlat: Use ktime_get_mono_fast_ns() Message-ID: <20200519181802.5c88c557@gandalf.local.home> In-Reply-To: <871rnf7g61.fsf@nanos.tec.linutronix.de> References: <20200515234547.710474468@linutronix.de> <20200515235124.466962628@linutronix.de> <20200519172627.7e65669e@gandalf.local.home> <871rnf7g61.fsf@nanos.tec.linutronix.de> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 19 May 2020 23:45:10 +0200 Thomas Gleixner wrote: > >> @@ -165,20 +155,22 @@ void trace_hwlat_callback(bool enter) > >> * Used to repeatedly capture the CPU TSC (or similar), looking for potential > >> * hardware-induced latency. Called with interrupts disabled and with > >> * hwlat_data.lock held. > >> + * > >> + * Use ktime_get_mono_fast() here as well because it does not wait on the > >> + * timekeeping seqcount like ktime_get_mono(). > > > > When doing a "git grep ktime_get_mono" I only find > > ktime_get_mono_fast_ns() (and this comment), so I don't know what to compare > > that to. Did you mean another function? > > Yeah. I fatfingered the comment. The code uses ktime_get_mono_fast_ns(). Well, I assumed that's what you meant with "ktime_get_mono_fast()" but I don't know what function you are comparing it to that waits on the seqcount like "ktime_get_mono()" as there is no such function. -- Steve