< prev index next >

src/hotspot/os_cpu/solaris_sparc/vm_version_solaris_sparc.cpp

Print this page
rev 56859 : 8233787: Break cycle in vm_version* includes
Reviewed-by:


  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "logging/log.hpp"
  27 #include "memory/allocation.hpp"
  28 #include "memory/allocation.inline.hpp"
  29 #include "runtime/os.hpp"
  30 #include "vm_version_sparc.hpp"
  31 
  32 #include <sys/auxv.h>
  33 #include <sys/systeminfo.h>
  34 #include <picl.h>
  35 #include <dlfcn.h>
  36 #include <link.h>
  37 
  38 extern "C" static int PICL_visit_cpu_helper(picl_nodehdl_t nodeh, void *result);
  39 
  40 // Functions from the library we need (signatures should match those in picl.h)
  41 extern "C" {
  42   typedef int (*picl_initialize_func_t)(void);
  43   typedef int (*picl_shutdown_func_t)(void);
  44   typedef int (*picl_get_root_func_t)(picl_nodehdl_t *nodehandle);
  45   typedef int (*picl_walk_tree_by_class_func_t)(picl_nodehdl_t rooth,
  46       const char *classname, void *c_args,
  47       int (*callback_fn)(picl_nodehdl_t hdl, void *args));
  48   typedef int (*picl_get_prop_by_name_func_t)(picl_nodehdl_t nodeh, const char *nm,
  49       picl_prophdl_t *ph);
  50   typedef int (*picl_get_propval_func_t)(picl_prophdl_t proph, void *valbuf, size_t sz);




  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "logging/log.hpp"
  27 #include "memory/allocation.hpp"
  28 #include "memory/allocation.inline.hpp"
  29 #include "runtime/os.hpp"
  30 #include "runtime/vm_version.hpp"
  31 
  32 #include <sys/auxv.h>
  33 #include <sys/systeminfo.h>
  34 #include <picl.h>
  35 #include <dlfcn.h>
  36 #include <link.h>
  37 
  38 extern "C" static int PICL_visit_cpu_helper(picl_nodehdl_t nodeh, void *result);
  39 
  40 // Functions from the library we need (signatures should match those in picl.h)
  41 extern "C" {
  42   typedef int (*picl_initialize_func_t)(void);
  43   typedef int (*picl_shutdown_func_t)(void);
  44   typedef int (*picl_get_root_func_t)(picl_nodehdl_t *nodehandle);
  45   typedef int (*picl_walk_tree_by_class_func_t)(picl_nodehdl_t rooth,
  46       const char *classname, void *c_args,
  47       int (*callback_fn)(picl_nodehdl_t hdl, void *args));
  48   typedef int (*picl_get_prop_by_name_func_t)(picl_nodehdl_t nodeh, const char *nm,
  49       picl_prophdl_t *ph);
  50   typedef int (*picl_get_propval_func_t)(picl_prophdl_t proph, void *valbuf, size_t sz);


< prev index next >