get xran stats

Get xran stats in the trx_oran_get_stats function
and use trx_oran_get_stats upon stopping and ending RF.

Co-authored-by: Romain Beurdouche <romain.beurdouche@eurecom.fr>
This commit is contained in:
Robert Schmidt
2025-07-09 14:55:44 +02:00
co-authored by Romain Beurdouche
parent b7a6b1b7d6
commit 02bc14d8c1
5 changed files with 45 additions and 1 deletions
+5
View File
@@ -103,6 +103,11 @@ int trx_oran_set_gains(openair0_device *device, openair0_config_t *openair0_cfg)
int trx_oran_get_stats(openair0_device *device)
{
uint64_t total_time, used_time;
uint32_t num_core_used, core_used[64];
uint32_t ret = xran_get_time_stats(&total_time, &used_time, &num_core_used, &core_used[0], 0);
if (ret == 0)
LOG_I(HW, "xran_get_time_stats(): total thread time %ld, total time essential tasks %ld, num cores used %d\n", total_time, used_time, num_core_used);
printf("ORAN: %s\n", __FUNCTION__);
return (0);
}