diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2026-03-10 16:09:13 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2026-03-10 15:36:44 +0000 |
| commit | b19feb243f1f2bdb7f04e5c6f3b693ee8cd2a8b7 (patch) | |
| tree | 44c8b4434fffffde7b2a55f21a371b4f0a390ad3 /pkg/aflow/tool | |
| parent | 9eee85817edcc7ad7e20ffadf0e43e1ba748cb35 (diff) | |
pkg/aflow: ensure we don't register MCP tools with duplicate names
If we have duplicate names, then only one of the duplicates will be used at random.
Add a check that we don't have duplicate names.
Currently it's only "crash-reproducer" (both action and a tool).
Also ignore "set-results" tool, and all tools created in tests.
Diffstat (limited to 'pkg/aflow/tool')
| -rw-r--r-- | pkg/aflow/tool/syzlang/reproduce.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/aflow/tool/syzlang/reproduce.go b/pkg/aflow/tool/syzlang/reproduce.go index 3faa11563..2c22bddd9 100644 --- a/pkg/aflow/tool/syzlang/reproduce.go +++ b/pkg/aflow/tool/syzlang/reproduce.go @@ -9,7 +9,7 @@ import ( _ "github.com/google/syzkaller/sys" ) -var Reproduce = aflow.NewFuncTool("crash-reproducer", reproduce, ` +var Reproduce = aflow.NewFuncTool("reproduce-crash", reproduce, ` Tool evaluates whether the given syz repro program crashes the kernel. It will compile the program and execute it in a VM. `) |
