Set len and cap in golang_net_http_gzipreader_read_uprobe as well

This commit is contained in:
M. Mert Yildiran 2022-06-02 01:10:02 +03:00
parent f80556d21c
commit 9f6188a4cb
No known key found for this signature in database
GPG Key ID: D42ADB236521BF7A
3 changed files with 2 additions and 0 deletions

View File

@ -162,6 +162,8 @@ static __always_inline int golang_net_http_gzipreader_read_uprobe(struct pt_regs
b->conn_addr = s->conn_addr;
b->is_request = false;
b->is_gzip_chunk = true;
b->len = ctx->rax;
b->cap = ctx->rax; // no cap info
__u64 data_p;
// Address at ctx->rsp + 0x8 holds the data

Binary file not shown.

Binary file not shown.