lib/trace: add a map file.

Signed-off-by: Seth Howell <seth.howell@intel.com>
Change-Id: Id3e4e1f3cd17739f534db9266d56ceda586312c1
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2300
Community-CI: Mellanox Build Bot
Community-CI: Broadcom CI
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
This commit is contained in:
Seth Howell 2020-05-09 17:11:53 -07:00 committed by Tomasz Zawadzki
parent 2187424ab2
commit 74dcd8e250
3 changed files with 33 additions and 0 deletions

View File

@ -41,4 +41,6 @@ SO_SUFFIX := $(SO_VER).$(SO_MINOR)
C_SRCS = trace.c trace_flags.c trace_rpc.c
LIBNAME = trace
SPDK_MAP_FILE = $(abspath $(CURDIR)/spdk_trace.map)
include $(SPDK_ROOT_DIR)/mk/spdk.lib.mk

29
lib/trace/spdk_trace.map Normal file
View File

@ -0,0 +1,29 @@
{
global:
# public functions
_spdk_trace_record;
spdk_trace_get_tpoint_mask;
spdk_trace_set_tpoints;
spdk_trace_clear_tpoints;
spdk_trace_get_tpoint_group_mask;
spdk_trace_set_tpoint_group_mask;
spdk_trace_clear_tpoint_group_mask;
spdk_trace_init;
spdk_trace_cleanup;
spdk_trace_flags_init;
spdk_trace_register_owner;
spdk_trace_register_object;
spdk_trace_register_description;
spdk_trace_get_first_register_fn;
spdk_trace_get_next_register_fn;
spdk_trace_enable_tpoint_group;
spdk_trace_disable_tpoint_group;
spdk_trace_mask_usage;
spdk_trace_add_register_fn;
# public variables
g_trace_histories;
local: *;
};

View File

@ -112,6 +112,8 @@ function confirm_abi_deps() {
name = SPDK_LOG_REDUCE
[suppress_variable]
name = SPDK_LOG_THREAD
[suppress_variable]
name = SPDK_LOG_TRACE
EOF
for object in "$libdir"/libspdk_*.so; do