RE: How to use bts recording?
"Metzger, Markus T via Gdb" <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <DM8PR11MB574932521ADFDF103F235A84DE209@DM8PR11MB5749.namprd11.prod.outlook.com> |
Hello Simon, >> Are you maybe using virtualization? > >Rechecked with the server team: yes, the old RHEL kernel runs on Redhat >Virtualization Manager; the newer one on VMware vSphere. Here's the problem. AFAIK neither BTS nor PT are virtualized. This is simply missing enabling in hypervisors. They do properly indicate this by omitting the respective cpuid enumeration. This results in an EOPNOTSUPP when GDB tries to enable it, which is printed by GDB. From that perspective, the error message was all correct. What's missing is why it is not supported. All that GDB knows is that the OS told it that this is not supported. I'm afraid that's a fairly common problem, these days, but I don't see how GDB could check that it is running in a guest OS and that the hypervisor did not virtualize PT or BTS. GDB could grep for the respective flags in /proc/cpuinfo but it would really only confirm what the OS already told it: it is not supported. Regards, Markus. Intel Deutschland GmbH Registered Address: Am Campeon 10, 85579 Neubiberg, Germany Tel: +49 89 99 8853-0, www.intel.de <http://www.intel.de> Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva Chairperson of the Supervisory Board: Nicole Lau Registered Office: Munich Commercial Register: Amtsgericht Muenchen HRB 186928