aboutsummaryrefslogtreecommitdiffstats
path: root/prog/prio_test.go
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2025-07-28 19:30:11 +0200
committerAleksandr Nogikh <nogikh@google.com>2025-07-29 08:30:56 +0000
commit5971223333d76c5f21de85038c78785ac766d696 (patch)
tree2a2e397a2638f4d81f617df35be9aec21569ce8a /prog/prio_test.go
parentc4a9548758bac1c6dc231afd7543b5e8c5b6a65e (diff)
prog: generate choice table only for enabled calls
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.
Diffstat (limited to 'prog/prio_test.go')
-rw-r--r--prog/prio_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/prog/prio_test.go b/prog/prio_test.go
index 93555818e..2e1208822 100644
--- a/prog/prio_test.go
+++ b/prog/prio_test.go
@@ -23,7 +23,7 @@ func TestNormalizePrios(t *testing.T) {
{10, 20, 0},
}
t.Logf("had: %+v", prios)
- normalizePrios(prios)
+ normalizePrios(prios, len(prios))
if !reflect.DeepEqual(prios, want) {
t.Logf("got: %+v", prios)
t.Errorf("want: %+v", want)