From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH 1/2] ixgbe: add "cold" attribute to setup/teardown fns Date: Fri, 03 Jul 2015 17:45:34 +0200 Message-ID: <2430733.IxTGXH4ElX@xps13> References: <1435938006-22254-1-git-send-email-bruce.richardson@intel.com> <1435938006-22254-2-git-send-email-bruce.richardson@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Bruce Richardson Return-path: Received: from mail-wg0-f52.google.com (mail-wg0-f52.google.com [74.125.82.52]) by dpdk.org (Postfix) with ESMTP id 021BB683D for ; Fri, 3 Jul 2015 17:46:44 +0200 (CEST) Received: by wgjx7 with SMTP id x7so91358063wgj.2 for ; Fri, 03 Jul 2015 08:46:43 -0700 (PDT) In-Reply-To: <1435938006-22254-2-git-send-email-bruce.richardson@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi Bruce, 2015-07-03 16:40, Bruce Richardson: > As well as the fast-path functions in the rxtx code, there are also > functions which set up and tear down the descriptor rings. Since these > are not performance critical functions, there is no need to have them > extensively optimized, so we add __attribute__((cold)) to their > definitions. This has the side-effect of making debugging them easier as > the compiler does not optimize them as heavily, so more variables are > accessible by default in gdb. What is the benefit, compared to -O0?