aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/clangtool/clangtool.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2024-12-13 15:15:49 +0100
committerDmitry Vyukov <dvyukov@google.com>2024-12-17 13:44:24 +0000
commitc8c15bb214509bafc8fe1a1e3abb8ccf90b3306e (patch)
treeca722a71aff5a1566389f178d9c95d7d7e8caeed /pkg/clangtool/clangtool.go
parentbc1a1b50f942408a9139887b914f745d9fa02adc (diff)
tools/syz-declextract: infer argument/field types
Use data flow analysis to infer syscall argument, return value, and struct field types. See the comment in pkg/declextract/typing.go for more details.
Diffstat (limited to 'pkg/clangtool/clangtool.go')
-rw-r--r--pkg/clangtool/clangtool.go10
1 files changed, 6 insertions, 4 deletions
diff --git a/pkg/clangtool/clangtool.go b/pkg/clangtool/clangtool.go
index 528f80c57..d15cc51a7 100644
--- a/pkg/clangtool/clangtool.go
+++ b/pkg/clangtool/clangtool.go
@@ -8,6 +8,7 @@ import (
"encoding/json"
"errors"
"fmt"
+ "io"
"math/rand"
"os"
"os/exec"
@@ -22,10 +23,11 @@ import (
)
type Config struct {
- ToolBin string
- KernelSrc string
- KernelObj string
- CacheFile string
+ ToolBin string
+ KernelSrc string
+ KernelObj string
+ CacheFile string
+ DebugTrace io.Writer
}
// Run runs the clang tool on all files in the compilation database