Closed wdobbe closed 1 year ago
Another possible problem:
In function gator_events_net_read a counter update is sent to the streamline GUI only if the following condition is true: if (netrx_enabled && last_rx_delta != rx_delta)
I don't see the need for the 'last_rx_delta != rx_delta' part.
I checked by transferring a 16.7 MB file to my target via scp. With the original code Streamline reports only 12.9 MB has been transferred. If I remove the ' last_rx_delta != rx_delta' part then Streamline reports that 16.7 MB has been transferred.
Same of course for the tx_delta update.
gator.ko was deprecated and removed some time ago.
I'm using Streamline 5.12.2 (last version of DS-5) with corresponding gator version 6.71. Target is powered by an i.MX6quad (4 x CortexA9). Kernel 4.9.88.
All counters in Streamline work fine, except the 'Network: Receive' and 'Network: Transmit' counters in the 'Linux' section. They are always at 0 even though there is network traffic.
I had a look at the gator.ko module with the DS-5 kernel debugger and notice that the net_wake_up_timer timer in file gator_events_net.c never seems to expire and as a result get_network_stats is never called (except once from gator_events_net_start).
When I call the get_network_stats function directly from gator_events_net_read (see diff below) the network rx/tx counters in Streamline come back to life.
Why is the timer necessary? Is it not allowed to call functions that can sleep from gator_events_net_read ?
thanks, Winfried