1.5.1 (revision 4026)
otf2/OTF2_Events.h
Go to the documentation of this file.
00001 /*
00002  * This file is part of the Score-P software (http://www.score-p.org)
00003  *
00004  * Copyright (c) 2009-2012,
00005  * RWTH Aachen University, Germany
00006  *
00007  * Copyright (c) 2009-2012,
00008  * Gesellschaft fuer numerische Simulation mbH Braunschweig, Germany
00009  *
00010  * Copyright (c) 2009-2012, 2014,
00011  * Technische Universitaet Dresden, Germany
00012  *
00013  * Copyright (c) 2009-2012,
00014  * University of Oregon, Eugene, USA
00015  *
00016  * Copyright (c) 2009-2012,
00017  * Forschungszentrum Juelich GmbH, Germany
00018  *
00019  * Copyright (c) 2009-2012,
00020  * German Research School for Simulation Sciences GmbH, Juelich/Aachen, Germany
00021  *
00022  * Copyright (c) 2009-2012,
00023  * Technische Universitaet Muenchen, Germany
00024  *
00025  * This software may be modified and distributed under the terms of
00026  * a BSD-style license.  See the COPYING file in the package base
00027  * directory for details.
00028  *
00029  */
00030 
00031 
00032 #ifndef OTF2_EVENTS_H
00033 #define OTF2_EVENTS_H
00034 
00035 
00044 #include <otf2/OTF2_ErrorCodes.h>
00045 
00046 
00047 #include <otf2/OTF2_GeneralDefinitions.h>
00048 
00049 
00050 #ifdef __cplusplus
00051 extern "C" {
00052 #endif /* __cplusplus */
00053 
00054 
00056 typedef uint8_t OTF2_MeasurementMode;
00057 
00063 enum OTF2_MeasurementMode_enum
00064 {
00067     OTF2_MEASUREMENT_ON  = 1,
00070     OTF2_MEASUREMENT_OFF = 2
00071 };
00072 
00073 
00075 typedef uint8_t OTF2_CollectiveOp;
00076 
00082 enum OTF2_CollectiveOp_enum
00083 {
00086     OTF2_COLLECTIVE_OP_BARRIER                       = 0,
00089     OTF2_COLLECTIVE_OP_BCAST                         = 1,
00092     OTF2_COLLECTIVE_OP_GATHER                        = 2,
00096     OTF2_COLLECTIVE_OP_GATHERV                       = 3,
00099     OTF2_COLLECTIVE_OP_SCATTER                       = 4,
00103     OTF2_COLLECTIVE_OP_SCATTERV                      = 5,
00107     OTF2_COLLECTIVE_OP_ALLGATHER                     = 6,
00111     OTF2_COLLECTIVE_OP_ALLGATHERV                    = 7,
00114     OTF2_COLLECTIVE_OP_ALLTOALL                      = 8,
00118     OTF2_COLLECTIVE_OP_ALLTOALLV                     = 9,
00122     OTF2_COLLECTIVE_OP_ALLTOALLW                     = 10,
00126     OTF2_COLLECTIVE_OP_ALLREDUCE                     = 11,
00129     OTF2_COLLECTIVE_OP_REDUCE                        = 12,
00132     OTF2_COLLECTIVE_OP_REDUCE_SCATTER                = 13,
00135     OTF2_COLLECTIVE_OP_SCAN                          = 14,
00138     OTF2_COLLECTIVE_OP_EXSCAN                        = 15,
00141     OTF2_COLLECTIVE_OP_REDUCE_SCATTER_BLOCK          = 16,
00144     OTF2_COLLECTIVE_OP_CREATE_HANDLE                 = 17,
00147     OTF2_COLLECTIVE_OP_DESTROY_HANDLE                = 18,
00150     OTF2_COLLECTIVE_OP_ALLOCATE                      = 19,
00153     OTF2_COLLECTIVE_OP_DEALLOCATE                    = 20,
00156     OTF2_COLLECTIVE_OP_CREATE_HANDLE_AND_ALLOCATE    = 21,
00159     OTF2_COLLECTIVE_OP_DESTROY_HANDLE_AND_DEALLOCATE = 22
00160 };
00161 
00162 
00164 typedef uint8_t OTF2_RmaSyncType;
00165 
00171 enum OTF2_RmaSyncType_enum
00172 {
00175     OTF2_RMA_SYNC_TYPE_MEMORY     = 0,
00178     OTF2_RMA_SYNC_TYPE_NOTIFY_IN  = 1,
00181     OTF2_RMA_SYNC_TYPE_NOTIFY_OUT = 2
00182 };
00183 
00184 
00186 typedef uint32_t OTF2_RmaSyncLevel;
00187 
00193 enum OTF2_RmaSyncLevel_enum
00194 {
00198     OTF2_RMA_SYNC_LEVEL_NONE    = 0,
00201     OTF2_RMA_SYNC_LEVEL_PROCESS = ( 1 << 0 ),
00204     OTF2_RMA_SYNC_LEVEL_MEMORY  = ( 1 << 1 )
00205 };
00206 
00207 
00209 typedef uint8_t OTF2_LockType;
00210 
00216 enum OTF2_LockType_enum
00217 {
00220     OTF2_LOCK_EXCLUSIVE = 0,
00224     OTF2_LOCK_SHARED    = 1
00225 };
00226 
00227 
00229 typedef uint8_t OTF2_RmaAtomicType;
00230 
00236 enum OTF2_RmaAtomicType_enum
00237 {
00240     OTF2_RMA_ATOMIC_TYPE_ACCUMULATE          = 0,
00243     OTF2_RMA_ATOMIC_TYPE_INCREMENT           = 1,
00246     OTF2_RMA_ATOMIC_TYPE_TEST_AND_SET        = 2,
00249     OTF2_RMA_ATOMIC_TYPE_COMPARE_AND_SWAP    = 3,
00254     OTF2_RMA_ATOMIC_TYPE_SWAP                = 4,
00259     OTF2_RMA_ATOMIC_TYPE_FETCH_AND_ADD       = 5,
00264     OTF2_RMA_ATOMIC_TYPE_FETCH_AND_INCREMENT = 6
00265 };
00266 
00267 
00269 typedef union OTF2_MetricValue_union OTF2_MetricValue;
00270 
00272 union OTF2_MetricValue_union
00273 {
00274     int64_t  signed_int;
00275     uint64_t unsigned_int;
00276     double   floating_point;
00277 };
00278 
00279 
00280 #ifdef __cplusplus
00281 }
00282 #endif /* __cplusplus */
00283 
00284 
00285 #endif /* OTF2_EVENTS_H */