Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754717AbcKUW0R (ORCPT ); Mon, 21 Nov 2016 17:26:17 -0500 Received: from smtprelay0103.hostedemail.com ([216.40.44.103]:35788 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753260AbcKUW0Q (ORCPT ); Mon, 21 Nov 2016 17:26:16 -0500 X-Session-Marker: 726F737465647440676F6F646D69732E6F7267 X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,rostedt@goodmis.org,:::::::::,RULES_HIT:41:355:379:541:599:800:960:973:988:989:1183:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2693:2890:2895:2896:3138:3139:3140:3141:3142:3352:3622:3865:3868:3870:3873:3874:4042:5007:6119:6261:7875:10004:10400:10848:10967:11026:11232:11473:11658:11914:12043:12296:12438:12555:12663:12740:12760:13069:13200:13229:13311:13357:13439:14096:14097:14181:14659:14721:21067:21080:21450:21451:30001:30054:30070:30090:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:4,LUA_SUMMARY:none X-HE-Tag: pin66_1974528cb315b X-Filterd-Recvd-Size: 2150 Date: Mon, 21 Nov 2016 17:26:13 -0500 From: Steven Rostedt To: Joel Fernandes Cc: linux-kernel@vger.kernel.org, Thomas Gleixner , John Stultz , Ingo Molnar Subject: Re: [PATCH v2 2/2] trace: Add an option for boot clock as trace clock Message-ID: <20161121172613.50178540@gandalf.local.home> In-Reply-To: <1479766370-31311-2-git-send-email-joelaf@google.com> References: <1479766370-31311-1-git-send-email-joelaf@google.com> <1479766370-31311-2-git-send-email-joelaf@google.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 Content-Length: 1132 Lines: 34 On Mon, 21 Nov 2016 14:12:50 -0800 Joel Fernandes wrote: > Unlike monotonic clock, boot clock as a trace clock will account for > time spent in suspend useful for tracing suspend/resume. This uses > earlier introduced infrastructure for using the fast boot clock. > > Cc: Steven Rostedt > Cc: Thomas Gleixner > Cc: John Stultz > Cc: Ingo Molnar > Signed-off-by: Joel Fernandes > --- > kernel/trace/trace.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c > index 8696ce6..f7b64db 100644 > --- a/kernel/trace/trace.c > +++ b/kernel/trace/trace.c > @@ -1125,6 +1125,7 @@ static struct { > { trace_clock, "perf", 1 }, > { ktime_get_mono_fast_ns, "mono", 1 }, > { ktime_get_raw_fast_ns, "mono_raw", 1 }, > + { ktime_get_boot_fast_ns, "boot", 1 }, > ARCH_TRACE_CLOCKS > }; > I'm fine with this change, but can you please update Documentation/trace/ftrace.txt under trace_clock. I notice that mono and mono_raw are missing too. -- Steve