Commit 9db2ccc
systrap: preserve latency medians across histogram reset
sentryOnStubOn records the current stub- and sentry-bound latency medians,
then resets both histograms before evaluating the two fast paths. The stub
check correctly uses the saved values. The sentry check samples the now-empty
histograms again, so it always receives zero and cannot account for the
period that just ended.
Use the saved period medians for the sentry check too. This matches the
other state transitions and ensures both decisions are based on the same
completed measurement period.
Fixes: cffce1a ("systrap: Revise slow-path enablement.")
Tested with:
make test TARGETS='//pkg/sentry/platform/systrap:systrap_test'
FUTURE_COPYBARA_INTEGRATE_REVIEW=#14426 from ayushr2:codex/fix-systrap-fastpath-median 6172a4b
PiperOrigin-RevId: 9713612491 parent 907c32d commit 9db2ccc
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
656 | 656 | | |
657 | 657 | | |
658 | 658 | | |
659 | | - | |
| 659 | + | |
660 | 660 | | |
661 | 661 | | |
662 | 662 | | |
| |||
0 commit comments