From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933430AbdHYO6V (ORCPT ); Fri, 25 Aug 2017 10:58:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:59860 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932732AbdHYO6T (ORCPT ); Fri, 25 Aug 2017 10:58:19 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 77443219AA Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=goodmis.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=rostedt@goodmis.org Date: Fri, 25 Aug 2017 10:58:14 -0400 From: Steven Rostedt To: Prarit Bhargava Cc: John Stultz , Joel Fernandes , lkml , Mark Salyzyn , Jonathan Corbet , Petr Mladek , Sergey Senozhatsky , Thomas Gleixner , Stephen Boyd , Andrew Morton , Greg Kroah-Hartman , "Paul E. McKenney" , Christoffer Dall , Deepa Dinamani , Ingo Molnar , Kees Cook , Peter Zijlstra , Geert Uytterhoeven , "Luis R. Rodriguez" , Nicholas Piggin , "Jason A. Donenfeld" , Olof Johansson , Josh Poimboeuf , linux-doc@vger.kernel.org Subject: Re: [PATCH 2/2 v8] printk: Add monotonic, boottime, and realtime timestamps Message-ID: <20170825105814.3cf3ff50@gandalf.local.home> In-Reply-To: References: <1503582122-22841-1-git-send-email-prarit@redhat.com> <1503582122-22841-3-git-send-email-prarit@redhat.com> X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.31; 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 List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 25 Aug 2017 10:46:21 -0400 Prarit Bhargava wrote: > np. I'm going to copy the code for > > u64 notrace ktime_get_boot_fast_ns(void) > > but I'm unsure why the function is marked "notrace", and if > __ktime_get_real_fast_ns_unsafe() must be as well? I don't see anything in the > git log that indicates why the function is notrace. > > I've added Joel to this thread ... The "notrace" is added because it is one of the trace clocks: kernel/trace/trace.c: { ktime_get_boot_fast_ns, "boot", 1 }, And function tracer can use it. We don't want to be tracing the clock that the function tracer is using (otherwise it will get double traced). It use to bug, but I believe I finally got the recursion protection working to prevent that. -- Steve