From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966283AbbDWPds (ORCPT ); Thu, 23 Apr 2015 11:33:48 -0400 Received: from foss.arm.com ([217.140.101.70]:51492 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965185AbbDWPdo (ORCPT ); Thu, 23 Apr 2015 11:33:44 -0400 Message-ID: <1429803222.3242.24.camel@arm.com> Subject: Re: [PATCH] tracing: Export key trace event symbols From: Pawel Moll To: David Ahern Cc: Arnaldo Carvalho de Melo , Steven Rostedt , Ron Rechenmacher , Christoph Hellwig , "linux-kernel@vger.kernel.org" , Arjan van de Ven , Namhyung Kim , Stephane Eranian Date: Thu, 23 Apr 2015 16:33:42 +0100 In-Reply-To: <1429802909.3242.23.camel@arm.com> References: <55364CF4.2090600@fnal.gov> <20150421132355.GA18161@infradead.org> <55365002.4010707@fnal.gov> <20150421095310.12370f88@gandalf.local.home> <55366609.4020709@fnal.gov> <20150421114931.63fd343d@gandalf.local.home> <5536CDF1.2020801@fnal.gov> <20150421184446.7b63cbec@gandalf.local.home> <55370673.60504@fnal.gov> <20150422085314.1b07e0b7@gandalf.local.home> <20150422144751.GC2316@kernel.org> <5537BFF4.1050605@gmail.com> <1429802909.3242.23.camel@arm.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.10-0ubuntu1~14.10.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2015-04-23 at 16:28 +0100, Pawel Moll wrote: > On Wed, 2015-04-22 at 16:36 +0100, David Ahern wrote: > > On 4/22/15 8:47 AM, Arnaldo Carvalho de Melo wrote: > > > Em Wed, Apr 22, 2015 at 08:53:14AM -0400, Steven Rostedt escreveu: > > >> >On Tue, 21 Apr 2015 21:24:51 -0500 > > >> >Ron Rechenmacher wrote: > > >>> > >I've looked at the above reference briefly and it appears that user-space > > >>> > >would be mmapping the buffer read-only. Is that correct? > > >> > > > >> >Correct, but I'm sure we could still add something (if it doesn't > > >> >already exist) to have userspace write into the buffer. Ftrace has that > > >> >with the trace_marker file. > > > There is something in the works, I guess Pawell Moll (sp) was working on it, and > > > David Ahern (CCed) should know, David? > > > > > > > I played around with generating perf events in userspace with the > > intention of having the userspace events get merged with kernel events > > during the processing stage, but I did not take it to the point of > > integrating into perf. This was around October 2013. I got distracted > > with other topics and have not come back to it. > > > > Pawel has a patch that allows userspace to inject events into the stream > > via ioctl calls. > > In the last version it was even a prctl - no need for a perf file > descriptor any more :-) > > But the patch requires more care if it's to go in, so I'm open to people > screaming "yes, we need it!" ;-) Forgot to quote the link: http://article.gmane.org/gmane.linux.kernel.api/5851 Pawel