Updated usdt_sample for ubuntu 21.10 (and python3)
authorBram Veldhoen <bram@adiplus.nl>
Tue, 14 Dec 2021 07:39:45 +0000 (08:39 +0100)
committerBram Veldhoen <bram@adiplus.nl>
Thu, 23 Dec 2021 11:56:58 +0000 (12:56 +0100)
commitd62457837b44bac8d67d0a993e955b086de21c96
tree901ff33a475865f9b9ad07bd9a192cb06b0ee00e
parentf32f772f684a5382fe7a0ceac10f7cea047dce10
Updated usdt_sample for ubuntu 21.10 (and python3)

* Updated readme for Ubuntu 21.10 and python3.
* Readability improvements.
* Using atomic_increment (thus requires bcc 0.21+).
* Using/tested probes created using systemtap (dtrace), next to the
probes created with macros in the folly header.
* Also tested while building usdt_sample with clang.
* Some (modern) cmake changes.
* Added script to execute build and sample python scripts.
14 files changed:
examples/usdt_sample/.gitignore [new file with mode: 0644]
examples/usdt_sample/CMakeLists.txt
examples/usdt_sample/scripts/bpf_text_shared.c
examples/usdt_sample/scripts/lat_avg.py
examples/usdt_sample/scripts/lat_dist.py
examples/usdt_sample/scripts/latency.py
examples/usdt_sample/usdt_sample.md
examples/usdt_sample/usdt_sample.sh [new file with mode: 0755]
examples/usdt_sample/usdt_sample_app1/CMakeLists.txt
examples/usdt_sample/usdt_sample_lib1/CMakeLists.txt
examples/usdt_sample/usdt_sample_lib1/include/usdt_sample_lib1/lib1_sdt.h [deleted file]
examples/usdt_sample/usdt_sample_lib1/src/lib1.cpp
examples/usdt_sample/usdt_sample_lib1/src/lib1_sdt.d
examples/usdt_sample/usdt_sample_lib1/src/lib1_sdt.h [new file with mode: 0644]