Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bpf: ensure speculations drops are reported when needed
The unrolled loop in dt_speculation() would return without recording a speculation drop if an iteration was attempted beyond the configured NSPEC value. Depending on how the compiler optimized the code, that could lead to an early return from the function without ever calling dt_no_spec(). Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com> Reviewed-by: Nick Alcock <nick.alcock@oracle.com> Reviewed-by: Eugene Loh <eugene.loh@oracle.com>
- Loading branch information