netdata / kernel-collector

Linux Kernel eBPF Collectors
61 stars 15 forks source link

Remove Macro #350

Closed thiagoftsm closed 1 year ago

thiagoftsm commented 1 year ago
Summary

Change macro avoiding necessity to modify codes in ebpf-co-re repo.

Test Plan
  1. Get binaries according your LIBC from this link and extract them inside a directory, for example: ../artifacts. You can also get everything for glibc [here](UPLOAD FILE WITH ALL BINARIES TO SIMPLIFY REVIEWERS).

  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 3`; do ./kernel/legacy_test --netdata-path ../artifacts --vfs --content --iteration 1 --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 Environment Kernel Version Real Parent Parent All PIDs Without PIDs
Slackware current Bare metal 6.1.52 slackware_6_1_0.txt slackware_6_1_1.txt slackware_6_1_2.txt slackware_6_1_3.txt
CentOS 7.9 Libvirt 3.10 centos_3_10_pid0.txt centos_3_10_pid1.txt centos_3_10_pid2.txt centos_3_10_pid3.txt