[dpdk-dev] [PATCH 3/7] optimize log/panic

Vincent JARDIN vincent.jardin at 6wind.com
Wed Jun 5 16:34:42 CEST 2013


On 30/05/2013 19:12, Stephen Hemminger wrote:
> Both logging and calls to panic are never in the critical path.
> Use the GCC attribute cold to mark these functions as cold,
> which generates more optimised code.
>
> Signed-off-by: Stephen Hemminger<shemminger at vyatta.com>
Reviewed-by: Vincent Jardin <vincent.jardin at 6wind.com>

It does not hurt to move both to a cold section. TODO: some other init 
and setup functions should be cold too.




More information about the dev mailing list