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). --- prog/encoding_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'prog/encoding_test.go') diff --git a/prog/encoding_test.go b/prog/encoding_test.go index 42f16036c..e5d5a2d38 100644 --- a/prog/encoding_test.go +++ b/prog/encoding_test.go @@ -404,11 +404,11 @@ func TestSerializeDeserializeRandom(t *testing.T) { if ok { t.Log("flaky?") } - decoded0, err := target.DeserializeExec(data0[:n0]) + decoded0, err := target.DeserializeExec(data0[:n0], nil) if err != nil { t.Fatal(err) } - decoded1, err := target.DeserializeExec(data1[:n1]) + decoded1, err := target.DeserializeExec(data1[:n1], nil) if err != nil { t.Fatal(err) } -- cgit mrf-deployment