This is an automated email from the ASF dual-hosted git repository.
liuhan pushed a commit to branch tmp_disable_reading
in repository https://gitbox.apache.org/repos/asf/skywalking-rover.git
The following commit(s) were added to refs/heads/tmp_disable_reading by this
push:
new 3b13098 fix missing kernel logs
3b13098 is described below
commit 3b13098745c8967fa12b4d11bcb91491a6792ec7
Author: mrproliu <[email protected]>
AuthorDate: Sun Dec 22 18:53:20 2024 +0800
fix missing kernel logs
---
bpf/include/socket_data.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/bpf/include/socket_data.h b/bpf/include/socket_data.h
index 2657568..248b34c 100644
--- a/bpf/include/socket_data.h
+++ b/bpf/include/socket_data.h
@@ -218,7 +218,7 @@ struct socket_data_last_id_t {
};
struct {
__uint(type, BPF_MAP_TYPE_LRU_HASH);
- __uint(max_entries, 1000);
+ __uint(max_entries, 10000);
__type(key, __u64);
__type(value, struct socket_data_last_id_t);
} socket_data_last_id_map SEC(".maps");
@@ -230,6 +230,7 @@ static __inline void upload_socket_data(void *ctx, struct
upload_data_args *args
return;
}
struct socket_data_last_id_t *latest =
bpf_map_lookup_elem(&socket_data_last_id_map, &args->con_id);
+ args->prev_socket_data_id = 0;
if (latest != NULL && latest->random_id == args->random_id) {
args->prev_socket_data_id = latest->socket_data_id;
}