aboutsummaryrefslogtreecommitdiffstats
path: root/prog/target.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2022-12-17 12:45:03 +0100
committerDmitry Vyukov <dvyukov@google.com>2022-12-22 10:11:08 +0100
commit9867c87359492308a169e6da6e007082e299ac3a (patch)
treeae304695ecce329ef882711f2be7e42fdc5c457e /prog/target.go
parent8482d3c1035095c89d112c75bfcc2e4095b486bf (diff)
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.
Diffstat (limited to 'prog/target.go')
-rw-r--r--prog/target.go6
1 files changed, 0 insertions, 6 deletions
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