< prev index next >

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

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 24,39 **** #ifndef _PROC_SERVICE_H_ #define _PROC_SERVICE_H_ #include <stdio.h> ! #include <thread_db.h> #include "jni.h" - // Linux does not have the proc service library, though it does provide the - // thread_db library which can be used to manipulate threads without having - // to know the details of NPTL // copied from Solaris "proc_service.h" typedef enum { PS_OK, /* generic "call succeeded" */ PS_ERR, /* generic error */ --- 24,37 ---- #ifndef _PROC_SERVICE_H_ #define _PROC_SERVICE_H_ #include <stdio.h> ! #include <sys/procfs.h> #include "jni.h" + #include "libproc.h" // copied from Solaris "proc_service.h" typedef enum { PS_OK, /* generic "call succeeded" */ PS_ERR, /* generic error */
*** 77,86 **** 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); - // new libthread_db of NPTL seem to require this symbol - JNIEXPORT ps_err_e JNICALL - ps_get_thread_area(); - #endif /* _PROC_SERVICE_H_ */ --- 75,80 ----
< prev index next >