statistics enabling and tuning/part 2
This is continuation of MR !1584 (merged) that is already in integration.
Content
- Added the functionality of disabling/enabling/displaying cpu statistics for L1-gnb and L1-ue via telnet CLI.
- Added the functionality of displaying protocol statistics for L2/MAC-gnb via telnet CLI.
- Kept backward compatibility for dumping to file the statistics.
- Fixed an issue of concurrency in previous code that was related to a global variable
opp_enable
.
Impacted CLI commands by this change
-
measur show groups
will now show new statistics types that the user can select withmeasur show <statname>
and the new commands that have been introduced. Precisely: for gnb nodegnb_L2
andgnb_L1
, for UE node,phycpunew
are the names of the new statistics. - New commands introduced:
measur enable <statname>
: to enable generation and dump of the statistics to filemeasur disable <statname>
: to disable generation and dump of the statistics to file - Similar commands that will still exist and partially overlap with current implementation and that probably in the future will be need to be retired:
measur async enable|disable
measur cpustats enable|disable
Notes on the implementation
The activation of the new functionalities for statistics gnb_L1
and phycpunew
is done via a new thread that is spawned by the CLI thread telnet
. For gnb_L2
a new thread instead will not be generated as there is no need of activation/deactivation of statistics. The threads rely on global data that contain statistics values.
Test plan
See https://gitlab.eurecom.fr/favero/newcomer/-/issues/3#note_62090
Edited by Favero