File: vprotocol_pessimist_eventlog_protocol.h

package info (click to toggle)
openmpi 5.0.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 202,312 kB
  • sloc: ansic: 612,441; makefile: 42,495; sh: 11,230; javascript: 9,244; f90: 7,052; java: 6,404; perl: 5,154; python: 1,856; lex: 740; fortran: 61; cpp: 20; tcl: 12
file content (46 lines) | stat: -rw-r--r-- 1,376 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
 * Copyright (c) 2004-2007 The Trustees of the University of Tennessee.
 *                         All rights reserved.
 * Copyright (c) 2010      Cisco Systems, Inc.  All rights reserved.
 * $COPYRIGHT$
 *
 * Additional copyrights may follow
 *
 * $HEADER$
 */

#ifndef __VPROTOCOL_PESSIMIST_EVENTLOG_PROTOCOL_H__
#define __VPROTOCOL_PESSIMIST_EVENTLOG_PROTOCOL_H__

#include "vprotocol_pessimist_event.h"

BEGIN_C_DECLS

/** Enum containing the command tags to remotely control event loggers
 */
typedef enum {
    VPROTOCOL_PESSIMIST_EVENTLOG_CLOSE_SERVER_CMD,
    VPROTOCOL_PESSIMIST_EVENTLOG_SAVE_SERVER_CMD,
    VPROTOCOL_PESSIMIST_EVENTLOG_LOAD_SERVER_CMD,

    VPROTOCOL_PESSIMIST_EVENTLOG_NEW_CLIENT_CMD,
    VPROTOCOL_PESSIMIST_EVENTLOG_QUIT_CLIENT_CMD,

    VPROTOCOL_PESSIMIST_EVENTLOG_PUT_EVENTS_CMD,
    VPROTOCOL_PESSIMIST_EVENTLOG_GET_EVENTS_CMD,
    VPROTOCOL_PESSIMIST_EVENTLOG_DEL_EVENTS_CMD,
    VPROTOCOL_PESSIMIST_EVENTLOG_ACK
} vprotocol_pessimist_event_logger_command_t;

#define VPROTOCOL_EVENT_LOGGER_NAME_FMT "ompi_ft_event_logger[%d]"

static inline void vprotocol_pessimist_event_datatype_create(
                                                    MPI_Datatype *event_dtt)
{
    MPI_Type_contiguous(2, MPI_UNSIGNED_LONG_LONG, event_dtt);
    MPI_Type_commit(event_dtt);
}

END_C_DECLS

#endif /* __VPROTOCOL_PESSIMIST_EVENTLOG_PROTOCOL_H__ */