aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/aflow/flow/patching/patching.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2026-01-31 19:33:49 +0100
committerDmitry Vyukov <dvyukov@google.com>2026-02-02 13:17:18 +0000
commit7dc14e346404f96c5198c8126fd062efffe8c1a4 (patch)
tree3ee44a2a23316f72c872269ed44d05495b68012e /pkg/aflow/flow/patching/patching.go
parent20cefcc6e2f69cc6637dabd153f20c51ac6737d8 (diff)
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.
Diffstat (limited to 'pkg/aflow/flow/patching/patching.go')
-rw-r--r--pkg/aflow/flow/patching/patching.go3
1 files changed, 2 insertions, 1 deletions
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(