10.0 (revision 35c4bf227)
SCOREP_User_Types.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: (c) 2009 RWTH Aachen University <rwth-aachen.de>
3  * SPDX-FileCopyrightText: (c) 2009 Gesellschaft für numerische Simulation mbH Braunschweig <gns-mbh.com>
4  * SPDX-FileCopyrightText: (c) 2009 Technische Universität Dresden <tu-dresden.de>
5  * SPDX-FileCopyrightText: (c) 2009 University of Oregon <uoregon.edu>
6  * SPDX-FileCopyrightText: (c) 2009 Forschungszentrum Jülich GmbH <fz-juelich.de>
7  * SPDX-FileCopyrightText: (c) 2009 German Research School for Simulation Sciences GmbH
8  * SPDX-FileCopyrightText: (c) 2009 Technische Universität München <tum.de>
9  *
10  * SPDX-License-Identifier: BSD-3-Clause
11  *
12  */
13 
14 #ifndef SCOREP_USER_TYPES_H
15 #define SCOREP_USER_TYPES_H
16 
24 
25 /* **************************************************************************************
26  * Typedefs
27  * *************************************************************************************/
28 
29 struct SCOREP_User_Region;
30 
34 typedef struct SCOREP_User_Region* SCOREP_User_RegionHandle;
35 
40 #define SCOREP_USER_INVALID_REGION NULL
41 
45 typedef uint32_t SCOREP_User_RegionType;
46 
50 typedef uint32_t SCOREP_User_MetricType;
51 
55 typedef uint64_t SCOREP_User_ParameterHandle;
56 
61 #define SCOREP_USER_INVALID_PARAMETER -1
62 
67 #define SCOREP_USER_INVALID_TOPOLOGY -1
68 
71 typedef struct SCOREP_User_Topology* SCOREP_User_CartesianTopologyHandle;
72 #define SCOREP_USER_INVALID_CARTESIAN_TOPOLOGY NULL
73 
74 /* **************************************************************************************
75  * Defines for the Region types
76  * *************************************************************************************/
77 
92 #define SCOREP_USER_REGION_TYPE_COMMON 0
93 
98 #define SCOREP_USER_REGION_TYPE_FUNCTION 1
99 
105 #define SCOREP_USER_REGION_TYPE_LOOP 2
106 
111 #define SCOREP_USER_REGION_TYPE_DYNAMIC 4
112 
117 #define SCOREP_USER_REGION_TYPE_PHASE 8
118 
121 /* **************************************************************************************
122  * Defines for the data type of a user counter
123  * *************************************************************************************/
124 
134 #define SCOREP_USER_METRIC_TYPE_INT64 0
135 
140 #define SCOREP_USER_METRIC_TYPE_UINT64 1
141 
146 #define SCOREP_USER_METRIC_TYPE_DOUBLE 2
147 
150 /* **************************************************************************************
151  * Defines for the context of user counters
152  * *************************************************************************************/
153 
162 #define SCOREP_USER_METRIC_CONTEXT_GLOBAL 0
163 
168 #define SCOREP_USER_METRIC_CONTEXT_CALLPATH 1
169 
172 /* **************************************************************************************
173  * Default and uninitialized handles
174  * *************************************************************************************/
175 
180 #endif /* SCOREP_USER_TYPES_H */
Defines public definitions that are used internally and externally (e.g., by metric plugins...
struct SCOREP_User_Topology * SCOREP_User_CartesianTopologyHandle
Definition: SCOREP_User_Types.h:71
struct SCOREP_User_Region * SCOREP_User_RegionHandle
Definition: SCOREP_User_Types.h:34
uint32_t SCOREP_User_MetricType
Definition: SCOREP_User_Types.h:50
uint64_t SCOREP_User_ParameterHandle
Definition: SCOREP_User_Types.h:55
uint32_t SCOREP_User_RegionType
Definition: SCOREP_User_Types.h:45