uw-ictd / open5gs

open5gs is an open source implementation of the Evolved Packet Core and 5GC supporting 3GPP Release 16. This repository is a maintenance and research fork of the main upstream open5gs/open5gs.
https://open5gs.org
GNU Affero General Public License v3.0
2 stars 0 forks source link

UE counting is wrong #5

Open spencersevilla opened 4 years ago

spencersevilla commented 4 years ago

The number of UEs counter goes negative over time. I believe that my logic is not hooking into one of the correct codepaths for when the number of UEs should be increased.

ALSO RELATED: To help diagnose Issues #3 and #4 I would like to also add the enb_ue ID to the logging function.

spencersevilla commented 4 years ago

To be clear, I'm talking about stats_add_ue and stats_remove_ue.

spencersevilla commented 4 years ago

Update: I added some code to ensure that the adding/subtracting functions are atomic. We're still seeing this error.