Re: PHP performance on Xen domU with mulitple vcpu

Taylor R Campbell <[email protected]>
Newsgroups gmane.os.netbsd.devel.kernel
Message-ID <[email protected]>
> Date: Sun, 6 Apr 2025 00:03:25 +0000
> From: Emmanuel Dreyfus <[email protected]>
> 
> I was not able to load dtrace:
> kobj_checksyms, 1013: [dtrace]: linker error: symbol `dtrace_smap_enable' not found

Try the attached patch?

(It would be good to have dtrace working, though it might not help in
this case -- all of the dtrace probes, except sdt:xen:hardclock:jump,
have corresponding event counters which would have gone up if the
probes would have fired.)
xensmap.patch (text/plain, 370 B)
--- a/sys/arch/amd64/amd64/cpufunc.S
+++ b/sys/arch/amd64/amd64/cpufunc.S
@@ -83,7 +83,17 @@
 END(xen_mb)
 #endif	/* XEN */
 
-#ifndef XENPV
+#ifdef XENPV
+#ifdef KDTRACE_HOOKS
+ENTRY(dtrace_smap_enable)
+	ret
+END(dtrace_smap_enable)
+
+ENTRY(dtrace_smap_disable)
+	ret
+END(dtrace_smap_disable)
+#endif
+#else
 ENTRY(invlpg)
 #ifdef SVS
 	movb	_C_LABEL(svs_pcid),%al
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.