- java.lang.Object
-
- com.ibm.j9ddr.corereaders.tdump.zebedee.le.Edb
-
public class Edb extends Object
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
Constructors Constructor Description Edb(long address, AddressSpace space, boolean is64bit)
Constructs a new Edb given the address of the edb structure
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
address()
Returns the address of this edb.long
ceeedb_ceeosigr()
Returns the ceeosigr addresslong
ceeedb_qpcb()
Returns the qpcb addresslong
ceeedbdba()
Returns the ceeedbdbalong
ceeedbensm()
Returns the ceeedbensm addresslong
ceeedboptcb()
Returns the ceeedboptcb (options control block - ocb) addresslong
ensm_aheap()
long
ensm_uheap()
static Edb[]
getEdbs(AddressSpace space)
Returns an array of all the Edbs in the given address space.Properties
getEnvVars()
Return a java.util.Properties object containing the environment variables.Dll
getFirstDll()
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 Detail
-
Edb
public Edb(long address, AddressSpace space, boolean is64bit)
Constructs a new Edb given the address of the edb structure
-
-
Method Detail
-
address
public long address()
Returns the address of this edb.
-
ceeedbensm
public long ceeedbensm() throws IOException
Returns the ceeedbensm address- Throws:
IOException
- if an error occurred reading from the address space
-
ensm_aheap
public long ensm_aheap() throws IOException
- Throws:
IOException
-
ensm_uheap
public long ensm_uheap() throws IOException
- Throws:
IOException
-
ceeedboptcb
public long ceeedboptcb() throws IOException
Returns the ceeedboptcb (options control block - ocb) address- Throws:
IOException
- if an error occurred reading from the address space
-
ceeedb_ceeosigr
public long ceeedb_ceeosigr() throws IOException
Returns the ceeosigr address- Throws:
IOException
- if an error occurred reading from the address space
-
ceeedb_qpcb
public long ceeedb_qpcb() throws IOException
Returns the qpcb address- Throws:
IOException
- if an error occurred reading from the address space
-
getMallocSize
public long getMallocSize(long ptr) throws IOException, IllegalArgumentException
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
public long ceeedbdba() throws IOException
Returns the ceeedbdba- Throws:
IOException
- if an error occurred reading from the address space
-
getSampleEdb
public static Edb getSampleEdb(AddressSpace space)
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
public static Edb[] getEdbs(AddressSpace space)
Returns an array of all the Edbs in the given address space.
-
getFirstDll
public Dll getFirstDll() throws IOException
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
public Properties getEnvVars() throws IOException
Return a java.util.Properties object containing the environment variables.- Throws:
IOException
-
rptstg
public boolean rptstg() throws IOException
Returns true if the LE runtime option RPTSTG(ON) is set- Throws:
IOException
-
storage
public boolean storage() throws IOException
Returns true if the LE runtime option STORAGE(ON) is set- Throws:
IOException
-
-