java.lang.Object
com.ibm.j9ddr.corereaders.tdump.zebedee.le.Edb
This class represents an LE Enclave Data Block. This provides access to such things as the
chain of Dlls. Normally this object is obtained via the Caa, but as a convenience a method
is provided to obtain one directly from an AddressSpace.
-
Constructor Summary
ConstructorsConstructorDescriptionEdb
(long address, AddressSpace space, boolean is64bit) Constructs a new Edb given the address of the edb structure -
Method Summary
Modifier and TypeMethodDescriptionlong
address()
Returns the address of this edb.long
Returns the ceeosigr addresslong
Returns the qpcb addresslong
Returns the ceeedbdbalong
Returns the ceeedbensm addresslong
Returns the ceeedboptcb (options control block - ocb) addresslong
long
static Edb[]
getEdbs
(AddressSpace space) Returns an array of all the Edbs in the given address space.Return a java.util.Properties object containing the environment variables.Returns the first in the chain of Dlls (or null if there aren't any).long
getMallocSize
(long ptr) Given a malloc'd pointer, returns the size of the area.static Edb
getSampleEdb
(AddressSpace space) Returns a "sample" Edb for the given address space.boolean
rptstg()
Returns true if the LE runtime option RPTSTG(ON) is setboolean
storage()
Returns true if the LE runtime option STORAGE(ON) is set
-
Constructor Details
-
Edb
Constructs a new Edb given the address of the edb structure
-
-
Method Details
-
address
public long address()Returns the address of this edb. -
ceeedbensm
Returns the ceeedbensm address- Throws:
IOException
- if an error occurred reading from the address space
-
ensm_aheap
- Throws:
IOException
-
ensm_uheap
- Throws:
IOException
-
ceeedboptcb
Returns the ceeedboptcb (options control block - ocb) address- Throws:
IOException
- if an error occurred reading from the address space
-
ceeedb_ceeosigr
Returns the ceeosigr address- Throws:
IOException
- if an error occurred reading from the address space
-
ceeedb_qpcb
Returns the qpcb address- Throws:
IOException
- if an error occurred reading from the address space
-
getMallocSize
Given a malloc'd pointer, returns the size of the area. Note that this may not be the actual size requested in the original malloc call if heap pools are in use because heap pools round up to the nearest pool size. This method is mainly for use in estimating memory usage.- Throws:
IOException
- if an error occurred reading from the address spaceIllegalArgumentException
- if the pointer was not the address of a malloc'd area
-
ceeedbdba
Returns the ceeedbdba- Throws:
IOException
- if an error occurred reading from the address space
-
getSampleEdb
Returns a "sample" Edb for the given address space. Note that for certain applications (CICS?) there can be more than one Edb per address space. Returns null if there is no Edb. XXX to be removed once we fix the AddressSpace/Process issue -
getEdbs
Returns an array of all the Edbs in the given address space. -
getFirstDll
Returns the first in the chain of Dlls (or null if there aren't any).- Throws:
IOException
- if an error occurred reading from the address space
-
getEnvVars
Return a java.util.Properties object containing the environment variables.- Throws:
IOException
-
rptstg
Returns true if the LE runtime option RPTSTG(ON) is set- Throws:
IOException
-
storage
Returns true if the LE runtime option STORAGE(ON) is set- Throws:
IOException
-