OpenMPI 0.1.1

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

vt_user_control.h
1 /**
2 * VampirTrace
3 * http://www.tu-dresden.de/zih/vampirtrace
4 *
5 * Copyright (c) 2005-2012, ZIH, TU Dresden, Federal Republic of Germany
6 *
7 * Copyright (c) 1998-2005, Forschungszentrum Juelich, Juelich Supercomputing
8 * Centre, Federal Republic of Germany
9 *
10 * See the file COPYING in the package base directory for details
11 **/
12
13 #ifndef _VT_USER_H
14 # error "vt_user_control.h should only be included from vt_user.h"
15 #endif /* _VT_USER_H */
16
17 #ifndef _VT_USER_CONTROL_H
18 #define _VT_USER_CONTROL_H
19
20 #if (defined (VTRACE)) && !(defined (VTRACE_NO_CONTROL))
21
22 __VT_EXTERN_DECL int VT_User_is_trace_on__(void);
23 __VT_EXTERN_DECL void VT_User_trace_on__(void);
24 __VT_EXTERN_DECL void VT_User_trace_off__(void);
25 __VT_EXTERN_DECL void VT_User_buffer_flush__(void);
26 __VT_EXTERN_DECL void VT_User_timesync__(void);
27 __VT_EXTERN_DECL void VT_User_update_counter__(void);
28 __VT_EXTERN_DECL void VT_User_set_rewind_mark__(void);
29 __VT_EXTERN_DECL void VT_User_rewind__(void);
30
31 # define VT_IS_ON() VT_User_is_trace_on__()
32 # define VT_ON() VT_User_trace_on__()
33 # define VT_OFF() VT_User_trace_off__()
34 # define VT_BUFFER_FLUSH() VT_User_buffer_flush__()
35 # define VT_TIMESYNC() VT_User_timesync__()
36 # define VT_UPDATE_COUNTER() VT_User_update_counter__()
37 # define VT_SET_REWIND_MARK() VT_User_set_rewind_mark__()
38 # define VT_REWIND() VT_User_rewind__()
39
40 #else /* VTRACE && !VTRACE_NO_CONTROL */
41
42 # define VT_IS_ON() 1
43 # define VT_ON()
44 # define VT_OFF()
45 # define VT_BUFFER_FLUSH()
46 # define VT_TIMESYNC()
47 # define VT_UPDATE_COUNTER()
48 # define VT_SET_REWIND_MARK()
49 # define VT_REWIND()
50
51 #endif /* VTRACE && !VTRACE_NO_CONTROL */
52
53 #endif /* _VT_USER_CONTROL_H */