Skip to content

Commit e0470ba

Browse files
dylandreimerinkti-mo
authored andcommitted
CI: switch from 6.7 to 6.8
Kernel 6.8 is currently the latest stable kernel release, so test against it. Also add 6.6 to the test matrix since it is an LTS release. Signed-off-by: Dylan Reimerink <[email protected]>
1 parent f60c8bc commit e0470ba

File tree

5 files changed

+15
-14
lines changed

5 files changed

+15
-14
lines changed

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
env:
99
TMPDIR: /tmp
10-
CI_MAX_KERNEL_VERSION: '6.7'
10+
CI_MAX_KERNEL_VERSION: '6.8'
1111
CI_MIN_CLANG_VERSION: '11'
1212
go_version: '~1.22'
1313
prev_go_version: '~1.21'
@@ -173,7 +173,7 @@ jobs:
173173
timeout-minutes: 15
174174
strategy:
175175
matrix:
176-
version: ["6.7", "6.1", "5.15", "5.10", "5.4", "4.19", "4.14", "4.9"]
176+
version: ["6.8", "6.6", "6.1", "5.15", "5.10", "5.4", "4.19", "4.14", "4.9"]
177177
env:
178178
KERNEL_VERSION: "${{ matrix.version }}"
179179
steps:

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ testdata/loader-%-eb.elf: testdata/loader.c
106106
$(STRIP) -g $@
107107

108108
.PHONY: update-kernel-deps
109-
update-kernel-deps: export KERNEL_VERSION?=6.7
109+
update-kernel-deps: export KERNEL_VERSION?=6.8
110110
update-kernel-deps:
111111
./testdata/sh/update-kernel-deps.sh
112112
$(MAKE) container-all

btf/testdata/btf_testmod.btf

0 Bytes
Binary file not shown.

btf/testdata/vmlinux.btf.gz

28 KB
Binary file not shown.

internal/sys/types.go

+12-11
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ const (
359359
BPF_LINK_TYPE_TCX LinkType = 11
360360
BPF_LINK_TYPE_UPROBE_MULTI LinkType = 12
361361
BPF_LINK_TYPE_NETKIT LinkType = 13
362-
MAX_BPF_LINK_TYPE LinkType = 14
362+
__MAX_BPF_LINK_TYPE LinkType = 14
363363
)
364364

365365
type MapType uint32
@@ -528,7 +528,7 @@ type LinkInfo struct {
528528
Id LinkID
529529
ProgId uint32
530530
_ [4]byte
531-
Extra [40]uint8
531+
Extra [48]uint8
532532
}
533533

534534
type MapInfo struct {
@@ -1263,7 +1263,7 @@ type CgroupLinkInfo struct {
12631263
_ [4]byte
12641264
CgroupId uint64
12651265
AttachType AttachType
1266-
_ [28]byte
1266+
_ [36]byte
12671267
}
12681268

12691269
type IterLinkInfo struct {
@@ -1287,6 +1287,7 @@ type KprobeLinkInfo struct {
12871287
Offset uint32
12881288
Addr uint64
12891289
Missed uint64
1290+
_ [8]byte
12901291
}
12911292

12921293
type KprobeMultiLinkInfo struct {
@@ -1298,7 +1299,7 @@ type KprobeMultiLinkInfo struct {
12981299
Count uint32
12991300
Flags uint32
13001301
Missed uint64
1301-
_ [16]byte
1302+
_ [24]byte
13021303
}
13031304

13041305
type NetNsLinkInfo struct {
@@ -1308,7 +1309,7 @@ type NetNsLinkInfo struct {
13081309
_ [4]byte
13091310
NetnsIno uint32
13101311
AttachType AttachType
1311-
_ [32]byte
1312+
_ [40]byte
13121313
}
13131314

13141315
type NetfilterLinkInfo struct {
@@ -1320,7 +1321,7 @@ type NetfilterLinkInfo struct {
13201321
Hooknum uint32
13211322
Priority int32
13221323
Flags uint32
1323-
_ [24]byte
1324+
_ [32]byte
13241325
}
13251326

13261327
type NetkitLinkInfo struct {
@@ -1330,7 +1331,7 @@ type NetkitLinkInfo struct {
13301331
_ [4]byte
13311332
Ifindex uint32
13321333
AttachType AttachType
1333-
_ [32]byte
1334+
_ [40]byte
13341335
}
13351336

13361337
type PerfEventLinkInfo struct {
@@ -1348,7 +1349,7 @@ type RawTracepointLinkInfo struct {
13481349
_ [4]byte
13491350
TpName Pointer
13501351
TpNameLen uint32
1351-
_ [28]byte
1352+
_ [36]byte
13521353
}
13531354

13541355
type TcxLinkInfo struct {
@@ -1358,7 +1359,7 @@ type TcxLinkInfo struct {
13581359
_ [4]byte
13591360
Ifindex uint32
13601361
AttachType AttachType
1361-
_ [32]byte
1362+
_ [40]byte
13621363
}
13631364

13641365
type TracingLinkInfo struct {
@@ -1369,7 +1370,7 @@ type TracingLinkInfo struct {
13691370
AttachType AttachType
13701371
TargetObjId uint32
13711372
TargetBtfId TypeID
1372-
_ [28]byte
1373+
_ [36]byte
13731374
}
13741375

13751376
type XDPLinkInfo struct {
@@ -1378,5 +1379,5 @@ type XDPLinkInfo struct {
13781379
ProgId uint32
13791380
_ [4]byte
13801381
Ifindex uint32
1381-
_ [36]byte
1382+
_ [44]byte
13821383
}

0 commit comments

Comments
 (0)