lib/log: add map file.

Signed-off-by: Seth Howell <seth.howell@intel.com>
Change-Id: Ib376a31d307a6bb4a3b4fde52b8ec14bc748a539
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2216
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Seth Howell 2020-05-06 15:13:57 -07:00 committed by Tomasz Zawadzki
parent ed0e32a17a
commit ab0b76c40e
3 changed files with 30 additions and 0 deletions

View File

@ -44,4 +44,6 @@ ifeq ($(CONFIG_LOG_BACKTRACE),y)
LOCAL_SYS_LIBS += -lunwind
endif
SPDK_MAP_FILE = $(abspath $(CURDIR)/spdk_log.map)
include $(SPDK_ROOT_DIR)/mk/spdk.lib.mk

26
lib/log/spdk_log.map Normal file
View File

@ -0,0 +1,26 @@
{
global:
# public functions
spdk_log_open;
spdk_log_close;
spdk_log_set_level;
spdk_log_get_level;
spdk_log_set_backtrace_level;
spdk_log_get_backtrace_level;
spdk_log_set_print_level;
spdk_log_get_print_level;
spdk_log;
spdk_log_dump;
spdk_log_get_flag;
spdk_log_set_flag;
spdk_log_clear_flag;
spdk_log_usage;
# functions used by other SPDK libraries
spdk_log_register_flag;
spdk_log_get_first_flag;
spdk_log_get_next_flag;
local: *;
};

View File

@ -58,6 +58,8 @@ function confirm_abi_deps() {
name = spdk_jsonrpc_parse_response
[suppress_variable]
name = SPDK_LOG_LOG_RPC
[suppress_variable]
name = SPDK_LOG_LOG
EOF
for object in "$libdir"/libspdk_*.so; do