numam-dpdk/lib/librte_eal
Ivan Malov b22e77c026 eal: register log type and pick level from args
Dynamic log types are registered on RTE_INIT() step.
This allows one to set log levels by EAL options on
application launch. However, this does not allow to
manage log types if they are created during runtime.

EAL does not store log levels and types passed from
the command line. Thus, they cannot be picked later.
This is an obvious flaw since it would be better to
be able to pick levels for dynamic types registered
for runtime-determined facilities such as NIC ports.

This patch provides a mechanism to store log levels
passed from EAL options and adds an API to register
log types and pick levels from the internal storage.

Signed-off-by: Ivan Malov <ivan.malov@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
Reviewed-by: Andy Moreton <amoreton@solarflare.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
2018-03-30 14:08:44 +02:00
..
bsdapp move kernel modules directories 2018-03-21 23:04:21 +01:00
common eal: register log type and pick level from args 2018-03-30 14:08:44 +02:00
linuxapp move kernel modules directories 2018-03-21 23:04:21 +01:00
Makefile lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
meson.build move kernel modules directories 2018-03-21 23:04:21 +01:00
rte_eal_version.map eal: register log type and pick level from args 2018-03-30 14:08:44 +02:00