From 90b435028439899c5c1682f248e66d19257de3b9 Mon Sep 17 00:00:00 2001 From: Seth Howell Date: Sat, 9 May 2020 16:54:19 -0700 Subject: [PATCH] lib/thread: add a map file. Signed-off-by: Seth Howell Change-Id: If5d934f7d3f46e5c508e40c0b0c3aea65d3ba113 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2298 Reviewed-by: Jim Harris Reviewed-by: Aleksey Marchuk Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins --- lib/thread/Makefile | 2 ++ lib/thread/spdk_thread.map | 55 ++++++++++++++++++++++++++++++++++++++ test/make/check_so_deps.sh | 2 ++ 3 files changed, 59 insertions(+) create mode 100644 lib/thread/spdk_thread.map diff --git a/lib/thread/Makefile b/lib/thread/Makefile index 18ce22517..524e1bf0d 100644 --- a/lib/thread/Makefile +++ b/lib/thread/Makefile @@ -41,4 +41,6 @@ SO_SUFFIX := $(SO_VER).$(SO_MINOR) C_SRCS = thread.c LIBNAME = thread +SPDK_MAP_FILE = $(abspath $(CURDIR)/spdk_thread.map) + include $(SPDK_ROOT_DIR)/mk/spdk.lib.mk diff --git a/lib/thread/spdk_thread.map b/lib/thread/spdk_thread.map new file mode 100644 index 000000000..b71fa06eb --- /dev/null +++ b/lib/thread/spdk_thread.map @@ -0,0 +1,55 @@ +{ + global: + + # public functions in spdk/thread.h + spdk_thread_lib_init; + spdk_thread_lib_init_ext; + spdk_thread_lib_fini; + spdk_thread_create; + spdk_set_thread; + spdk_thread_exit; + spdk_thread_is_exited; + spdk_thread_destroy; + spdk_thread_get_ctx; + spdk_thread_get_cpumask; + spdk_thread_set_cpumask; + spdk_thread_get_from_ctx; + spdk_thread_poll; + spdk_thread_next_poller_expiration; + spdk_thread_has_active_pollers; + spdk_thread_has_pollers; + spdk_thread_is_idle; + spdk_thread_get_count; + spdk_get_thread; + spdk_thread_get_name; + spdk_thread_get_id; + spdk_thread_get_by_id; + spdk_thread_get_stats; + spdk_thread_get_last_tsc; + spdk_thread_send_msg; + spdk_thread_send_critical_msg; + spdk_for_each_thread; + spdk_poller_register; + spdk_poller_register_named; + spdk_poller_unregister; + spdk_poller_pause; + spdk_poller_resume; + spdk_io_device_register; + spdk_io_device_unregister; + spdk_get_io_channel; + spdk_put_io_channel; + spdk_io_channel_get_ctx; + spdk_io_channel_from_ctx; + spdk_io_channel_get_thread; + spdk_for_each_channel; + spdk_io_channel_iter_get_io_device; + spdk_io_channel_iter_get_channel; + spdk_io_channel_iter_get_ctx; + spdk_for_each_channel_continue; + + # internal functions in spdk_internal/thread.h + spdk_poller_state_str; + spdk_io_device_get_name; + + local: *; +}; diff --git a/test/make/check_so_deps.sh b/test/make/check_so_deps.sh index d8327d3b3..b2fc1fce2 100755 --- a/test/make/check_so_deps.sh +++ b/test/make/check_so_deps.sh @@ -110,6 +110,8 @@ function confirm_abi_deps() { name = spdk_opal_uid [suppress_variable] name = SPDK_LOG_REDUCE +[suppress_variable] + name = SPDK_LOG_THREAD EOF for object in "$libdir"/libspdk_*.so; do