-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle stack() and ustack() args in a separate function
Currently, dt_cg_act_stack() and dt_cg_act_ustack() generate BPF code to implement the stack() and ustack() actions. However, it should also be possible to use stack() and ustack() as aggregation keys. So, it would be nice to move the main work of the code-generation functions to separate functions that can be used by different callers. Therefore, start refactoring these cg functions so that what they do can be invoked by multiple callers. Here, simply move the handling of the stack() and ustack() args out into a separate function. (Actually, that handling does not even involve any code generation.) Signed-off-by: Eugene Loh <eugene.loh@oracle.com> Reviewed-by: Kris Van Hees <kris.van.hees@oracle.com>
- Loading branch information
Showing
1 changed file
with
67 additions
and
51 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