Skip to content

Commit

Permalink
feat: agent - eBPF Adapt 5.10.204-rt100-AD1000-PROTO
Browse files Browse the repository at this point in the history
  • Loading branch information
yinjiping authored and sharang committed Sep 30, 2024
1 parent 7585e5a commit 7496059
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions agent/src/ebpf/user/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7496059

Please sign in to comment.