diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2025-07-28 19:30:11 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2025-07-29 08:30:56 +0000 |
| commit | 5971223333d76c5f21de85038c78785ac766d696 (patch) | |
| tree | 2a2e397a2638f4d81f617df35be9aec21569ce8a /tools/syz-showprio | |
| parent | c4a9548758bac1c6dc231afd7543b5e8c5b6a65e (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 'tools/syz-showprio')
| -rw-r--r-- | tools/syz-showprio/showprio.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/syz-showprio/showprio.go b/tools/syz-showprio/showprio.go index f9ec2ff69..a4b15bca3 100644 --- a/tools/syz-showprio/showprio.go +++ b/tools/syz-showprio/showprio.go @@ -45,7 +45,8 @@ func main() { fmt.Fprintf(os.Stderr, "failed to read corpus: %v\n", err) os.Exit(1) } - showPriorities(enabled, target.CalculatePriorities(corpus), target) + matrix, _ := target.CalculatePriorities(corpus, nil) + showPriorities(enabled, matrix, target) } func showPriorities(calls []string, prios [][]int32, target *prog.Target) { |
