Trim linux headers to LTS kernel versions for 4.x and 5.x and include new LTS versions for 6.x kernels.#2350
Merged
Merged
Conversation
c6ed978 to
54b550d
Compare
ddelnano
commented
May 12, 2026
Comment on lines
+84
to
+93
| # Remove non-header files from arch/ to reduce size. | ||
| # Only headers (.h), Makefiles, Kconfigs, and Kbuilds are needed. | ||
| find "${HEADERS_DIR}/arch" -type f \ | ||
| ! -name '*.h' \ | ||
| ! -name 'Makefile' \ | ||
| ! -name 'Kconfig*' \ | ||
| ! -name 'Kbuild*' \ | ||
| -delete | ||
| # Clean up empty directories left behind. | ||
| find "${HEADERS_DIR}/arch" -type d -empty -delete |
Member
Author
There was a problem hiding this comment.
This is the difference between the pl8 opt and pl8 orig headers. See table in Test Plan for more details.
…el header builds Signed-off-by: Dom Del Nano <ddelnano@gmail.com>
Signed-off-by: Dom Del Nano <ddelnano@gmail.com>
Signed-off-by: Dom Del Nano <ddelnano@gmail.com>
2309241 to
33da6d0
Compare
Member
Author
|
@vihangm this is ready for review when you have a chance. The vizier-release build listed above is irrelevant and the ASAN failure is related to the same two flaky tests I need to address (but unrelated). |
vihangm
approved these changes
May 15, 2026
k8sstormcenter-buildbot
pushed a commit
to k8sstormcenter/pixie
that referenced
this pull request
May 17, 2026
… new LTS versions for 6.x kernels. (pixie-io#2350) Summary: Trim linux headers to LTS kernel versions for 4.x and 5.x and include new LTS versions for 6.x kernels. Relevant Issues: pixie-io#2275, pixie-io#2344 Type of change: /kind dependency Test Plan: Deploy a vizier on the following platforms and compared pl7 headers vs the new pl8 - [x] Bottlerocket - [x] Amazon Linux - [x] k0s (6.12 kernel) - [x] Google COS - Verified that the new build process via `make prepare` creates similarly sized tar files and has roughly the same files present (some files were missing like .config, Makefile, Module.symvers, Kconfig, compile.h, but not of these are used by the PEM) <details><summary>Bottlerocket /etc/os-release</summary> ``` I20260410 02:06:57.094861 9891 system_info.cc:35] /host/etc/os-release: NAME=Bottlerocket ID=bottlerocket VERSION="1.57.0 (aws-k8s-1.33)" PRETTY_NAME="Bottlerocket OS 1.57.0 (aws-k8s-1.33)" VARIANT_ID=aws-k8s-1.33 VERSION_ID=1.57.0 BUILD_ID=beaadc52 VENDOR_NAME=Bottlerocket HOME_URL="https://github.com/bottlerocket-os/bottlerocket" SUPPORT_URL="https://github.com/bottlerocket-os/bottlerocket/discussions" BUG_REPORT_URL="https://github.com/bottlerocket-os/bottlerocket/issues" DOCUMENTATION_URL="https://bottlerocket.dev" ``` </details> <details><summary>Google COS /etc/os-release</summary> ``` I20260410 01:17:27.298167 14802 system_info.cc:35] /host/etc/os-release: NAME="Container-Optimized OS" ID=cos PRETTY_NAME="Container-Optimized OS from Google" HOME_URL="https://cloud.google.com/container-optimized-os/docs" BUG_REPORT_URL="https://cloud.google.com/container-optimized-os/docs/resources/support-policy#contact_us" GOOGLE_METRICS_PRODUCT_ID=26 KERNEL_COMMIT_ID=46c2d01887bed5038cc2b8bbd801ae2f7985e7f0 GOOGLE_CRASH_ID=Lakitu VERSION=125 VERSION_ID=125 BUILD_ID=19216.104.126 ``` </details> <details><summary>header size comparision</summary> ``` Size Comparison ┌──────────┬────────┬───────────┬─────────┬─────────┐ │ Version │ Arch │ pl8 opt │ pl8 orig │ pl7 │ ├──────────┼────────┼───────────┼─────────┼─────────┤ │ 4.18.20 │ x86_64 │ 7.6M │ 9.9M │ 7.7M │ ├──────────┼────────┼───────────┼─────────┼─────────┤ │ 4.18.20 │ arm64 │ 7.3M │ 8.1M │ 7.5M │ ├──────────┼────────┼───────────┼─────────┼─────────┤ │ 5.10.252 │ x86_64 │ 8.7M │ 12M │ N/A │ ├──────────┼────────┼───────────┼─────────┼─────────┤ │ 5.10.252 │ arm64 │ 8.4M │ 9.9M │ N/A │ ├──────────┼────────┼───────────┼─────────┼─────────┤ │ 5.14.21 │ x86_64 │ 8.9M │ 12M │ 8.8M │ ├──────────┼────────┼───────────┼─────────┼─────────┤ │ 5.14.21 │ arm64 │ 8.6M │ 11M │ 8.8M │ ├──────────┼────────┼───────────┼─────────┼─────────┤ │ 6.1.167 │ x86_64 │ 9.7M │ 13M │ N/A │ ├──────────┼────────┼───────────┼─────────┼─────────┤ │ 6.1.167 │ arm64 │ 9.4M │ 12M │ N/A │ ├──────────┼────────┼───────────┼─────────┼─────────┤ │ 6.6.132 │ x86_64 │ 11M │ 13M │ N/A │ ├──────────┼────────┼───────────┼─────────┼─────────┤ │ 6.6.132 │ arm64 │ 9.8M │ 13M │ N/A │ ├──────────┼────────┼───────────┼─────────┼─────────┤ │ 6.12.80 │ x86_64 │ 11M │ 14M │ N/A │ ├──────────┼────────┼───────────┼─────────┼─────────┤ │ 6.12.80 │ arm64 │ 11M │ 14M │ N/A │ ├──────────┼────────┼───────────┼─────────┼─────────┤ │ 6.18.21 │ x86_64 │ 12M │ 14M │ N/A │ ├──────────┼────────┼───────────┼─────────┼─────────┤ │ 6.18.21 │ arm64 │ 11M │ 16M │ N/A │ ├──────────┼────────┼───────────┼─────────┼─────────┤ │ 6.19.10 │ x86_64 │ 12M │ 14M │ N/A │ ├──────────┼────────┼───────────┼─────────┼─────────┤ │ 6.19.10 │ arm64 │ 12M │ 16M │ N/A │ └──────────┴────────┴───────────┴─────────┴─────────┘ ``` </details> Changelog Message: Update the vizier-pem's prepackaged linux headers to work with newer AMI / cloud images. This fixes an issue where some platforms which don't have linux header packages (like Google COS) wouldn't show protocol tracing data (pixie-io#2344) --------- Signed-off-by: Dom Del Nano <ddelnano@gmail.com> GitOrigin-RevId: c674687
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary: Trim linux headers to LTS kernel versions for 4.x and 5.x and include new LTS versions for 6.x kernels.
Relevant Issues: #2275, #2344
Type of change: /kind dependency
Test Plan: Deploy a vizier on the following platforms and compared pl7 headers vs the new pl8
make preparecreates similarly sized tar files and has roughly the same files present (some files were missing like .config, Makefile, Module.symvers, Kconfig, compile.h, but not of these are used by the PEM)Bottlerocket /etc/os-release
Google COS /etc/os-release
header size comparision
Changelog Message: Update the vizier-pem's prepackaged linux headers to work with newer AMI / cloud images. This fixes an issue where some platforms which don't have linux header packages (like Google COS) wouldn't show protocol tracing data (#2344)