GPUOcelot
Classes | Public Types | Public Member Functions

trace::MemoryChecker Class Reference

A trace generator for checking all memory accesses. More...

#include <MemoryChecker.h>

Inheritance diagram for trace::MemoryChecker:
Inheritance graph
[legend]
Collaboration diagram for trace::MemoryChecker:
Collaboration graph
[legend]

List of all members.

Classes

class  Allocation
 A class for a cached memory allocation. More...
class  ShadowMemory

Public Types

enum  Status { INVALID, NOT_DEFINED, PARTIALLY_DEFINED, DEFINED }

Public Member Functions

 MemoryChecker ()
 The constructor initializes the cached allocations.
void setCheckInitialization (bool toggle)
 Set initialization checking toggle.
virtual void initialize (const executive::ExecutableKernel &kernel)
 Set the cache and get a pointer to the memory mappings.
virtual void event (const TraceEvent &event)
 Called whenever an event takes place.
virtual void postEvent (const TraceEvent &event)
 called when an event is committed
virtual void finish ()
 Called when a kernel is finished. There will be no more events for this kernel.

Detailed Description

A trace generator for checking all memory accesses.


Member Enumeration Documentation

Enumerator:
INVALID 
NOT_DEFINED 
PARTIALLY_DEFINED 
DEFINED 

Constructor & Destructor Documentation

trace::MemoryChecker::MemoryChecker ( )

The constructor initializes the cached allocations.


Member Function Documentation

void trace::MemoryChecker::event ( const TraceEvent event) [virtual]

Called whenever an event takes place.

Note, the const reference 'event' is only valid until event() returns

Reimplemented from trace::TraceGenerator.

void trace::MemoryChecker::finish ( ) [virtual]

Called when a kernel is finished. There will be no more events for this kernel.

Reimplemented from trace::TraceGenerator.

void trace::MemoryChecker::initialize ( const executive::ExecutableKernel kernel) [virtual]

Set the cache and get a pointer to the memory mappings.

Reimplemented from trace::TraceGenerator.

void trace::MemoryChecker::postEvent ( const TraceEvent event) [virtual]

called when an event is committed

Reimplemented from trace::TraceGenerator.

void trace::MemoryChecker::setCheckInitialization ( bool  toggle)

Set initialization checking toggle.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines