hooks.c

Section: PARSEC Hooks Instrumentation API (3)
Updated: 16 Jan 2009
Index Return to Main Contents
 

NAME

hooks.c - An implementation of the PARSEC Hooks Instrumentation API.  

SYNOPSIS


#include 'include/hooks.h'
#include 'config.h'
#include <stdio.h>
#include <assert.h>
#include <sys/time.h>

 

Defines


#define DEBUG 0
 

Functions


void __parsec_bench_begin (enum __parsec_benchmark __bench)
Beginning of program execution.
void __parsec_bench_end ()
End of program execution.
void __parsec_roi_begin ()
Beginning of Region-of-Interest.
void __parsec_roi_end ()
End of Region-of-Interest.  

Detailed Description

An implementation of the PARSEC Hooks Instrumentation API.

In this file the hooks library functions are implemented. The hooks API is defined in header file hooks.h.

The default functionality can be enabled and disabled by defining the corresponding macros in file config.h. A detailed description of all features is available there.  

Define Documentation

 

#define DEBUG 0

Enable debugging code  

Function Documentation

 

void __parsec_bench_begin (enum __parsec_benchmark __bench)

Beginning of program execution.

Parameters:

__bench Unique workload identifier.

This function is executed exactly once, as soon as the program starts.

Its logical counterpart is __parsec_bench_end.  

void __parsec_bench_end ()

End of program execution.

This function is executed exactly once, just before the program ends.

Its logical counterpart is __parsec_bench_begin.  

void __parsec_roi_begin ()

Beginning of Region-of-Interest.

This function is executed exactly once, just before the Region-of-Interest (ROI) is entered. The ROI is the part of the code that should be used for benchmarking and analysis. It contains the entire parallel phase of the program.

The logical counterpart of this function is __parsec_roi_end.  

void __parsec_roi_end ()

End of Region-of-Interest.

This function is executed exactly once, immediately after the Region-of-Interest (ROI) is left. The ROI is the part of the code that should be used for benchmarking and analysis. It contains the entire parallel phase of the program.

The logical counterpart of this function is __parsec_roi_begin.  

AUTHOR

Written by Christian Bienia.

Generated automatically by Doxygen for PARSEC Hooks Instrumentation API from the source code.  

COPYRIGHT

Copyright (c) 2006-2009 Princeton University  

SEE ALSO

parsec(7), hooks(7)


 

Index

NAME
SYNOPSIS
Defines
Functions
Detailed Description
Define Documentation
#define DEBUG 0
Function Documentation
void __parsec_bench_begin (enum __parsec_benchmark __bench)
void __parsec_bench_end ()
void __parsec_roi_begin ()
void __parsec_roi_end ()
AUTHOR
COPYRIGHT
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 04:41:54 GMT, February 24, 2009