[dpdk-dev] [PATCH 1/2] ixgbe: add "cold" attribute to setup/teardown fns

Thomas Monjalon thomas.monjalon at 6wind.com
Fri Jul 3 17:45:34 CEST 2015


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?


More information about the dev mailing list