1
1
openmpi/opal/mca/memchecker/valgrind/memchecker_valgrind_component.c
Josh Hursey 9971bc9d95 Merge in the mca_base_select changes per RFC:
http://www.open-mpi.org/community/lists/devel/2008/04/3779.php

{{{
svn merge -r 18276:18380 https://svn.open-mpi.org/svn/ompi/tmp-public/jjh-mca-play .
}}}

Any components not in the trunk, but in one of the effected frameworks *must* be
updated. Contact the list, look at the RFC, or look at the diff for how to do this.

Sorry for the early commit of this, but I wanted to get it in today (per RFC) and
didn't know if I would have a chance later today.

This commit was SVN r18381.
2008-05-06 18:08:45 +00:00

102 строки
2.6 KiB
C

/*
* Copyright (c) 2004-2007 High Performance Computing Center Stuttgart,
* University of Stuttgart. All rights reserved.
* Copyright (c) 2004-2008 The Trustees of Indiana University.
* All rights reserved.
*
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*/
/**
* These symbols are in a file by themselves to provide nice linker
* semantics. Since linkers generally pull in symbols by object
* files, keeping these symbols as the only symbols in this file
* prevents utility programs such as "ompi_info" from having to import
* entire components just to query their version and parameters.
*/
#include "opal_config.h"
#include "opal/constants.h"
#include "opal/mca/memchecker/memchecker.h"
#include "memchecker_valgrind.h"
/*
* Public string showing the memchecker ompi_linux component version number
*/
const char *opal_memchecker_valgrind_component_version_string =
"OPAL valgrind memchecker MCA component version " OMPI_VERSION;
/*
* Local function
*/
static int valgrind_open(void);
static int valgrind_close(void);
/*
* Instantiate the public struct with all of our public information
* and pointers to our public functions in it
*/
const opal_memchecker_base_component_1_0_0_t mca_memchecker_valgrind_component = {
/* First, the mca_component_t struct containing meta information
about the component itself */
{
/* Indicate that we are a memchecker v1.0.0 component (which also
implies a specific MCA version) */
OPAL_MEMCHECKER_BASE_VERSION_1_0_0,
/* Component name and version */
"valgrind",
OMPI_MAJOR_VERSION,
OMPI_MINOR_VERSION,
OMPI_RELEASE_VERSION,
/* Component open and close functions */
valgrind_open,
valgrind_close,
opal_memchecker_valgrind_component_query
},
/* Next the MCA v1.0.0 component meta data */
{
/* Valgrind does not offer functionality to save the state */
MCA_BASE_METADATA_PARAM_CHECKPOINT
}
};
static int valgrind_open(void)
{
/*
* Any initialization of valgrind upon starting of the component
* should be done here.
*
* Possibilities are, that we need to set special stuff, when
* valgrind is not being run / actually is being run.
*/
return OPAL_SUCCESS;
}
static int valgrind_close(void)
{
/*
* Any closing of valgrind upon starting of the component
* should be done here.
*
* Possibilities are, that we need to set special stuff, when
* valgrind is not being run / actually is being run.
*/
return OPAL_SUCCESS;
}