From 037e4868ee0e21adbeea6c331a49bd30c8ca52e2 Mon Sep 17 00:00:00 2001 From: Solomon Bekele Date: Tue, 1 Oct 2024 15:43:27 +0000 Subject: [PATCH] fabric filter --- ze/btx_zeinterval_callbacks.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ze/btx_zeinterval_callbacks.cpp b/ze/btx_zeinterval_callbacks.cpp index c11573c5..23ea66ee 100644 --- a/ze/btx_zeinterval_callbacks.cpp +++ b/ze/btx_zeinterval_callbacks.cpp @@ -821,7 +821,7 @@ static void lttng_ust_ze_sampling_fabricPort_callback(void *btx_handle, void *us double rxThroughput = static_cast(pFabricPortThroughput_val->rxCounter - prev_throughput.rxCounter) / time_diff; double txThroughput = static_cast(pFabricPortThroughput_val->txCounter - prev_throughput.txCounter) / time_diff; DeviceHash uuid_idx = get_device_hash(usr_data, hostname, vpid, hDevice); - if (rxThroughput != 0) + if (rxThroughput != 0 || txThroughput != 0) btx_push_message_lttng_fabricPort(btx_handle, hostname, 0, 0, prev_ts, BACKEND_ZE, uuid_idx.hash, uuid_idx.deviceIdx, (uint64_t)hFabricPort, subDevice, fabricId, remotePortId, rxThroughput, txThroughput,