Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754209AbdLDL0K (ORCPT ); Mon, 4 Dec 2017 06:26:10 -0500 Received: from smtprelay0163.hostedemail.com ([216.40.44.163]:48566 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753167AbdLDL0J (ORCPT ); Mon, 4 Dec 2017 06:26:09 -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: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:2903:3138:3139:3140:3141:3142:3353:3622:3865:3866:3867:3868:3871:3873:3874:4321:4362:5007:6261:7875:7903:10004:10400:10848:10967:11026:11232:11473:11658:11914:12114:12438:12555:12740:12760:12895:12986:13069:13161:13229:13255:13311:13357:13439:14096:14097:14181:14659:14721:21080:21324:21326:21451:21627:30012:30054:30083: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: list28_6fbb33a9a111f X-Filterd-Recvd-Size: 2357 Date: Mon, 4 Dec 2017 06:26:02 -0500 From: Steven Rostedt To: Patrick Bellasi Cc: linux-kernel@vger.kernel.org, Ingo Molnar , Peter Zijlstra , Dietmar Eggemann , Joel Fernandes Subject: Re: [PATCH] tracing: Fix trace_preempt_{on,off} for !CONFIG_DEBUG_PREEMPT builds Message-ID: <20171204062602.4f1ea332@vmware.local.home> In-Reply-To: <20171204094642.6901-1-patrick.bellasi@arm.com> References: <20171204094642.6901-1-patrick.bellasi@arm.com> X-Mailer: Claws Mail 3.15.1 (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: 1368 Lines: 36 On Mon, 4 Dec 2017 09:46:42 +0000 Patrick Bellasi wrote: > The new preempt enable/disable events introduced by: > > d59158162 tracing: Add support for preempt and irq enable/disable events > > are defined only for CONFIG_DEBUG_PREEMPT kernels when the > CONFIG_PREEMPTIRQ_EVENTS support, introduced by the above patch, is > enabled. > > These events are generated within by trace_preempt_{on,off} calls, > which are part of the the "Preemption-off Latency Tracer" > (CONFIG_PREEMPT_TRACER). > > Currently these calls are (correctly) generated on CONFIG_PREEMPT_TRACER > even when the kernel is !CONFIG_DEBUG_PREEMPT configured. Thus leading > to an undefined reference to the new trace events. > > Let's ensure that we always have an (eventually) empty definition of the > events for CONFIG_PREEMPTIRQ_EVENTS kernels. > > This patch will ensure that the additional preempt enabled/disable > events are generated only when we have both: > CONFIG_PREEMPT_TRACER && CONFIG_DEBUG_PREEMPT > > Signed-off-by: Patrick Bellasi Thanks, but you're the third person to send me a fix for this. I have the first fixed applied to my code based off of 4.14-rc1 but that branch breaks my tests. I was waiting for rc2 to come out (which just happened), to rebase on and run my tests. I'll do that now. Thanks, -- Steve