mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-07-04 03:48:58 +00:00
Get the correct len of bytes (saw the second entry)
This commit is contained in:
parent
a27d235e5a
commit
3e7d08bf2c
@ -85,8 +85,8 @@ static __always_inline int golang_crypto_tls_read_uprobe(struct pt_regs *ctx) {
|
|||||||
// ctx->rsi is common between golang_crypto_tls_write_uprobe and golang_crypto_tls_read_uprobe
|
// ctx->rsi is common between golang_crypto_tls_write_uprobe and golang_crypto_tls_read_uprobe
|
||||||
b->conn_addr = ctx->rsi; // go.itab.*net.TCPConn,net.Conn address
|
b->conn_addr = ctx->rsi; // go.itab.*net.TCPConn,net.Conn address
|
||||||
b->is_request = false;
|
b->is_request = false;
|
||||||
b->len = CRYPTO_TLS_READ_LEN;
|
b->len = ctx->rcx;
|
||||||
b->cap = CRYPTO_TLS_READ_LEN; // no cap info
|
b->cap = ctx->rcx; // no cap info
|
||||||
|
|
||||||
void* stack_addr = (void*)ctx->rsp;
|
void* stack_addr = (void*)ctx->rsp;
|
||||||
__u64 data_p;
|
__u64 data_p;
|
||||||
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user