root/opal/mca/pstat/test/pstat_test_component.c

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. pstat_test_component_query

   1 /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
   2 /*
   3  * Copyright (c) 2004-2008 The Trustees of Indiana University and Indiana
   4  *                         University Research and Technology
   5  *                         Corporation.  All rights reserved.
   6  * Copyright (c) 2004-2005 The University of Tennessee and The University
   7  *                         of Tennessee Research Foundation.  All rights
   8  *                         reserved.
   9  * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
  10  *                         University of Stuttgart.  All rights reserved.
  11  * Copyright (c) 2004-2005 The Regents of the University of California.
  12  *                         All rights reserved.
  13  * Copyright (c) 2007-2011 Cisco Systems, Inc.  All rights reserved.
  14  * Copyright (c) 2015      Los Alamos National Security, LLC. All rights
  15  *                         reserved.
  16  * $COPYRIGHT$
  17  *
  18  * Additional copyrights may follow
  19  *
  20  * $HEADER$
  21  *
  22  * These symbols are in a file by themselves to provide nice linker
  23  * semantics.  Since linkers generally pull in symbols by object
  24  * files, keeping these symbols as the only symbols in this file
  25  * prevents utility programs such as "ompi_info" from having to import
  26  * entire components just to query their version and parameters.
  27  */
  28 
  29 #include "opal_config.h"
  30 
  31 #include "opal/constants.h"
  32 #include "opal/mca/pstat/pstat.h"
  33 #include "pstat_test.h"
  34 
  35 /*
  36  * Public string showing the pstat ompi_test component version number
  37  */
  38 const char *opal_pstat_test_component_version_string =
  39     "OPAL test pstat MCA component version " OPAL_VERSION;
  40 
  41 /*
  42  * Local function
  43  */
  44 static int pstat_test_component_query(mca_base_module_t **module, int *priority);
  45 
  46 
  47 /*
  48  * Instantiate the public struct with all of our public information
  49  * and pointers to our public functions in it
  50  */
  51 
  52 const opal_pstat_base_component_t mca_pstat_test_component = {
  53 
  54     /* First, the mca_component_t struct containing meta information
  55        about the component itself */
  56 
  57     .base_version = {
  58         /* Indicate that we are a pstat v1.1.0 component (which also
  59            implies a specific MCA version) */
  60 
  61         OPAL_PSTAT_BASE_VERSION_2_0_0,
  62 
  63         /* Component name and version */
  64 
  65         .mca_component_name = "test",
  66         MCA_BASE_MAKE_VERSION (component, OPAL_MAJOR_VERSION, OPAL_MINOR_VERSION,
  67                                OPAL_RELEASE_VERSION),
  68 
  69         .mca_query_component = pstat_test_component_query,
  70     },
  71     /* Next the MCA v1.0.0 component meta data */
  72     .base_data = {
  73         /* The component is checkpoint ready */
  74         MCA_BASE_METADATA_PARAM_CHECKPOINT
  75     }
  76 };
  77 
  78 
  79 static int pstat_test_component_query(mca_base_module_t **module, int *priority)
  80 {
  81     *priority = 20;
  82     *module = (mca_base_module_t *)&opal_pstat_test_module;
  83 
  84     return OPAL_SUCCESS;
  85 }

/* [<][>][^][v][top][bottom][index][help] */