log: optimize log/panic with attribute cold
authorStephen Hemminger <shemminger@vyatta.com>
Thu, 30 May 2013 17:12:37 +0000 (17:12 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 17 Sep 2013 12:09:21 +0000 (14:09 +0200)
commit2450abdf9039621f93cd1bdf5c1dbea96659b633
tree7b6e18dce3412fb265503b6d5e55f886aa5f4e23
parent494a02537f18699298e5f87ba9ad6114ba2d1415
log: optimize log/panic with attribute cold

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@vyatta.com>
Reviewed-by: Vincent Jardin <vincent.jardin@6wind.com>
lib/librte_eal/common/include/rte_debug.h
lib/librte_eal/common/include/rte_log.h