-
Notifications
You must be signed in to change notification settings - Fork 431
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: improve save_args_to_submit_buf
This replaces the switch case branches for a direct access to a type size table and uses bitmasking to decide about the code path to take. Improvements: | dist/tracee.bpf.o | Before (B) | After (B) | Diff (B) | (%) | |-----------------------|------------|-----------|----------|---------| | Size in Bytes | 14118048 | 14098024 | -20024 | -0.14% | | sys_exit_submit | Before (B) | After (B) | Diff (B) | (%) | |-----------------------|------------|-----------|----------|---------| | Interpr Size (xlated) | 25248 | 19200 | -6048 | -23.96% | | JITed Size (jited) | 16600 | 12161 | -4439 | -26.73% | | Memlock | 28672 | 20480 | -8192 | -28.57% | | Metric (1k evts) | Before (ns) | After (ns) | Diff (ns) | (%) | |---------------------|-------------|------------|-----------|--------| | Minimum Time | 184,797 | 167,025 | -17,772 | -9.62% | | Maximum Time | 217,418 | 201,527 | -15,891 | -7.31% | | Average Time | 201,117 | 189,893 | -11,224 | -5.58% | An improvement of ~ -11,22ns in the average time to process 1 single event. Benchmarked on: - AMD Ryzen 9 7950X 16-Core Processor - 64GB RAM Runned with: tracee -e execve,init_module,process_vm_writev,ptrace,arch_prctl,chdir
- Loading branch information
Showing
1 changed file
with
97 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters