aboutsummaryrefslogtreecommitdiffstats
path: root/sys/targets
diff options
context:
space:
mode:
Diffstat (limited to 'sys/targets')
-rw-r--r--sys/targets/targets.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/targets/targets.go b/sys/targets/targets.go
index 99c64725a..67c3161e4 100644
--- a/sys/targets/targets.go
+++ b/sys/targets/targets.go
@@ -46,6 +46,10 @@ type Target struct {
timeouts Timeouts
}
+func (target *Target) HasCallNumber(callName string) bool {
+ return target.SyscallNumbers && !strings.HasPrefix(callName, "syz_")
+}
+
type osCommon struct {
// What OS can build native binaries for this OS.
// If not set, defaults to itself (i.e. native build).