Merge tag 'for-4.15-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave...
[sfrench/cifs-2.6.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 }