Go to file
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
app app/test: fix crash of LPM test 2016-11-12 22:27:09 +01:00
buildtools pmdinfogen: fix endianness with cross-compilation 2016-12-01 16:11:51 +01:00
config log: do not drop debug logs at compile time 2016-12-01 18:09:13 +01:00
doc log: do not drop debug logs at compile time 2016-12-01 18:09:13 +01:00
drivers log: do not drop debug logs at compile time 2016-12-01 18:09:13 +01:00
examples log: do not drop debug logs at compile time 2016-12-01 18:09:13 +01:00
lib log: do not drop debug logs at compile time 2016-12-01 18:09:13 +01:00
mk ethdev: rename library for consistency 2016-11-06 20:53:23 +01:00
pkg version: 16.11.0 2016-11-13 15:28:12 +01:00
scripts scripts: check cc stable mailing list in commit 2016-12-01 16:03:01 +01:00
tools tools: bind crypto devices 2016-10-04 20:41:09 +02:00
.gitattributes improve git diff 2016-11-13 15:25:12 +01:00
.gitignore doc: generate NIC overview table from ini files 2016-08-03 18:42:17 +02:00
GNUmakefile pmdinfogen: add buildtools and pmdinfogen utility 2016-07-06 22:34:39 +02:00
LICENSE.GPL doc: GPL/LGPL licenses 2013-07-25 14:43:06 +02:00
LICENSE.LGPL doc: fix file format (dos to unix) 2013-09-06 11:43:07 +02:00
MAINTAINERS maintainers: update pcap maintainers 2016-11-30 14:53:18 +01:00
Makefile remove trailing whitespaces 2014-06-11 00:29:34 +02:00
README doc: add readme file 2015-12-13 22:06:58 +01:00

DPDK is a set of libraries and drivers for fast packet processing.
It supports many processor architectures and both FreeBSD and Linux.

The DPDK uses the Open Source BSD license for the core libraries and
drivers. The kernel components are GPLv2 licensed.

Please check the doc directory for release notes,
API documentation, and sample application information.

For questions and usage discussions, subscribe to: users@dpdk.org
Report bugs and issues to the development mailing list: dev@dpdk.org