Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758584Ab0G3OEk (ORCPT ); Fri, 30 Jul 2010 10:04:40 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:49943 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756593Ab0G3OEi (ORCPT ); Fri, 30 Jul 2010 10:04:38 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=O6TCUNUaDdPK+3w9fcmN39LXElM3KXClLEx/RyAsx3n8gXE/bZ4oSErnY1wz6o6i6z MTCWN2OaOGikQWIFbeV1nLwagyQvM1dn8a7ARzSrfZKSFxyIjmvvqgmcMy83Sn84ZBh+ cut3ZV06XSelXSVgSnLv6BDTwWADD4V7MzjiQ= Date: Fri, 30 Jul 2010 16:04:42 +0200 From: Frederic Weisbecker To: Mel Gorman Cc: Andrew Morton , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, Dave Chinner , Chris Mason , Nick Piggin , Rik van Riel , Johannes Weiner , Christoph Hellwig , Wu Fengguang , KAMEZAWA Hiroyuki , KOSAKI Motohiro , Andrea Arcangeli Subject: Re: [PATCH 1/6] vmscan: tracing: Roll up of patches currently in mmotm Message-ID: <20100730140441.GB5269@nowhere> References: <1280497020-22816-1-git-send-email-mel@csn.ul.ie> <1280497020-22816-2-git-send-email-mel@csn.ul.ie> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1280497020-22816-2-git-send-email-mel@csn.ul.ie> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1756 Lines: 55 On Fri, Jul 30, 2010 at 02:36:55PM +0100, Mel Gorman wrote: > This is a roll-up of patches currently in mmotm related to stack reduction and > tracing reclaim. It is based on 2.6.35-rc6 and included for the convenience > of testing. > > No signed off required. > --- > .../trace/postprocess/trace-vmscan-postprocess.pl | 654 ++++++++++++++++++++ I have the feeling you've made an ad-hoc post processing script that seems to rewrite all the format parsing, debugfs, stream handling, etc... we have that in perf tools already. May be you weren't aware of what we have in perf in terms of scripting support. First, launch perf list and spot the events you're interested in, let's say you're interested in irqs: $ perf list [...] irq:irq_handler_entry [Tracepoint event] irq:irq_handler_exit [Tracepoint event] irq:softirq_entry [Tracepoint event] irq:softirq_exit [Tracepoint event] [...] Now do a trace record: # perf record -e irq:irq_handler_entry -e irq:irq_handler_exit -e irq:softirq_entry -e irq:softirq_exit cmd or more simple: # perf record -e irq:* cmd You can use -a instead of cmd for wide tracing. Now generate a perf parsing script on top of these traces: # perf trace -g perl generated Perl script: perf-trace.pl Fill up the trace handlers inside perf-trace.pl and just run it: # perf trace -s perf-trace.pl Once ready, you can place your script in the script directory. -- 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/