Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758461AbbGHNTf (ORCPT ); Wed, 8 Jul 2015 09:19:35 -0400 Received: from smtprelay0188.hostedemail.com ([216.40.44.188]:44006 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1758230AbbGHNTc (ORCPT ); Wed, 8 Jul 2015 09:19:32 -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:1541:1593:1594:1711:1730:1747:1777:1792:1981:2194:2199:2393:2553:2559:2562:2892:3138:3139:3140:3141:3142:3353:3622:3865:3866:3867:3868:3871:3872:3873:3874:4250:4321:5007:6119:6120:6261:7875:7901:7903:8660:10004:10400:10848:10967:11026:11232:11658:11914:12043:12438:12517:12519:12740:13069:13148:13230:13311:13357:21080,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 X-HE-Tag: face44_52fdd396d5902 X-Filterd-Recvd-Size: 2409 Date: Wed, 8 Jul 2015 09:19:28 -0400 From: Steven Rostedt To: Peter Zijlstra Cc: Chunyan Zhang , mingo@redhat.com, mathieu.poirier@linaro.org, serge.broslavsky@linaro.org, broonie@kernel.org, alexander.shishkin@linux.intel.com, zhang.lyra@gmail.com, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH v3 4/4] trace: Trace log handler for logging into STM blocks Message-ID: <20150708091928.38c7643a@gandalf.local.home> In-Reply-To: <20150708123148.GF12596@twins.programming.kicks-ass.net> References: <20150708123148.GF12596@twins.programming.kicks-ass.net> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.28; 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: 1449 Lines: 42 On Wed, 8 Jul 2015 14:31:48 +0200 Peter Zijlstra wrote: > On Tue, Jul 07, 2015 at 06:10:43PM +0800, Chunyan Zhang wrote: > > Add the function 'trace_event_stm_output_##call' for printing events > > trace log into STM blocks. > > > > This patch also adds a function call at where the events have been > > committed to ring buffer to export the trace event information to > > STM blocks. > > So then you have two copies of the data, why that? Would a scheme were > data either goes to the STM or the regular buffer not make much more > sense? > > > +++ b/include/trace/perf.h > > @@ -175,6 +175,7 @@ trace_event_raw_event_##call(void *__data, proto) \ > > { assign; } \ > > \ > > trace_event_buffer_commit(&fbuffer); \ > > + trace_event_stm_log(&fbuffer); \ > > This makes every trace event slower. Of course this could use a jump label. But I agree, I think a switch to which buffer it should be sent to is better. I could come up with a way to make the buffer more generic, and have it switch between where the event is recorded. -- Steve > > > } > > /* > > * The ftrace_test_probe is compiled out, it is only here as a build time check -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/