Skip to content

Commit 45ca32a

Browse files
yinjipinglzf575
authored andcommitted
feat: eBPF Adapt to 4.19.90-23.54.v2101.ky10.x86_64
1 parent 6c2fdf9 commit 45ca32a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

agent/src/ebpf/kernel/socket_trace.bpf.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -960,12 +960,14 @@ static __inline void infer_tcp_seq_offset(void *sk,
960960
// 0x644 for EulerOS 4.18.0-147
961961
// 0x65c for 4.19.90-23.15.v2101.ky10.x86_64
962962
// 0x654 for 5.10.0-60.18.0.50.h322_1.hce2.aarch64
963+
// 0x61c for 4.19.90-23.54.v2101.ky10.x86_64
963964
#ifdef LINUX_VER_KYLIN
964965
int copied_seq_offsets[] = {
965966
0x514, 0x524, 0x52c, 0x534, 0x53c,
966967
0x544, 0x54c, 0x554, 0x55c, 0x564,
967968
0x56c, 0x574, 0x57c, 0x584, 0x58c,
968-
0x594, 0x59c, 0x5dc, 0x644, 0x65c
969+
0x594, 0x59c, 0x5dc, 0x644, 0x65c,
970+
0x61c
969971
};
970972
#elif defined LINUX_VER_3_10_0
971973
// 0x560 for 3.10.0-957, 3.10.0-1160
@@ -1004,12 +1006,13 @@ static __inline void infer_tcp_seq_offset(void *sk,
10041006
// 0x7cc for 4.19.90-23.15.v2101.ky10.x86_64
10051007
// The 0x684 feature code interferes with the inference of write_seq in the Kylin system. It must be removed.
10061008
// 0x7d4 for 5.10.0-60.18.0.50.h322_1.hce2.aarch64
1009+
// 0x78c for 4.19.90-23.54.v2101.ky10.x86_64
10071010
#ifdef LINUX_VER_KYLIN
10081011
int write_seq_offsets[] = {
10091012
0x66c, 0x674, 0x68c, 0x694, 0x69c, 0x6a4,
10101013
0x6ac, 0x6b4, 0x6bc, 0x6c4, 0x6cc, 0x6d4,
10111014
0x6dc, 0x6ec, 0x6f4, 0x6fc, 0x704, 0x70c,
1012-
0x714, 0x71c, 0x74c, 0x7b4, 0x7cc
1015+
0x714, 0x71c, 0x74c, 0x7b4, 0x7cc, 0x78c
10131016
};
10141017
#elif defined LINUX_VER_3_10_0
10151018
// 0x698 for 3.10.0-957, 3.10.0-1160

0 commit comments

Comments
 (0)