forked from bpftrace/bpftrace
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add implicit cast for 'sum' and 'count'
This utilizes 'map_lookup_percpu_elem' to iterate over the per-cpu maps that 'sum' and 'count' use to aggregate the values for each cpu so these maps can be used in kernel space for conditionals and arithmetic. Additionally, add explicit casting for printing or storing just the value for these types of maps. Issue: bpftrace#3126 Note: We can do the same to support to 'avg', 'max', 'min' but those require the same user-space logic written in llvm ir.
- Loading branch information
Jordan Rome
committed
May 21, 2024
1 parent
6d260ed
commit f9e22d1
Showing
6 changed files
with
223 additions
and
13 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
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
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