[PATCH v2 2/6] btrace: Add printing support for cfe and evd packets.
Felix Willgerodt
felix.willgerodt@intel.com
Fri Sep 13 12:57:18 GMT 2024
---
gdb/btrace.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/gdb/btrace.c b/gdb/btrace.c
index 9dc0c5cc930..649e0ad59d7 100644
--- a/gdb/btrace.c
+++ b/gdb/btrace.c
@@ -2746,6 +2746,19 @@ pt_print_packet (const struct pt_packet *packet)
packet->payload.ptw.ip ? (" ip") : (""));
break;
#endif /* defined (LIBIPT_VERSION >= 0x200) */
+
+#if (LIBIPT_VERSION >= 0x201)
+ case ppt_cfe:
+ gdb_printf (("cfe %u: 0x%x%s"), packet->payload.cfe.type,
+ packet->payload.cfe.vector,
+ packet->payload.cfe.ip ? (" ip") : (""));
+ break;
+
+ case ppt_evd:
+ gdb_printf (("evd %u: 0x%" PRIx64 ""), packet->payload.evd.type,
+ packet->payload.evd.payload);
+ break;
+#endif /* defined (LIBIPT_VERSION >= 0x201) */
}
}
--
2.34.1
Intel Deutschland GmbH
Registered Address: Am Campeon 10, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Sean Fennelly, Jeffrey Schneiderman, Tiffany Doon Silva
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928
More information about the Gdb-patches
mailing list