Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / tools / perf / arch / arm64 / util / unwind-libunwind.c
blob871af599229805dc03ac1780d8b87afd0eea6f08
1 // SPDX-License-Identifier: GPL-2.0
2 #include <errno.h>
4 #ifndef REMOTE_UNWIND_LIBUNWIND
5 #include <libunwind.h>
6 #include "perf_regs.h"
7 #include "../../../util/unwind.h"
8 #endif
9 #include "../../../util/debug.h"
11 int LIBUNWIND__ARCH_REG_ID(int regnum)
13 if (regnum < 0 || regnum >= PERF_REG_ARM64_EXTENDED_MAX)
14 return -EINVAL;
16 return regnum;