< prev index next >

src/jdk.hotspot.agent/linux/native/libsaproc/proc_service.h

Print this page

        

@@ -40,10 +40,14 @@
         PS_BADADDR,     /* bad address */
         PS_NOSYM,       /* p_lookup() could not find given symbol */
         PS_NOFREGS      /* FPU register set not available for given lwp */
 } ps_err_e;
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 // ps_getpid() is only defined on Linux to return a thread's process ID
 JNIEXPORT pid_t JNICALL
 ps_getpid(struct ps_prochandle *ph);
 
 // ps_pglobal_lookup() looks up the symbol sym_name in the symbol table

@@ -75,6 +79,10 @@
 ps_lgetfpregs(struct ps_prochandle *ph, lwpid_t lid, prfpregset_t *fpregs);
 
 JNIEXPORT ps_err_e JNICALL
 ps_lgetregs(struct ps_prochandle *ph, lwpid_t lid, prgregset_t gregset);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _PROC_SERVICE_H_ */
< prev index next >