-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
layered: actually get slice_ns and max_exec_ns from CO:RE
Layered previously hardcoded the defaults for slice_ns and max_exec_us. This was changed in a recent PR to get these from CO:RE in the running kernel. This change doesn't work because the old values are still set a few lines below. Check for the presence of the CLI options and default to the CO:RE values otherwise. Remove setting the layer struct's slice_ns as we check if it's equal to 0 anyway and default to the global in the BPF code. Test plan: - CI
- Loading branch information
1 parent
596268e
commit 0e4d0f7
Showing
1 changed file
with
15 additions
and
17 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