@@ -126,6 +126,7 @@ typedef struct osm_epi_pe_event {
uint64_t link_integrity;
uint64_t buffer_overrun;
uint64_t vl15_dropped;
+ uint64_t xmit_wait;
time_t time_diff_s;
} osm_epi_pe_event_t;
@@ -359,7 +359,6 @@ perfmgr_db_add_err_reading(perfmgr_db_t * db, uint64_t guid, uint8_t port,
perfmgr_db_err_reading_t *previous = NULL;
perfmgr_db_err_t rc = PERFMGR_EVENT_DB_SUCCESS;
osm_epi_pe_event_t epi_pe_data;
- uint64_t xmit_wait_diff;
cl_plock_excl_acquire(&db->lock);
node = get(db, guid);
@@ -415,9 +414,9 @@ perfmgr_db_add_err_reading(perfmgr_db_t * db, uint64_t guid, uint8_t port,
epi_pe_data.vl15_dropped =
(reading->vl15_dropped - previous->vl15_dropped);
p_port->err_total.vl15_dropped += epi_pe_data.vl15_dropped;
- xmit_wait_diff =
+ epi_pe_data.xmit_wait =
(reading->xmit_wait - previous->xmit_wait);
- p_port->err_total.xmit_wait += xmit_wait_diff;
+ p_port->err_total.xmit_wait += epi_pe_data.xmit_wait;
p_port->err_previous = *reading;
@@ -105,7 +105,9 @@ static void handle_port_counter(_log_events_t * log, osm_epi_pe_event_t * pc)
|| pc->xmit_constraint_err > 0
|| pc->rcv_constraint_err > 0
|| pc->link_integrity > 0
- || pc->buffer_overrun > 0 || pc->vl15_dropped > 0) {
+ || pc->buffer_overrun > 0
+ || pc->vl15_dropped > 0
+ || pc->xmit_wait > 0) {
fprintf(log->log_file,
"Port counter errors for node 0x%" PRIx64
" (%s) port %d\n", pc->port_id.node_guid,