Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932315AbaJNN46 (ORCPT ); Tue, 14 Oct 2014 09:56:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52609 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755268AbaJNN45 (ORCPT ); Tue, 14 Oct 2014 09:56:57 -0400 Date: Tue, 14 Oct 2014 15:56:31 +0200 From: Jiri Olsa To: Jean Pihet Cc: Borislav Petkov , Arnaldo Carvalho de Melo , "linux-kernel@vger.kernel.org" , Fu Wei , Robert Richter , David Ahern , Ingo Molnar Subject: Re: [PATCH 1/1] rasd: Use perf_evlist__open() instead of open coded Message-ID: <20141014135631.GA32308@krava.fdxtended.com> References: <20141006212606.GF14113@kernel.org> <20141007133236.GG14113@kernel.org> <20141007140433.GG30146@pd.tnic> <20141010200708.GB18775@kernel.org> <20141010202854.GC13017@pd.tnic> <20141010204158.GA13834@kernel.org> <20141010204432.GD13017@pd.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 13, 2014 at 09:29:57AM +0200, Jean Pihet wrote: > Hi Arnaldo, Borislav, > > On 10 October 2014 22:44, Borislav Petkov wrote: > > On Fri, Oct 10, 2014 at 05:41:58PM -0300, Arnaldo Carvalho de Melo wrote: > >> Right, stoopid me, no need for some specific tracepoint, just to see > >> that whatever tp it is, it will show up in "rasd"'s event loop. Ok, I'll > >> try that later. > >> > >> Next stuff I probably will do is to move the bare minimum used by rasd > >> to tools/lib/api/perf/, i.e. there will be: > >> > >> tools/lib/api/perf/evsel.c > >> tools/perf/util/evsel.c > >> > >> Both will share the perf_evsel__ namespace (which I thought at some > >> point to make just: evsel__, wdyt?). > Makes perfectly sense > > >> > >> That way we just make public the bare minimum that already proved to be > >> useful outside tools/perf/ and over time we move stuff from > >> tools/perf/util/evsel.c (and from other tools in or out perf's repo) > >> into the lib. > That is great! > > About rasd usage, there are some details at > https://wiki.linaro.org/LEG/Engineering/Kernel/perfAndRAS#rasd_implementation. heya, sorry for late reply.. I was on vacation last week.. I read the rasd sources and realized we could poke this from another angle.. AFAIU the work the rasd does is following: - reads config file and opens configured tracepoints - reads samples comming from those tracepoints and displays/writes this data to the console/file - is there more? If I'm not missing anything, this is quite usefull/common usage pattern which would deserve new perf command. I can see the analogy with ftrace debugfs interface - choose/enable tracepoints - cat .../tracing/trace-pipe and there could be '-d' for the command to act as daemon. thoughts? ;-) jirka -- 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/