From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751470AbZHSBXR (ORCPT ); Tue, 18 Aug 2009 21:23:17 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751418AbZHSBXP (ORCPT ); Tue, 18 Aug 2009 21:23:15 -0400 Received: from ey-out-2122.google.com ([74.125.78.25]:5821 "EHLO ey-out-2122.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751409AbZHSBXM (ORCPT ); Tue, 18 Aug 2009 21:23:12 -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:content-transfer-encoding :in-reply-to:user-agent; b=OzasKoO9ditN8+XZYE95G7xr+Js0scEFXskwx2KThF30ivTovLsM+ev1pFSLJ4y2ov QTlaj9v4nLNqqyEqN0tg5lHqSDrsFukNbzuMojSTe+cqB74wf3faXFeHjKniAWz0Q381 0Jx6M/97fEFjKmT7RvdyQKWIJ8S732zFrOG/s= Date: Wed, 19 Aug 2009 03:23:08 +0200 From: Frederic Weisbecker To: Masami Hiramatsu Cc: Ingo Molnar , Steven Rostedt , lkml , systemtap , kvm , DLE , Ananth N Mavinakayanahalli , Avi Kivity , Andi Kleen , Christoph Hellwig , "Frank Ch. Eigler" , "H. Peter Anvin" , Jason Baron , Jim Keniston , "K.Prasad" , Lai Jiangshan , Li Zefan , =?utf-8?B?UHJ6ZW15c8WCYXdQYXdlxYJjenlr?= , Roland McGrath , Sam Ravnborg , Srikar Dronamraju , Tom Zanussi , Vegard Nossum Subject: Re: [PATCH -tip v14 08/12] tracing: add kprobe-based event tracer Message-ID: <20090819012306.GJ5231@nowhere> References: <20090813203403.31965.20973.stgit@localhost.localdomain> <20090813203510.31965.29123.stgit@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20090813203510.31965.29123.stgit@localhost.localdomain> 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 On Thu, Aug 13, 2009 at 04:35:11PM -0400, Masami Hiramatsu wrote: > Add kprobes-based event tracer on ftrace. > > This tracer is similar to the events tracer which is based on Tracepoint > infrastructure. Instead of Tracepoint, this tracer is based on kprobes > (kprobe and kretprobe). It probes anywhere where kprobes can probe(this > means, all functions body except for __kprobes functions). > > Similar to the events tracer, this tracer doesn't need to be activated via > current_tracer, instead of that, just set probe points via > /sys/kernel/debug/tracing/kprobe_events. And you can set filters on each > probe events via /sys/kernel/debug/tracing/events/kprobes//filter. > > This tracer supports following probe arguments for each probe. > > %REG : Fetch register REG > sN : Fetch Nth entry of stack (N >= 0) > sa : Fetch stack address. > @ADDR : Fetch memory at ADDR (ADDR should be in kernel) > @SYM[+|-offs] : Fetch memory at SYM +|- offs (SYM should be a data symbol) > aN : Fetch function argument. (N >= 0) > rv : Fetch return value. > ra : Fetch return address. > +|-offs(FETCHARG) : fetch memory at FETCHARG +|- offs address. > > See Documentation/trace/kprobetrace.txt for details. > > Changes from v13: > - Support 'sa' for stack address. > - Use call->data instead of container_of() macro. > > Signed-off-by: Masami Hiramatsu > Acked-by: Ananth N Mavinakayanahalli > Cc: Avi Kivity > Cc: Andi Kleen > Cc: Christoph Hellwig > Cc: Frank Ch. Eigler > Cc: Frederic Weisbecker > Cc: H. Peter Anvin > Cc: Ingo Molnar > Cc: Jason Baron > Cc: Jim Keniston > Cc: K.Prasad > Cc: Lai Jiangshan > Cc: Li Zefan > Cc: Przemysław Pawełczyk > Cc: Roland McGrath > Cc: Sam Ravnborg > Cc: Srikar Dronamraju > Cc: Steven Rostedt > Cc: Tom Zanussi > Cc: Vegard Nossum > --- > > Documentation/trace/kprobetrace.txt | 139 ++++ I'll probably split this commit to have the first version of the documentation as a separate patch in order to lighten this. Frederic.