From patchwork Sat Aug 8 23:15:00 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Horman X-Patchwork-Id: 31004 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@bilbo.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from ozlabs.org (ozlabs.org [203.10.76.45]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx.ozlabs.org", Issuer "CA Cert Signing Authority" (verified OK)) by bilbo.ozlabs.org (Postfix) with ESMTPS id 5EA4DB7B88 for ; Sun, 9 Aug 2009 09:15:17 +1000 (EST) Received: by ozlabs.org (Postfix) id 53A82DDD0B; Sun, 9 Aug 2009 09:15:17 +1000 (EST) Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by ozlabs.org (Postfix) with ESMTP id C71DADDD04 for ; Sun, 9 Aug 2009 09:15:16 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753226AbZHHXPI (ORCPT ); Sat, 8 Aug 2009 19:15:08 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753208AbZHHXPH (ORCPT ); Sat, 8 Aug 2009 19:15:07 -0400 Received: from charlotte.tuxdriver.com ([70.61.120.58]:49954 "EHLO smtp.tuxdriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753186AbZHHXPF (ORCPT ); Sat, 8 Aug 2009 19:15:05 -0400 Received: from nat-pool-rdu.redhat.com ([66.187.233.202] helo=localhost) by smtp.tuxdriver.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1MZv7y-00041r-6U; Sat, 08 Aug 2009 19:15:06 -0400 Date: Sat, 8 Aug 2009 19:15:00 -0400 From: Neil Horman To: netdev@vger.kernel.org Cc: davem@davemloft.net, rostedt@goodmis.org Subject: Re: [PATCH 2/3] net: Add ftracer to help optimize process scheduling based on incomming frame allocations (v2) Message-ID: <20090808231500.GC24414@localhost.localdomain> References: <20090807202130.GA26677@hmsreliant.think-freely.org> <20090808231322.GA24414@localhost.localdomain> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20090808231322.GA24414@localhost.localdomain> User-Agent: Mutt/1.5.18 (2008-05-17) X-Spam-Score: -1.4 (-) X-Spam-Status: No Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org skb allocation / consumption corelator - Add config option This patch adds a Kconfig option to enable the addtition of the skb source tracer. Signed-off-by: Neil Horman Kconfig | 10 ++++++++++ 1 file changed, 10 insertions(+) --- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig index 1551f47..1aeec05 100644 --- a/kernel/trace/Kconfig +++ b/kernel/trace/Kconfig @@ -234,6 +234,16 @@ config BOOT_TRACER You must pass in ftrace=initcall to the kernel command line to enable this on bootup. +config SKB_SOURCES_TRACER + bool "Trace skb source information + select GENERIC_TRACER + help + This tracer helps developers/sysadmins correlate skb allocation and + consumption. The idea being that some processes will primarily consume data + that was allocated on certain numa nodes. By being able to visualize which + nodes the data was allocated on, a sysadmin or developer can optimize the + scheduling of those processes to cut back on cross node chatter. + config TRACE_BRANCH_PROFILING bool select GENERIC_TRACER