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

arch: make EXCEPTION_STACK_TRACE depends on ARCH_HAS_STACK_TRACE #72863

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ycsin
Copy link
Collaborator

@ycsin ycsin commented May 16, 2024

Create an intermediary CONFIG_ARCH_HAS_STACK_TRACE that is enabled by architectures based on arch-specific conditions and have the CONFIG_EXCEPTION_STACK_TRACE depends on that.

Then, update all occurances of

  • CONFIG_RISCV_EXCEPTION_STACK_TRACE &
  • CONFIG_x86_EXCEPTION_STACK_TRACE

The dependencies of arm64 is a little different, it depends on CONFIG_ARM64_ENABLE_FRAME_POINTER to imply that the stack trace is enabled, update that to CONFIG_EXCEPTION_STACK_TRACE as well.

depends on PRINTK
depends on DEBUG_INFO
depends on !OMIT_FRAME_POINTER
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

removed as this can depend on implementations in the architecture

Create an intermediary `CONFIG_ARCH_HAS_STACK_TRACE` that
is enabled by architectures based on respective conditions
and have the `CONFIG_EXCEPTION_STACK_TRACE` depends on that.

Then, update all occurances of
- `CONFIG_RISCV_EXCEPTION_STACK_TRACE` &
- `CONFIG_x86_EXCEPTION_STACK_TRACE`

The dependencies of `arm64` is a little different, it
depends on `CONFIG_ARM64_ENABLE_FRAME_POINTER` to imply
that the stack trace is enabled, update that to
`CONFIG_EXCEPTION_STACK_TRACE` as well.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
@dcpleung
Copy link
Member

Hm... usually CONFIG_ARCH_HAS_* are enabled by select, so that they cannot be "disabled" by later kconfig entries.

@ycsin ycsin marked this pull request as draft May 17, 2024 02:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Architectures area: ARM64 ARM (64-bit) Architecture area: Debugging area: Kconfig area: Kernel area: RISCV RISCV Architecture (32-bit & 64-bit) area: X86 x86 Architecture (32-bit) platform: X86 x86 and x86-64
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants