repo.or.cz
/
drm
/
drm-misc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
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
blob
871af599229805dc03ac1780d8b87afd0eea6f08
1
// SPDX-License-Identifier: GPL-2.0
2
#include <errno.h>
3
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"
10
11
int
LIBUNWIND__ARCH_REG_ID
(
int
regnum
)
12
{
13
if
(
regnum
<
0
||
regnum
>=
PERF_REG_ARM64_EXTENDED_MAX
)
14
return
-
EINVAL
;
15
16
return
regnum
;
17
}