GPUOcelot
Public Types | Public Member Functions

trace::MemoryRaceDetector Class Reference

A trace generator for checking memory races. More...

#include <MemoryRaceDetector.h>

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

List of all members.

Public Types

typedef std::vector< int > IntVector
 A vector of integers.
typedef std::vector< char > ByteVector
 A vector of bytes.

Public Member Functions

 MemoryRaceDetector ()
 The constructor initializes the cached allocations.
void checkAllWrites (bool check)
 Determine whether writes should be checked regardless of whether or not the previous data matches.
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 whenever an event takes place.
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 memory races.


Member Typedef Documentation

typedef std::vector< char > trace::MemoryRaceDetector::ByteVector

A vector of bytes.

typedef std::vector< int > trace::MemoryRaceDetector::IntVector

A vector of integers.


Constructor & Destructor Documentation

trace::MemoryRaceDetector::MemoryRaceDetector ( )

The constructor initializes the cached allocations.


Member Function Documentation

void trace::MemoryRaceDetector::checkAllWrites ( bool  check)

Determine whether writes should be checked regardless of whether or not the previous data matches.

void trace::MemoryRaceDetector::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::MemoryRaceDetector::finish ( ) [virtual]

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

Reimplemented from trace::TraceGenerator.

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

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

Reimplemented from trace::TraceGenerator.

void trace::MemoryRaceDetector::postEvent ( 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.


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