From 7496059df6cc0ec2c3a70e341584cf3e35d14647 Mon Sep 17 00:00:00 2001 From: Jiping Yin Date: Mon, 30 Sep 2024 15:20:16 +0800 Subject: [PATCH] feat: agent - eBPF Adapt 5.10.204-rt100-AD1000-PROTO --- agent/src/ebpf/user/common.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/agent/src/ebpf/user/common.c b/agent/src/ebpf/user/common.c index dda42c0fb0e..9f2fae9d3fa 100644 --- a/agent/src/ebpf/user/common.c +++ b/agent/src/ebpf/user/common.c @@ -620,6 +620,15 @@ int fetch_kernel_version(int *major, int *minor, int *rev, int *num) has_error = false; } + // 5.10.204-rt100-AD1000-PROTO-0.7-00001-g3e358b7cb222 + if (strstr(sys_info.release, "rt100")) { + *num = 0; + if (sscanf(sys_info.release, "%u.%u.%u-%*s", major, minor, rev) != 3) + has_error = true; + else + has_error = false; + } + // 4.19.90-vhulk2211.3.0.h1542r10.aarch64 if (strstr(sys_info.release, "vhulk")) { *num = 0;