From ec1d9df37dba4a17065b091bbe9e03c9635cd0dc Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 15 Apr 2024 12:36:36 +0200 Subject: 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). --- pkg/csource/csource.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/csource/csource.go') 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 } -- cgit mrf-deployment