aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2024-04-15 12:36:36 +0200
committerDmitry Vyukov <dvyukov@google.com>2024-04-15 13:23:33 +0000
commitec1d9df37dba4a17065b091bbe9e03c9635cd0dc (patch)
treed1c9767c3330e3704efd1d4fac8a007dd8be7df4 /pkg
parentb6f969371dc1e824c76636c0d3754a91b55d69b9 (diff)
prog: profile what consumes space in exec encoding
Allow to profile how many bytes are consumed for what in the exec encoding. The profile shows there are not many opportunities left. 53% are consumed by data blobs. 13% for const args. 18% for non-arg things (syscall number, copyout index, props, etc).
Diffstat (limited to 'pkg')
-rw-r--r--pkg/csource/csource.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/csource/csource.go b/pkg/csource/csource.go
index 53821a854..96237e64b 100644
--- a/pkg/csource/csource.go
+++ b/pkg/csource/csource.go
@@ -244,7 +244,7 @@ func (ctx *context) generateProgCalls(p *prog.Prog, trace bool) ([]string, []uin
if err != nil {
return nil, nil, fmt.Errorf("failed to serialize program: %w", err)
}
- decoded, err := ctx.target.DeserializeExec(exec[:progSize])
+ decoded, err := ctx.target.DeserializeExec(exec[:progSize], nil)
if err != nil {
return nil, nil, err
}