numam-dpdk/examples/vhost_xen
Olivier Matz 5d8f0baf69 log: do not drop debug logs at compile time
Today, all logs whose level is lower than INFO are dropped at
compile-time. This prevents from enabling debug logs at runtime using
--log-level=8.

The rationale was to remove debug logs from the data path at
compile-time, avoiding a test at run-time.

This patch changes the behavior of RTE_LOG() to avoid the compile-time
optimization, and introduces the RTE_LOG_DP() macro that has the same
behavior than the previous RTE_LOG(), for the rare cases where debug
logs are in the data path.

So it is now possible to enable debug logs at run-time by just
specifying --log-level=8. Some drivers still have special compile-time
options to enable more debug log. Maintainers may consider to
remove/reduce them.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
2016-12-01 18:09:13 +01:00
..
main.c log: do not drop debug logs at compile time 2016-12-01 18:09:13 +01:00
main.h examples: remove useless debug flags 2016-05-02 15:31:17 +02:00
Makefile eal: set name to threads 2015-11-03 15:32:34 +01:00
vhost_monitor.c examples/vhost_xen: fix 32-bit build 2016-04-10 21:36:54 +02:00
virtio-net.h vhost: remove device operations pointers 2016-02-19 19:33:31 +01:00
xen_vhost.h tailq: remove unneeded inclusions 2015-03-10 11:47:46 +01:00
xenstore_parse.c remove unneeded tests for NULL when freeing 2016-01-27 15:34:48 +01:00