netdata / kernel-collector

Linux Kernel eBPF Collectors
61 stars 15 forks source link

Swap 6.8 #374

Closed thiagoftsm closed 6 months ago

thiagoftsm commented 6 months ago
Summary

This PR is modifying SWAP source code, after changes in kernel source.

Test Plan
  1. Get binaries according to your C library 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  --swap --netdata-path ../artifacts --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.6.22 slackware_pid0.txt slackware_pid1.txt slackware_pid2.txt slackware_pid3.txt
Arch Linux Libvirt 6.8.1 arch_pid0.txt arch_pid1.txt arch_pid2.txt arch_pid3.txt