From 7dc14e346404f96c5198c8126fd062efffe8c1a4 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sat, 31 Jan 2026 19:33:49 +0100 Subject: pkg/aflow/tool/grepper: add the tool Add a tool that executes git grep with the given expression. It can handle long tail of cases that codesearcher can't handle, while still providing less output than reading whole files. --- pkg/aflow/flow/patching/patching.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pkg/aflow/flow/patching/patching.go') diff --git a/pkg/aflow/flow/patching/patching.go b/pkg/aflow/flow/patching/patching.go index 6be96fcc5..4239a7831 100644 --- a/pkg/aflow/flow/patching/patching.go +++ b/pkg/aflow/flow/patching/patching.go @@ -14,6 +14,7 @@ import ( "github.com/google/syzkaller/pkg/aflow/tool/codeeditor" "github.com/google/syzkaller/pkg/aflow/tool/codeexpert" "github.com/google/syzkaller/pkg/aflow/tool/codesearcher" + "github.com/google/syzkaller/pkg/aflow/tool/grepper" ) type Inputs struct { @@ -36,7 +37,7 @@ type Inputs struct { } func createPatchingFlow(name string, summaryWindow int) *aflow.Flow { - commonTools := slices.Clip(append([]aflow.Tool{codeexpert.Tool}, codesearcher.Tools...)) + commonTools := slices.Clip(append([]aflow.Tool{codeexpert.Tool, grepper.Tool}, codesearcher.Tools...)) return &aflow.Flow{ Name: name, Root: aflow.Pipeline( -- cgit mrf-deployment