< prev index next >

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

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2020, 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.

@@ -52,10 +52,11 @@
 #define true  1
 #define false 0
 #endif
 
 struct ps_prochandle;
+struct lib_info;
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 

@@ -97,10 +98,13 @@
 uintptr_t get_lib_base(struct ps_prochandle* ph, int index);
 
 // returns true if given library is found in lib list
 bool find_lib(struct ps_prochandle* ph, const char *lib_name);
 
+// returns lib which contains pc
+struct lib_info *find_lib_by_address(struct ps_prochandle* ph, uintptr_t pc);
+
 // symbol lookup
 uintptr_t lookup_symbol(struct ps_prochandle* ph,  const char* object_name,
                        const char* sym_name);
 
 // address->nearest symbol lookup. return NULL for no symbol
< prev index next >