Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tools/criticalstat: Update error message with kernel version-specific… #5246

Merged
merged 1 commit into from
Mar 21, 2025

Conversation

ismhong
Copy link
Contributor

@ismhong ismhong commented Mar 21, 2025

… config requirements

The kernel configurations required for preempt/irq tracepoints changed in Linux 4.19 due to commit c3bc8fd637a9 ("tracing: Centralize preemptirq tracepoints and unify their usage"). This patch updates the error messages and documentation to clearly specify which kernel configurations should be enabled based on kernel version:

  • For kernel 4.19 and later: CONFIG_PREEMPTIRQ_TRACEPOINTS, CONFIG_TRACE_IRQFLAGS, CONFIG_TRACE_PREEMPT_TOGGLE

  • For kernel 4.15 to 4.18: CONFIG_PREEMPTIRQ_EVENTS, CONFIG_PROVE_LOCKING

Common requirements for all versions:

  • CONFIG_DEBUG_PREEMPT
  • CONFIG_PREEMPT_TRACER

Additionally, CONFIG_LOCKDEP should be disabled on older kernels.

These changes make it easier for users to identify and enable the correct configuration options for their specific kernel version.

Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c3bc8fd637a9

… config requirements

The kernel configurations required for preempt/irq tracepoints changed in Linux 4.19
due to commit c3bc8fd637a9 ("tracing: Centralize preemptirq tracepoints and unify
their usage"). This patch updates the error messages and documentation to clearly
specify which kernel configurations should be enabled based on kernel version:

- For kernel 4.19 and later:
  CONFIG_PREEMPTIRQ_TRACEPOINTS, CONFIG_TRACE_IRQFLAGS, CONFIG_TRACE_PREEMPT_TOGGLE

- For kernel 4.15 to 4.18:
  CONFIG_PREEMPTIRQ_EVENTS, CONFIG_PROVE_LOCKING

Common requirements for all versions:
- CONFIG_DEBUG_PREEMPT
- CONFIG_PREEMPT_TRACER

Additionally, CONFIG_LOCKDEP should be disabled on older kernels.

These changes make it easier for users to identify and enable the correct
configuration options for their specific kernel version.

Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c3bc8fd637a9

Signed-off-by: Ism Hong <[email protected]>
@yonghong-song yonghong-song merged commit 84551e7 into iovisor:master Mar 21, 2025
1 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants