]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blob - tools/perf/arch/s390/util/dwarf-regs.c
Merge tag 'for-linus-4.15-rc3-tag' of git://git.kernel.org/pub/scm/linux/kernel/git...
[mirror_ubuntu-hirsute-kernel.git] / tools / perf / arch / s390 / util / dwarf-regs.c
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * Mapping of DWARF debug register numbers into register names.
4 *
5 * Copyright IBM Corp. 2010
6 * Author(s): Heiko Carstens <heiko.carstens@de.ibm.com>,
7 *
8 */
9
10 #include <stddef.h>
11 #include <dwarf-regs.h>
12 #include <linux/kernel.h>
13 #include "dwarf-regs-table.h"
14
15 const char *get_arch_regstr(unsigned int n)
16 {
17 return (n >= ARRAY_SIZE(s390_dwarf_regs)) ? NULL : s390_dwarf_regs[n];
18 }