From 9867c87359492308a169e6da6e007082e299ac3a Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sat, 17 Dec 2022 12:45:03 +0100 Subject: prog: move image extraction from sys/linux Now that images are not linux-specific, we can move all image-related logic directly into prog package and significantly simplify the logic. --- prog/target.go | 6 ------ 1 file changed, 6 deletions(-) (limited to 'prog/target.go') diff --git a/prog/target.go b/prog/target.go index d50f1bf8f..36fde13de 100644 --- a/prog/target.go +++ b/prog/target.go @@ -5,7 +5,6 @@ package prog import ( "fmt" - "io" "math/rand" "sort" "sync" @@ -65,11 +64,6 @@ type Target struct { SyscallMap map[string]*Syscall ConstMap map[string]uint64 - // The extracted images will be then saved to the disk or uploaded to the asset storage. - // Returns nil if the call does not mount any image. - // We have to use io.Reader since such blobs can get pretty large. - ExtractMountedImage func(c *Call) (io.Reader, error) - init sync.Once initArch func(target *Target) types []Type -- cgit mrf-deployment