hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/tools/objtool/orc_dump.c
....@@ -1,22 +1,12 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright (C) 2017 Josh Poimboeuf <jpoimboe@redhat.com>
3
- *
4
- * This program is free software; you can redistribute it and/or
5
- * modify it under the terms of the GNU General Public License
6
- * as published by the Free Software Foundation; either version 2
7
- * of the License, or (at your option) any later version.
8
- *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU General Public License for more details.
13
- *
14
- * You should have received a copy of the GNU General Public License
15
- * along with this program; if not, see <http://www.gnu.org/licenses/>.
164 */
175
186 #include <unistd.h>
19
-#include "orc.h"
7
+#include <linux/objtool.h>
8
+#include <asm/orc_types.h>
9
+#include "objtool.h"
2010 #include "warn.h"
2111
2212 static const char *reg_name(unsigned int reg)
....@@ -48,12 +38,12 @@
4838 static const char *orc_type_name(unsigned int type)
4939 {
5040 switch (type) {
51
- case ORC_TYPE_CALL:
41
+ case UNWIND_HINT_TYPE_CALL:
5242 return "call";
53
- case ORC_TYPE_REGS:
43
+ case UNWIND_HINT_TYPE_REGS:
5444 return "regs";
55
- case ORC_TYPE_REGS_IRET:
56
- return "iret";
45
+ case UNWIND_HINT_TYPE_REGS_PARTIAL:
46
+ return "regs (partial)";
5747 default:
5848 return "?";
5949 }