diff options
| author | Pimyn Girgis <bemenboshra2001@gmail.com> | 2024-08-06 14:10:45 +0000 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2024-08-12 09:22:32 +0000 |
| commit | 421e1cbedb47cb499201512defc2baf79d7b87f7 (patch) | |
| tree | d3575138e30c98c96e6ecc180b4b06fdcd71fa4b /tools | |
| parent | 1fef415f27727712346c8e7ad9c945e74d217b1b (diff) | |
pkg/mgrconfig, prog, tools: allow automatically generated or manually written descriptions or both
Add "Auto" type and allow to choose descriptions mode in configurations. Defaults to using manual only.
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/syz-execprog/execprog.go | 2 | ||||
| -rw-r--r-- | tools/syz-mutate/mutate.go | 2 | ||||
| -rw-r--r-- | tools/syz-showprio/showprio.go | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/tools/syz-execprog/execprog.go b/tools/syz-execprog/execprog.go index e86d09053..550b3c114 100644 --- a/tools/syz-execprog/execprog.go +++ b/tools/syz-execprog/execprog.go @@ -109,7 +109,7 @@ func main() { if *flagSyscalls == "" { syscallList = nil } - requestedSyscalls, err = mgrconfig.ParseEnabledSyscalls(target, syscallList, nil) + requestedSyscalls, err = mgrconfig.ParseEnabledSyscalls(target, syscallList, nil, mgrconfig.AnyDescriptions) if err != nil { tool.Failf("failed to parse enabled syscalls: %v", err) } diff --git a/tools/syz-mutate/mutate.go b/tools/syz-mutate/mutate.go index 351d0ae6a..aa812a447 100644 --- a/tools/syz-mutate/mutate.go +++ b/tools/syz-mutate/mutate.go @@ -42,7 +42,7 @@ func main() { var syscalls map[*prog.Syscall]bool if *flagEnable != "" { enabled := strings.Split(*flagEnable, ",") - syscallsIDs, err := mgrconfig.ParseEnabledSyscalls(target, enabled, nil) + syscallsIDs, err := mgrconfig.ParseEnabledSyscalls(target, enabled, nil, mgrconfig.AnyDescriptions) if err != nil { fmt.Fprintf(os.Stderr, "failed to parse enabled syscalls: %v\n", err) os.Exit(1) diff --git a/tools/syz-showprio/showprio.go b/tools/syz-showprio/showprio.go index 0729f4388..f9ec2ff69 100644 --- a/tools/syz-showprio/showprio.go +++ b/tools/syz-showprio/showprio.go @@ -35,7 +35,7 @@ func main() { os.Exit(1) } enabled := strings.Split(*flagEnable, ",") - _, err = mgrconfig.ParseEnabledSyscalls(target, enabled, nil) + _, err = mgrconfig.ParseEnabledSyscalls(target, enabled, nil, mgrconfig.AnyDescriptions) if err != nil { fmt.Fprintf(os.Stderr, "failed to parse enabled syscalls: %v\n", err) os.Exit(1) |
