Browse Source
Relocate stack unwind backends from `arch/` to perf's `backends/` folder, just like logging/shell/.. Signed-off-by: Yong Cong Sin <ycsin@meta.com> Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>pull/77288/head
10 changed files with 58 additions and 8 deletions
@ -0,0 +1,15 @@
@@ -0,0 +1,15 @@
|
||||
# Copyright (c) 2024 Meta Platforms |
||||
# |
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
|
||||
zephyr_sources_ifdef(CONFIG_PROFILING_PERF_BACKEND_RISCV |
||||
perf_riscv.c |
||||
) |
||||
|
||||
zephyr_sources_ifdef(CONFIG_PROFILING_PERF_BACKEND_X86 |
||||
perf_x86.c |
||||
) |
||||
|
||||
zephyr_sources_ifdef(CONFIG_PROFILING_PERF_BACKEND_X86_64 |
||||
perf_x86_64.c |
||||
) |
@ -0,0 +1,33 @@
@@ -0,0 +1,33 @@
|
||||
# Copyright (c) 2024 Meta Platforms |
||||
# |
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
|
||||
config PROFILING_PERF_HAS_BACKEND |
||||
bool |
||||
help |
||||
Selected when there's an implementation for |
||||
`arch_perf_current_stack_trace()` |
||||
|
||||
config PROFILING_PERF_BACKEND_RISCV |
||||
bool |
||||
default y |
||||
depends on RISCV |
||||
depends on THREAD_STACK_INFO |
||||
depends on FRAME_POINTER |
||||
select PROFILING_PERF_HAS_BACKEND |
||||
|
||||
config PROFILING_PERF_BACKEND_X86 |
||||
bool |
||||
default y |
||||
depends on X86 && !X86_64 |
||||
depends on THREAD_STACK_INFO |
||||
depends on FRAME_POINTER |
||||
select PROFILING_PERF_HAS_BACKEND |
||||
|
||||
config PROFILING_PERF_BACKEND_X86_64 |
||||
bool |
||||
default y |
||||
depends on X86_64 |
||||
depends on THREAD_STACK_INFO |
||||
depends on FRAME_POINTER |
||||
select PROFILING_PERF_HAS_BACKEND |
Loading…
Reference in new issue