Skip to content

Commit af78867

Browse files
tklausergopherbot
authored andcommitted
unix/linux: update to Linux kernel 5.19-rc2
Update to 5.19-rc2 instead of 5.18 for the following reasons: - Support for LoongArch has been merged upstream. This allows to drop the loong64 specific kernel patches. - Fixes [1] an issue encountered with when generating the SOCK_TXREHASH_DEFAULT constant from linux/socket.h on 5.18 - Contains a fix [2] to provide SYS_MEMFD_SECRET on linux/riscv64 as well, The underlying syscall was already available in earlier kernel versions. Also see golang/go#51547. [1] https://lore.kernel.org/r/20220531094345.13801-1-tklauser@distanz.ch [2] https://lore.kernel.org/r/20220505081815.22808-1-tklauser@distanz.ch Change-Id: I6c3ec30a067eae339c443ee55962d94c84feffd9 Reviewed-on: https://go-review.googlesource.com/c/sys/+/411375 Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Ian Lance Taylor <iant@google.com> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> Run-TryBot: Ian Lance Taylor <iant@google.com> Reviewed-by: Cherry Mui <cherryyz@google.com>
1 parent 003f7fa commit af78867

36 files changed

+180
-23
lines changed

unix/linux/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,14 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1515
# Get the git sources. If not cached, this takes O(5 minutes).
1616
WORKDIR /git
1717
RUN git config --global advice.detachedHead false
18-
# Linux Kernel: Released 20 Mar 2022
19-
RUN git clone --branch v5.17 --depth 1 https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux
18+
# Linux Kernel: Released 12 Jun 2022
19+
RUN git clone --branch v5.19-rc2 --depth 1 https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux
2020
# GNU C library: Released 03 Feb 2022
2121
RUN git clone --branch release/2.35/master --depth 1 https://sourceware.org/git/glibc.git
2222

2323
# Only for loong64, add kernel and glibc patch
2424
RUN git clone https://github.com/loongson/golang-infra.git /git/loong64-patches \
2525
&& git config --global user.name "golang" && git config --global user.email "golang@localhost" \
26-
&& cd /git/loong64-patches && git checkout linux-v5.17 && cd /git/linux && git am /git/loong64-patches/*.patch \
2726
&& cd /git/loong64-patches && git checkout glibc-v2.35 && cd /git/glibc && git am /git/loong64-patches/*.patch \
2827
&& curl -fsSL https://git.savannah.gnu.org/cgit/config.git/plain/config.sub -o /git/glibc/scripts/config.sub
2928

unix/linux/types.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1217,6 +1217,8 @@ const (
12171217
PERF_BR_SYSRET = C.PERF_BR_SYSRET
12181218
PERF_BR_COND_CALL = C.PERF_BR_COND_CALL
12191219
PERF_BR_COND_RET = C.PERF_BR_COND_RET
1220+
PERF_BR_ERET = C.PERF_BR_ERET
1221+
PERF_BR_IRQ = C.PERF_BR_IRQ
12201222
PERF_BR_MAX = C.PERF_BR_MAX
12211223
PERF_SAMPLE_REGS_ABI_NONE = C.PERF_SAMPLE_REGS_ABI_NONE
12221224
PERF_SAMPLE_REGS_ABI_32 = C.PERF_SAMPLE_REGS_ABI_32
@@ -3628,6 +3630,10 @@ const (
36283630
ETHTOOL_A_RINGS_RX_MINI = C.ETHTOOL_A_RINGS_RX_MINI
36293631
ETHTOOL_A_RINGS_RX_JUMBO = C.ETHTOOL_A_RINGS_RX_JUMBO
36303632
ETHTOOL_A_RINGS_TX = C.ETHTOOL_A_RINGS_TX
3633+
ETHTOOL_A_RINGS_RX_BUF_LEN = C.ETHTOOL_A_RINGS_RX_BUF_LEN
3634+
ETHTOOL_A_RINGS_TCP_DATA_SPLIT = C.ETHTOOL_A_RINGS_TCP_DATA_SPLIT
3635+
ETHTOOL_A_RINGS_CQE_SIZE = C.ETHTOOL_A_RINGS_CQE_SIZE
3636+
ETHTOOL_A_RINGS_TX_PUSH = C.ETHTOOL_A_RINGS_TX_PUSH
36313637
ETHTOOL_A_RINGS_MAX = C.ETHTOOL_A_RINGS_MAX
36323638
ETHTOOL_A_CHANNELS_UNSPEC = C.ETHTOOL_A_CHANNELS_UNSPEC
36333639
ETHTOOL_A_CHANNELS_HEADER = C.ETHTOOL_A_CHANNELS_HEADER

unix/zerrors_linux.go

Lines changed: 31 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

unix/zerrors_linux_386.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

unix/zerrors_linux_amd64.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

unix/zerrors_linux_arm.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

unix/zerrors_linux_arm64.go

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

unix/zerrors_linux_loong64.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

unix/zerrors_linux_mips.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

unix/zerrors_linux_mips64.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

unix/zerrors_linux_mips64le.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

unix/zerrors_linux_mipsle.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

unix/zerrors_linux_ppc.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

unix/zerrors_linux_ppc64.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)