netdata / kernel-collector

Linux Kernel eBPF Collectors
61 stars 15 forks source link

Fix Network Viewer #317

Closed thiagoftsm closed 1 year ago

thiagoftsm commented 1 year ago
Summary

This PR is the first step to fix issue reported by user (https://community.netdata.cloud/t/ebpf-network-connection-chart-is-not-what-im-expecting/3500/2) and also adjusts code for our future Network Viewer.

More details after tests...

Test Plan
  1. Get binaries from this link according your libc version and save to a directory, for example, ../artifacts;
  2. Extract files with next commands:
    $ for i in `ls *.zip`; do unzip $i; rm .gitkeep ; rm $i; done
    $ for i in `ls *.xz`; do tar -xf $i; rm $i* ; done
  3. Clone this branch and compile:
    $ make clean; make tester
  4. Run the following command:
    # for i in `seq 0 2`; do ./kernel/legacy_test --pid $i --content --iteration 2 --socket --netdata-path ../artifacts/ --log-path file_$i.txt ; done
    Additional information

    This PR was tested on:

Linux Distribution kernel version real parent parent all
Slackware Current 5.19.17 slackware_5_19_0.txt slackware_5_19_1.txt slackware_5_19_2.txt
Arch Linux 6.0.8-arch1-1 arch_6_0_0.txt arch_6_0_1.txt arch_6_0_2.txt
Ubuntu 22.04 5.15.0-33-generic ubuntu_5_15_0.txt ubuntu_5_15_1.txt ubuntu_5_15_2.txt
Alma 9 5.14.0-70.30.1.el9_0.x86_64 alma_5_14_0.txt alma_5_14_1.txt alma_5_14_2.txt
Debian 11 5.10.0-19-amd64 debian_5_10_0.txt debian_5_10_1.txt debian_5_10_2.txt
Oracle 8.6 5.4.17-2136.312.3.4.el8uek.x86_64 oracle_5_4_0.txt oracle_5_4_1.txt oracle_5_4_2.txt
Slackware Current 5.4.210 slackware_5_4_0.txt slackware_5_4_1.txt slackware_5_4_2.txt
Alma 8.6 4.18.0-425.3.1.el8.x86_64 alma_4_18_0.txt alma_4_18_1.txt alma_4_18_2.txt
Ubuntu 18.04 4.15.0-180 ubuntu_4_15_0.txt ubuntu_4_15_1.txt ubuntu_4_15_2.txt
Slackware Current 4.14.290 slackware_4_14_0.txt slackware_4_14_1.txt slackware_4_14_2.txt
CentOS 7.9 3.10.0-1160.71.1.el7.x86_64. centos_3_10_0.txt centos_3_10_1.txt centos_3_10_2.txt
netdata-community-bot commented 1 year ago

This pull request has been mentioned on Netdata Community Forums. There might be relevant details there:

https://community.netdata.cloud/t/ebpf-network-connection-chart-is-not-what-im-expecting/3500/4