netdata / kernel-collector

Linux Kernel eBPF Collectors
61 stars 15 forks source link

Add binaries for kernel 4.19 #338

Closed thiagoftsm closed 1 year ago

thiagoftsm commented 1 year ago
Summary

Address reported https://github.com/netdata/netdata/issues/15245 issue.

More details when PR is finalized and ready for review...

Test Plan
  1. Get binaries according your LIBC from this link and extract them inside a directory. You can also get everything for glibc here.

  2. Extract them running:

    $ 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. Compile branch an run the following tests:

    # make clean; make tester
    # for i in `seq 0 2`; do ./kernel/legacy_test --netdata-path ../directory --content --iteration --pid $i --log-path file_pid$i.txt; done
  4. Every test should ends with Success, unless you do not have a specific target (function) available.

Additional information

This PR was tested on:

Linux Distribution kernel version real parent parent all
Slackware current 6.1.34 slacwkare_6_1_pid0.txt slacwkare_6_1_pid1.txt slacwkare_6_1_pid2.txt
Arch Linux 6.3.9-arch1-1 arch_6_3_pid0.txt arch_6_3_pid1.txt arch_6_3_pid2.txt
Ubuntu 22.04 5.15.0-69-generic ubuntu_5_15_pid0.txt ubuntu_5_15_pid1.txt ubuntu_5_15_pid2.txt
Oracle 9 5.14.0-284.11.1.el9_2.x86_64 oracle_5_14_pid0.txt oracle_5_14_pid1.txt oracle_5_14_pid2.txt
Debian 11 5.10.0-23-amd64 debian_5_10_pid0.txt debian_5_10_pid1.txt debian_5_10_pid2.txt
Slackware current 5.4.210 slackware_5_4_pid0.txt slackware_5_4_pid1.txt slackware_5_4_pid2.txt
Alma 8.6 4.18.0-477.13.1.el8_8.x86_64 alma_4_18_pid0.txt alma_4_18_pid1.txt alma_4_18_pid2.txt
Ubuntu 4.15.0-208-generic ubuntu_4_15_pid0.txt ubuntu_4_15_pid1.txt ubuntu_4_15_pid2.txt
Slackware current 4.14.290 slackware_4_14_pid0.txt slackware_4_14_pid1.txt slackware_4_14_pid2.txt
CentOS 7 3.10.0-1160.90.1.el7.x86_64 centos_3_10_pid0.txt centos_3_10_pid1.txt centos_3_10_pid2.txt
thiagoftsm commented 1 year ago

While I was investigating libbpf code I observed that a simple change inside code is enough to address this issue, so I am closing this PR in favor of https://github.com/netdata/netdata/pull/15258.