summaryrefslogtreecommitdiffstats
path: root/tools/perf/arch/arm64/util/unwind-libunwind.c
blob: 871af599229805dc03ac1780d8b87afd0eea6f08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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)
{
	if (regnum < 0 || regnum >= PERF_REG_ARM64_EXTENDED_MAX)
		return -EINVAL;

	return regnum;
}