1# Copyright (c) 2024 Meta Platforms
2#
3# SPDX-License-Identifier: Apache-2.0
4
5config PROFILING_PERF_HAS_BACKEND
6	bool
7	help
8	  Selected when there's an implementation for
9	  `arch_perf_current_stack_trace()`
10
11config PROFILING_PERF_BACKEND_RISCV
12	bool
13	default y
14	depends on RISCV
15	depends on THREAD_STACK_INFO
16	depends on FRAME_POINTER
17	select PROFILING_PERF_HAS_BACKEND
18
19config PROFILING_PERF_BACKEND_X86
20	bool
21	default y
22	depends on X86 && !X86_64
23	depends on THREAD_STACK_INFO
24	depends on FRAME_POINTER
25	select PROFILING_PERF_HAS_BACKEND
26
27config PROFILING_PERF_BACKEND_X86_64
28	bool
29	default y
30	depends on X86_64
31	depends on THREAD_STACK_INFO
32	depends on FRAME_POINTER
33	select PROFILING_PERF_HAS_BACKEND
34