-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new(ebpf): use longer iterations when bpf_loop available
The LOOP macro now takes an extra `max_unroll` parameter, which defines the maximum loop unroll when bpf_loop is missing. This allows in `get_path_str` to have a MAX_PATH_COMPONENTS of 100, but unroll the loop only up to 20, since a bigger value would be rejected by the verifier.
- Loading branch information
1 parent
53373e3
commit 7097fd5
Showing
2 changed files
with
59 additions
and
25 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
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