git: 8a693ccf86f9 - main - Export symbols from opensolaris.ko and dtrace.ko

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Wed, 17 Nov 2021 18:51:20 UTC
The branch main has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=8a693ccf86f90469910c5b2425ddb8a75e298487

commit 8a693ccf86f90469910c5b2425ddb8a75e298487
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2021-11-17 16:01:59 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2021-11-17 18:51:10 +0000

    Export symbols from opensolaris.ko and dtrace.ko
    
    Both modules provide many symbols used by various DTrace provider
    modules, so just export everything.
    
    MFC after:      1 week
    Sponsored by:   The FreeBSD Foundation
---
 sys/modules/dtrace/dtrace/Makefile | 4 +---
 sys/modules/opensolaris/Makefile   | 2 +-
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/sys/modules/dtrace/dtrace/Makefile b/sys/modules/dtrace/dtrace/Makefile
index 55f9f4f66f36..712e10331a38 100644
--- a/sys/modules/dtrace/dtrace/Makefile
+++ b/sys/modules/dtrace/dtrace/Makefile
@@ -49,9 +49,7 @@ CFLAGS+=	-I${SYSDIR}/cddl/compat/opensolaris \
 		-I${SYSDIR}/cddl/contrib/opensolaris/common/util \
 		-I${SYSDIR} -DDIS_MEM
 
-EXPORT_SYMS=	dtrace_register \
-		dtrace_unregister \
-		dtrace_probe_lookup
+EXPORT_SYMS=	YES
 
 dtrace_asm.o:  assym.inc
 
diff --git a/sys/modules/opensolaris/Makefile b/sys/modules/opensolaris/Makefile
index 536b9637cd3c..7010485b0ee7 100644
--- a/sys/modules/opensolaris/Makefile
+++ b/sys/modules/opensolaris/Makefile
@@ -27,7 +27,7 @@ SRCS+=		opensolaris_atomic.c
 
 CFLAGS+= 	${OPENZFS_CFLAGS}
 
-EXPORT_SYMS=	cpu_core
+EXPORT_SYMS=	YES
 
 IGNORE_PRAGMA=	1