Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751630AbdGZVVD (ORCPT ); Wed, 26 Jul 2017 17:21:03 -0400 Received: from smtprelay0119.hostedemail.com ([216.40.44.119]:47240 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751078AbdGZVVC (ORCPT ); Wed, 26 Jul 2017 17:21:02 -0400 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:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1539:1593:1594:1711:1730:1747:1777:1792:2198:2199:2393:2553:2559:2562:3138:3139:3140:3141:3142:3352:3622:3865:3866:3868:3870:3871:3873:3874:4321:5007:6261:7875:7903:10004:10400:10848:10967:11232:11658:11914:12740:12760:12895:13069:13311:13357:13439:14181:14659:14721:21080:21092:21324:21433:21627:30041:30054:30064:30090:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:2,LUA_SUMMARY:none X-HE-Tag: maid17_8db2eebcd517 X-Filterd-Recvd-Size: 1738 Date: Wed, 26 Jul 2017 17:20:57 -0400 From: Steven Rostedt To: "Brandt, Todd E" Cc: "Huang, Ying" , "Liu, Mengyang" , "linux-kernel@vger.kernel.org" Subject: Re: Is it possible to use ftrace to measure secondary CPU bootup time Message-ID: <20170726172057.6a9dd7db@vmware.local.home> In-Reply-To: <11E08D716F0541429B7042699DD5C1A1A45814E1@FMSMSX103.amr.corp.intel.com> References: <874lu2fkv4.fsf@yhuang-dev.intel.com> <20170724051702.5a0a4ec8@vmware.local.home> <11E08D716F0541429B7042699DD5C1A1A45814E1@FMSMSX103.amr.corp.intel.com> X-Mailer: Claws Mail 3.15.0-dirty (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: 681 Lines: 17 On Mon, 24 Jul 2017 21:40:24 +0000 "Brandt, Todd E" wrote: > Function graph tracing is indeed the target, as its the basis of the bootgraph > tool. However, kprobes would work just as well. What's the difference in effort > between enabling kprobes for early boot vs function graph trace? > Hmm, good question. But then again, if you are only worried about timings, tracing functions and looking at how long the next function happens after the one you are interested in, should give you a good idea of how long that function took. If there is more interest, I could spend some time seeing if I can get function graph tracing working early. -- Steve