]>
git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blob - tools/perf/arch/s390/util/dwarf-regs.c
1 // SPDX-License-Identifier: GPL-2.0
3 * Mapping of DWARF debug register numbers into register names.
5 * Copyright IBM Corp. 2010
6 * Author(s): Heiko Carstens <heiko.carstens@de.ibm.com>,
11 #include <dwarf-regs.h>
12 #include <linux/kernel.h>
13 #include "dwarf-regs-table.h"
15 const char *get_arch_regstr(unsigned int n
)
17 return (n
>= ARRAY_SIZE(s390_dwarf_regs
)) ? NULL
: s390_dwarf_regs
[n
];