Skip to content

sys-kernel/coreos-modules: arm64: Enable CONFIG_FUNCTION_TRACER & CONFIG_DYNAMIC_FTRACE#3685

Merged
tormath1 merged 1 commit intoflatcar:mainfrom
tidusete:fix/1974-enable-function-tracer
Feb 5, 2026
Merged

sys-kernel/coreos-modules: arm64: Enable CONFIG_FUNCTION_TRACER & CONFIG_DYNAMIC_FTRACE#3685
tormath1 merged 1 commit intoflatcar:mainfrom
tidusete:fix/1974-enable-function-tracer

Conversation

@tidusete
Copy link
Contributor

@tidusete tidusete commented Feb 3, 2026

kernel-arm64: Enable CONFIG_FUNCTION_TRACER

Currently, the function tracer is disabled on ARM64 builds, unlike x86 builds where it is standard. This prevents standard observability and security tools (like those using eBPF, ftrace, or security agents) from reading available_filter_functions and attaching probes, causing them to crash or fail to start.

This change enables CONFIG_FUNCTION_TRACER and CONFIG_DYNAMIC_FTRACE in the ARM64 kernel configuration. This provides feature parity with x86_64 builds and ensures support for the modern Linux tracing ecosystem on ARM64.

Fixes #1974

How to use

  1. Build an ARM64 image with these changes (or wait for CI to generate one).
  2. Boot the image (e.g., in QEMU on an ARM64 host or via image_to_vm.sh).
  3. Verify that the kernel configuration contains the new flags: zgrep FTRACE /proc/config.gz

Testing done

Booted the built image in QEMU (ARM64) and verified the configuration and availability of tracing functions.

core@localhost ~ $ zgrep CONFIG_FUNCTION_TRACER /proc/config.gz
CONFIG_FUNCTION_TRACER=y

core@localhost ~ $ zgrep CONFIG_DYNAMIC_FTRACE /proc/config.gz
CONFIG_DYNAMIC_FTRACE=y

core@localhost ~ $ ls -l /sys/kernel/tracing/available_filter_functions
-r--r--r-- 1 root root 0 Feb  3 15:22 /sys/kernel/tracing/available_filter_functions

CI 🟢 : http://localhost:8080/job/container/job/packages_all_arches/7368/cldsv/

@tidusete tidusete requested a review from a team as a code owner February 3, 2026 18:24
@tidusete tidusete force-pushed the fix/1974-enable-function-tracer branch 2 times, most recently from 67f659f to e820a7b Compare February 4, 2026 08:15
Copy link
Member

@jepio jepio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tidusete thank you - this makes sense as we often make changes to align the kernel configs between arches. Would you mind moving the entries to the common_defconfig though?

Copy link
Contributor

@tormath1 tormath1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, it looks good. Might I ask you to add a changelog entry as well into changelog/changes/ ?

@tidusete tidusete force-pushed the fix/1974-enable-function-tracer branch from e820a7b to b5cd78d Compare February 4, 2026 11:49
@tidusete
Copy link
Contributor Author

tidusete commented Feb 4, 2026

I think it should be good now :)

@tidusete tidusete force-pushed the fix/1974-enable-function-tracer branch 2 times, most recently from 3bddfe7 to 1a1b6e8 Compare February 5, 2026 11:11
@tidusete tidusete deployed to development February 5, 2026 11:44 — with GitHub Actions Active
…FIG_DYNAMIC_FTRACE

Signed-off-by: Jordi Cid Sierra <jordicidsierra@gmail.com>
@tidusete tidusete force-pushed the fix/1974-enable-function-tracer branch from 1a1b6e8 to f15a0fa Compare February 5, 2026 13:11
@tormath1 tormath1 added the main label Feb 5, 2026
@tormath1 tormath1 moved this to ✅ Testing / in Review in Flatcar tactical, release planning, and roadmap Feb 5, 2026
@tormath1 tormath1 merged commit 1fe6807 into flatcar:main Feb 5, 2026
4 checks passed
@github-project-automation github-project-automation bot moved this from ✅ Testing / in Review to Implemented in Flatcar tactical, release planning, and roadmap Feb 5, 2026
@tormath1
Copy link
Contributor

tormath1 commented Feb 5, 2026

Thanks a lot @tidusete for the contribution. As this is an observability feature and it's already around for amd64, I'll backport this to current Alpha, Beta and Stable.

EDIT: Backported to:

  • flatcar-4593
  • flatcar-4547
  • flatcar-4459

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

[RFE] [ARM64] Enable CONFIG_FUNCTION_TRACER for observability support

3 participants