aboutsummaryrefslogtreecommitdiffstats
path: root/sys/syz-extract/linux.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-05-20 19:38:14 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-05-20 19:38:14 +0200
commit204f4fde068172170c5bc22bcffd60753d583c35 (patch)
treeeb9d581ee6ccae4417169e019ffaa82d02167ade /sys/syz-extract/linux.go
parent4afdfa205b55633e7eb9db03a9d099d7aa324801 (diff)
sys/syz-extract: fix for full paths
pkg/ast now uses full paths since 554f8f39c57d91c1be8724cf4054424c9fb5f151. Fix syz-extract accordingly.
Diffstat (limited to 'sys/syz-extract/linux.go')
-rw-r--r--sys/syz-extract/linux.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/syz-extract/linux.go b/sys/syz-extract/linux.go
index 29d99d1de..7760bcb0f 100644
--- a/sys/syz-extract/linux.go
+++ b/sys/syz-extract/linux.go
@@ -134,7 +134,7 @@ func (*linux) prepareArch(arch *Arch) error {
}
func (*linux) processFile(arch *Arch, info *compiler.ConstInfo) (map[string]uint64, map[string]bool, error) {
- if info.File == "dev_kvm.txt" && arch.target.Arch == "arm" {
+ if strings.HasSuffix(info.File, "_kvm.txt") && arch.target.Arch == "arm" {
// Hack: KVM is not supported on ARM anymore. We may want some more official support
// for marking descriptions arch-specific, but so far this combination is the only one.
// Note: syz-sysgen also ignores this file for arm.