Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tylerjereddy/ebpf_write_compare
https://github.com/tylerjereddy/ebpf_write_compare
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/tylerjereddy/ebpf_write_compare
- Owner: tylerjereddy
- Created: 2023-03-06T21:58:07.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-06T22:13:49.000Z (almost 2 years ago)
- Last Synced: 2024-10-31T05:42:42.340Z (2 months ago)
- Language: Python
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Compare Darshan vs. eBPF prototype monitoring for POSIX write() call
## For Darshan, just profile the Python code as usual with an LD_PRELOAD
## for eBPF
1. In 1 terminal session do: `sudo python3 simple.py` and keyboard interrupt when
you are done profiling.
2. In another terminal session run the code you want to profile: `python3 test.py`
3. Since eBPF will monitor `write()` across the kernel, we confirm the appropriate
number of writes in the log manually for now, i.e. using the PID of the application
we want to instrument, `grep -E "71757" log.txt | wc -l`