aboutsummaryrefslogtreecommitdiffstats
path: root/prog/prio_test.go
Commit message (Collapse)AuthorAgeFilesLines
* prog: generate choice table only for enabled callsAleksandr Nogikh2025-07-291-1/+1
| | | | | | | | | | | | | We used to generate a choice table and do its normalization for all present syscalls, also it was not considered during the /prio page generation. Enabled/disabled syscalls were accounted for in the choice table construction, but there's a chance that the resulting table was still somewhat skewed. The situation must have become worse after several thousands of auto syscalls were added.
* tools/syz-linter: check t.Logf/Errorf/Fatalf messagesDmitry Vyukov2024-04-171-1/+1
| | | | | Fix checking of Logf, it has string in 0-th arg. Add checking of t.Errorf/Fatalf.
* prog: update the choice table aglorithmAleksandr Nogikh2024-04-111-5/+5
| | | | | | | | | | | | Two changes: 1) Instead of multiplying static and dynamic prios, add them 1:1. 2) For dynamic priorities, limit the effect of too frequent call combinations by taking a sqrt() of the value. On syz-testbed experiments, the updated algorithm triggers 5-10% more different crash types. As before, there is no big theory behind the approach :)
* pkg/testutil: add packageDmitry Vyukov2021-12-211-1/+3
| | | | | | | | Add package with RaceEnabled const that can be used in test to skip long tests in race mode. Switch existing tests to use the new package. Update #2886
* prog: make priority calculation fasterDmitry Vyukov2021-01-051-5/+5
| | | | | | | Switch from float32 to int32. Float32 is super slow in arm emulation. Plus flats are generally non-deterministic due to order of operations, so we needed to do additional sorts to deal with that. Now we don't.
* prog: more interations in prio testAndrey Konovalov2020-07-211-1/+1
|
* prog: increase number of iterations in a testDmitry Vyukov2020-06-071-1/+1
| | | | | | The test is random and needs some large number of iterations to pass. It failed for me after an unrelated change in descriptions. So bump number of iterations.
* prog: speed up TestPrioDeterminismDmitry Vyukov2020-05-211-4/+5
| | | | Make it faster + disable in race mode (still too slow).
* prog: fix determinism in choice tableDmitry Vyukov2020-05-211-0/+24
| | | | | | | Floats bite. We interated over uses map non-deterministically, which would be fine overall except that it may break floats due to rounding.
* prog: reduce size of -short testsDmitry Vyukov2020-05-181-7/+6
| | | | Reduce size of tests that run for more than 1s in short mode.
* prog: support disabled attributeDmitry Vyukov2020-05-041-34/+2
| | | | | Update #477 Update #502
* prog: fix typo in commentDmitry Vyukov2019-12-041-1/+1
| | | | | | | | Linter says: prog/prio_test.go:68:15: `probablistic` is a misspelling of `probabilistic` (misspell) // for this probablistic test. ^
* prog: fix TestStaticPrioritiesDmitry Vyukov2019-12-031-2/+7
| | | | | | With -short and -race we get only 10 iterations which is not enough for this probablistic test. Use at least 100 interations always.
* prog: add better call-to-call priority calculationVeronica Radu2019-09-231-0/+36
| | | | Update #1380
* prog: add a test for ChoiceTableDmitry Vyukov2019-02-211-0/+33
|
* prog: fix corner case in normalizePrioDmitry Vyukov2018-08-301-0/+28
Based on twitter bug report: https://twitter.com/panicaII/status/1035058001269248000