diff --git a/tap/tlstapper/bpf/golang_uprobes.c b/tap/tlstapper/bpf/golang_uprobes.c index ca29f3e7d..1fb341a10 100644 --- a/tap/tlstapper/bpf/golang_uprobes.c +++ b/tap/tlstapper/bpf/golang_uprobes.c @@ -48,7 +48,7 @@ static __always_inline int golang_crypto_tls_write_uprobe(struct pt_regs *ctx) { event = bpf_map_lookup_elem(&golang_heap, &zero); if (!event) { - log_error(ctx, LOG_ERROR_ALLOCATING_CHUNK, pid, 0l, 0l); + log_error(ctx, LOG_ERROR_GOLANG_ALLOCATING_EVENT, pid, 0l, 0l); return 0; } @@ -94,7 +94,7 @@ static __always_inline int golang_crypto_tls_read_uprobe(struct pt_regs *ctx) { event = bpf_map_lookup_elem(&golang_heap, &zero); if (!event) { - log_error(ctx, LOG_ERROR_ALLOCATING_CHUNK, pid, 0l, 0l); + log_error(ctx, LOG_ERROR_GOLANG_ALLOCATING_EVENT, pid, 0l, 0l); return 0; } diff --git a/tap/tlstapper/bpf/include/logger_messages.h b/tap/tlstapper/bpf/include/logger_messages.h index 51d70dd59..ccb11c0a8 100644 --- a/tap/tlstapper/bpf/include/logger_messages.h +++ b/tap/tlstapper/bpf/include/logger_messages.h @@ -35,6 +35,7 @@ Copyright (C) UP9 Inc. #define LOG_ERROR_GOLANG_SOCKET_PUTTING_FILE_DESCRIPTOR (23) #define LOG_ERROR_GOLANG_DIAL_READING_KEY_DIAL (24) #define LOG_ERROR_GOLANG_DIAL_PUTTING_SOCKET (25) +#define LOG_ERROR_GOLANG_ALLOCATING_EVENT (26) // Sometimes we have the same error, happening from different locations. // in order to be able to distinct between them in the log, we add an diff --git a/tap/tlstapper/bpf_logger_messages.go b/tap/tlstapper/bpf_logger_messages.go index 3c452193b..6bbc17688 100644 --- a/tap/tlstapper/bpf_logger_messages.go +++ b/tap/tlstapper/bpf_logger_messages.go @@ -29,4 +29,5 @@ var bpfLogMessages = []string{ /*0023*/ "[%d] Golang socket unable to put file descriptor [err: %d]", /*0024*/ "[%d] Golang dial unable to read key_dial [err: %d]", /*0025*/ "[%d] Golang dial unable to put socket [err: %d]", + /*0026*/ "[%d] Unable to allocate Golang event in bpf heap", } diff --git a/tap/tlstapper/tlstapper_bpfeb.o b/tap/tlstapper/tlstapper_bpfeb.o index 7082a605a..5f98479da 100644 Binary files a/tap/tlstapper/tlstapper_bpfeb.o and b/tap/tlstapper/tlstapper_bpfeb.o differ diff --git a/tap/tlstapper/tlstapper_bpfel.o b/tap/tlstapper/tlstapper_bpfel.o index f83582b0c..bfa23340c 100644 Binary files a/tap/tlstapper/tlstapper_bpfel.o and b/tap/tlstapper/tlstapper_bpfel.o differ