3
0
mirror of https://github.com/Qortal/Brooklyn.git synced 2025-02-21 06:35:53 +00:00
Brooklyn/tools/perf/arch/arm64/util/unwind-libunwind.c

18 lines
345 B
C
Raw Normal View History

2022-04-02 18:24:21 +05:00
// SPDX-License-Identifier: GPL-2.0
#include <errno.h>
#ifndef REMOTE_UNWIND_LIBUNWIND
#include <libunwind.h>
#include "perf_regs.h"
#include "../../../util/unwind.h"
#endif
#include "../../../util/debug.h"
int LIBUNWIND__ARCH_REG_ID(int regnum)
{
2022-09-09 14:21:57 +05:00
if (regnum < 0 || regnum >= PERF_REG_ARM64_EXTENDED_MAX)
2022-04-02 18:24:21 +05:00
return -EINVAL;
2022-09-09 14:21:57 +05:00
return regnum;
2022-04-02 18:24:21 +05:00
}