Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
e8ec74e
add working documentation
yonch Aug 10, 2025
4d5ab97
add kernfs file pointer writeup
yonch Aug 13, 2025
18c2027
add script to build the kernel, initrd and test, and upload to s3
yonch Aug 13, 2025
c40f255
split the initrd compilation to a separate file, increase caching
yonch Aug 14, 2025
514b3ae
move kernel module building to initrd script
yonch Aug 14, 2025
93d276a
add github actions to run kernel test
yonch Aug 14, 2025
efded5a
install awscli to be able to fetch kernel image from s3
yonch Aug 14, 2025
c18361c
switch to action version that debug prints cloud init
yonch Aug 14, 2025
dbcf829
install AWS CLI via curl (recommended by AWS docs)
yonch Aug 14, 2025
3db64c2
extract the initrd and bzImage filenames from the metadata json
yonch Aug 14, 2025
2b69d07
reorder pre-requisites in github action
yonch Aug 14, 2025
1ddecbd
reduce logging verboseness for aws cli installation
yonch Aug 14, 2025
6336755
fail the self-hosted runner start if the ec2-github-runner action fails
yonch Aug 14, 2025
65a246d
add action trigger script
yonch Aug 14, 2025
e2aca16
add workflow to extract config and initrd information from ubuntu AMI
yonch Aug 14, 2025
24ff93d
remove the user data debugging info in action
yonch Aug 14, 2025
1ccbc9c
fix self hosted runner setup
yonch Aug 14, 2025
148b1cc
add more checks for resctrl support to debug why the test is being sk…
yonch Aug 15, 2025
aba737d
add more sysfs debugging
yonch Aug 15, 2025
3380247
first try and fix /sys, then mount resctrl
yonch Aug 16, 2025
50f235e
add JSON output to triggering kernel test
yonch Aug 16, 2025
d1c3bbc
add hard reboot kernel test
yonch Aug 16, 2025
c55d8fe
reference grub entry with index
yonch Aug 16, 2025
9ee5c9e
add job logs to json output
yonch Aug 16, 2025
e6e923f
find root device and boot partition UUIDs, reference with / prefix no…
yonch Aug 16, 2025
5b27088
explicitly umount all filesystems under /sys before kexec
yonch Aug 16, 2025
49ef9f0
capture dmesg output
yonch Aug 16, 2025
a63e889
add filesystem mount print
yonch Aug 16, 2025
4c6895f
try to increase reliability of hard reboot
yonch Aug 16, 2025
1d29c38
attempt to increase reliability of github runner after kexec
yonch Aug 16, 2025
344ddb2
remove invalid attribute from systemd config
yonch Aug 16, 2025
b7158aa
disable s3 progress bar so as to not spam the console
yonch Aug 17, 2025
070ba87
try to avoid emergency mode
yonch Aug 17, 2025
5177693
reduce verbosity of kernel at boot
yonch Aug 17, 2025
48b3b52
fix issue with read-only filesystems
yonch Aug 17, 2025
00ffa7d
add early fs remounting after kexec
yonch Aug 17, 2025
ed82af7
enable dhcp in kexec kernel
yonch Aug 17, 2025
1238fb5
strip modules as part of modules_install
yonch Aug 29, 2025
60a50ed
use dracut to make initrd
yonch Aug 29, 2025
9620f56
move helper diagrams and docs to scratchpad/ directory
yonch Aug 29, 2025
77891d2
add more scratchpad docs on resctrl pmu integration
yonch Aug 29, 2025
42ad987
add diagrams
yonch Aug 29, 2025
47c9e73
save rdtgroup reference in mon_data open files
yonch Aug 16, 2025
21cdaec
refactor: split mon_event_read into setup and perform functions
yonch Aug 29, 2025
a1a1b44
refactor: separate metric read logic from decision what to measure an…
yonch Aug 29, 2025
8626927
separate setting up event reads from performing the reads
yonch Aug 29, 2025
65f09ec
add skeleton PMU
yonch Aug 29, 2025
6af368f
tooling: avoid make olddefconfig if config hasn't changed
yonch Aug 29, 2025
7183c46
fix function ordering so destroy is defined before reference
yonch Aug 29, 2025
f18cd9d
remove fd path getting that we had for demo
yonch Aug 29, 2025
d3a9421
selftests/resctrl: add safety test for resctrl PMU file access
yonch Aug 30, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
tooling: avoid make olddefconfig if config hasn't changed
  • Loading branch information
yonch committed Aug 29, 2025
commit 6af368fe59fd91d9a0754eac44d9b9a6f08616e0
16 changes: 14 additions & 2 deletions build-and-upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,14 @@ configure_kernel() {
# scripts/config --enable CONFIG_PROC_FS
# scripts/config --enable CONFIG_SYSFS

# Update config with dependencies
make olddefconfig
# Update config with dependencies (only on fresh builds)
if [[ ! -f ".config.bak" ]]; then
log "Fresh build: running olddefconfig to resolve dependencies"
cp .config .config.bak
make olddefconfig
else
log "Incremental build: skipping olddefconfig to preserve config stability"
fi
}

# Build the kernel
Expand Down Expand Up @@ -150,6 +156,12 @@ create_initrd() {
error "build-initrd.sh not found in current directory"
fi

# Check if config changed and force initrd rebuild if needed
if [[ -f ".config.bak" ]] && ! diff -q .config .config.bak >/dev/null 2>&1; then
log "Config changed since last build, forcing initrd rebuild"
export FORCE_INITRD=1
fi

# Run the initrd build script with upload flag
local initrd_output
initrd_output=$(./build-initrd.sh --upload 2>&1) || error "Failed to build and upload initrd"
Expand Down