Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758168AbYHDQ20 (ORCPT ); Mon, 4 Aug 2008 12:28:26 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754889AbYHDQ2Q (ORCPT ); Mon, 4 Aug 2008 12:28:16 -0400 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.123]:63889 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754658AbYHDQ2P (ORCPT ); Mon, 4 Aug 2008 12:28:15 -0400 Date: Mon, 4 Aug 2008 12:28:12 -0400 (EDT) From: Steven Rostedt X-X-Sender: rostedt@gandalf.stny.rr.com To: Arnaldo Carvalho de Melo cc: Ming Lei , linux-kernel@vger.kernel.org, Ingo Molnar , Andrew Morton , Steven Rostedt Subject: Re: [RFC] ftrace: support tracing functions in one module In-Reply-To: <20080804161506.GA17964@ghostprotocols.net> Message-ID: References: <20080804161506.GA17964@ghostprotocols.net> User-Agent: Alpine 1.10 (DEB 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1171 Lines: 41 On Mon, 4 Aug 2008, Arnaldo Carvalho de Melo wrote: > > > > Do you have the plan to support tracing functions in one module or in one kernel > > address range? > > What about using: > > [acme@doppio pahole]$ nm --defined-only /usr/lib/debug/lib/modules/2.6.24.7-75.el5rt/kernel/drivers/net/tg3.ko.debug | grep ' t ' | cut -d' ' -f3 | head > __tg3_set_coalesce > __tg3_set_mac_addr > __tg3_set_rx_mode > _tw32_flush > tg3_5700_link_polarity > tg3_abort_hw > tg3_alloc_rx_skb > tg3_ape_driver_state_change > tg3_bmcr_reset > tg3_change_mtu > [acme@doppio pahole]$ > > Feed this to /sys/kernel/debug/tracing/set_ftrace_filter and you should > be set, no? > > Ok, you need to have the kernel-debuginfo package installed, and I guess > we can get away with that, but for now, isn't that enough? Or simply (again for tg3 : # awk '/\[tg3\]/ { print $3 }' /proc/kallsyms \ > /debug/tracing/set_ftrace_filter -- Steve -- 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/