Skip to content

Commit fcd4412

Browse files
committed
Merge pull request open-mpi#745 from jsquyres/pr/usnic-stats-updates
usnic: fix/update the usnic stats
2 parents b0365f9 + aff822a commit fcd4412

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

opal/mca/btl/usnic/btl_usnic_stats.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,12 @@ void opal_btl_usnic_print_stats(
8282
char tmp[128], str[2048];
8383

8484
/* The usuals */
85-
snprintf(str, sizeof(str), "%s:MCW:%3u, ST(P+D)/F/C/R(T+F)/A:%8lu(%8u+%8u)/%8lu/%8lu/%4lu(%4lu+%4lu)/%8lu, RcvTot/Chk/F/C/L/H/D/BF/A:%8lu/%c%c/%8lu/%8lu/%4lu+%2lu/%4lu/%4lu/%6lu OA/DA %4lu/%4lu CRC:%4lu ",
85+
snprintf(str, sizeof(str), "%s:MCW:%3u, %s, ST(P+D)/F/C/R(T+F)/A:%8lu(%8u+%8u)/%8lu/%8lu/%4lu(%4lu+%4lu)/%8lu, RcvTot/Chk/F/C/L/H/D/BF/A:%8lu/%c%c/%8lu/%8lu/%4lu+%2lu/%4lu/%4lu/%6lu OA/DA %4lu/%4lu CRC:%4lu ",
8686
prefix,
8787
opal_proc_local_get()->proc_name.vpid,
8888

89+
module->fabric_info->fabric_attr->name,
90+
8991
module->stats.num_total_sends,
9092
module->mod_channels[USNIC_PRIORITY_CHANNEL].num_channel_sends,
9193
module->mod_channels[USNIC_DATA_CHANNEL].num_channel_sends,
@@ -194,11 +196,6 @@ static void usnic_stats_callback(int fd, short flags, void *arg)
194196

195197
opal_btl_usnic_print_stats(module, tmp,
196198
/*reset=*/mca_btl_usnic_component.stats_relative);
197-
198-
/* In OMPI v1.6, we have to re-add this event (because there's an
199-
old libevent in OMPI v1.6) */
200-
opal_event_add(&(module->stats.timer_event),
201-
&(module->stats.timeout));
202199
}
203200

204201
/*

0 commit comments

Comments
 (0)