File: btl_usnic_stats.h

package info (click to toggle)
openmpi 5.0.8-4
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 201,684 kB
  • sloc: ansic: 613,078; makefile: 42,353; sh: 11,194; javascript: 9,244; f90: 7,052; java: 6,404; perl: 5,179; python: 1,859; lex: 740; fortran: 61; cpp: 20; tcl: 12
file content (87 lines) | stat: -rw-r--r-- 2,140 bytes parent folder | download | duplicates (5)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
/*
 * Copyright (c) 2013-2017 Cisco Systems, Inc.  All rights reserved.
 * Copyright (c) 2020      Amazon.com, Inc. or its affiliates.
 *                         All Rights reserved.
 * $COPYRIGHT$
 *
 * Additional copyrights may follow
 *
 * $HEADER$
 */

/**
 * @file
 *
 * Statistics for the usnic BTL component.
 */

#ifndef OPAL_BTL_USNIC_STATS_H
#define OPAL_BTL_USNIC_STATS_H

#include <sys/time.h>

#include "opal/util/event.h"

/**
 * Struct containing all the statistics that are trackedx
 */
typedef struct opal_btl_usnic_module_stats_t {
    bool final_stats;
    uint64_t report_num;

    uint64_t num_total_sends;
    uint64_t num_resends;
    uint64_t num_timeout_retrans;
    uint64_t num_fast_retrans;
    uint64_t num_chunk_sends;
    uint64_t num_frag_sends;
    uint64_t num_ack_sends;

    uint64_t num_total_recvs;
    uint64_t num_unk_recvs;
    uint64_t num_dup_recvs;
    uint64_t num_oow_low_recvs;
    uint64_t num_oow_high_recvs;
    uint64_t num_frag_recvs;
    uint64_t num_chunk_recvs;
    uint64_t num_badfrag_recvs;
    uint64_t num_ack_recvs;
    uint64_t num_old_dup_acks;
    uint64_t num_dup_acks;
    uint64_t num_recv_reposts;
    uint64_t num_crc_errors;

    uint64_t max_sent_window_size;
    uint64_t max_rcvd_window_size;

    uint64_t pml_module_sends;
    uint64_t pml_send_callbacks;

    uint64_t num_seg_total_completions;
    uint64_t num_seg_ack_completions;
    uint64_t num_seg_frag_completions;
    uint64_t num_seg_chunk_completions;
    uint64_t num_seg_recv_completions;

    opal_event_t timer_event;
    struct timeval timeout;
} opal_btl_usnic_module_stats_t;

/**
 * Initialize the stats on a module.  Must use "struct
 * opal_btl_usnic_module_t*" here to avoid an #include cycle.
 */
int opal_btl_usnic_stats_init(struct opal_btl_usnic_module_t *module);

/**
 * Finalize the stats on a module.  Must use "struct
 * opal_btl_usnic_module_t*" here to avoid an #include cycle.
 */
int opal_btl_usnic_stats_finalize(struct opal_btl_usnic_module_t *module);

/**
 * Initialize the MPI_T performance variables (for all modules)
 */
int opal_btl_usnic_setup_mpit_pvars(void);

#endif