libosmocore/include/osmocom
Jacob Erlbeck a89d22c0f0 log: Add conditional logging based on log_check_level
Currently the LOGP/DEBUGP arguments are always evaluated even if
no logging will happen at all. This can be expensive, for instance
if hexdumps or pretty printed object names are generated. This causes
high base load especially on embedded devices and is a major part of
CPU usage e.g. of the osmo-pcu.

This commit uses the log_check_level function to avoid the evaluation
of the parameters if it is known in advance, that no logging entry
will be generated.

Sponsored-by: On-Waves ehf
2016-02-29 14:30:14 +01:00
..
codec include: Switch to #pragma once pattern 2014-06-16 10:17:27 +02:00
core log: Add conditional logging based on log_check_level 2016-02-29 14:30:14 +01:00
crypt include: Switch to #pragma once pattern 2014-06-16 10:17:27 +02:00
ctrl vty: add ctrl section for Control interface bind address 2016-02-25 11:02:35 +01:00
gprs gb: Add bssgp_msgb_copy function 2016-02-22 10:20:49 +01:00
gsm fix gsm_7bit_decode API comment: septets, not octets 2016-02-29 09:56:26 +01:00
sim sim: Use extern for these structs to generate a linkage 2015-04-11 19:31:03 +02:00
vty vty: add ctrl section for Control interface bind address 2016-02-25 11:02:35 +01:00