* Could not use "record btrace" even if I have Intel PT hardware feature
@ 2016-09-06 14:37 慕冬亮
[not found] ` <A78C989F6D9628469189715575E55B233FFB6E07@IRSMSX104.ger.corp.intel.com>
0 siblings, 1 reply; 2+ messages in thread
From: 慕冬亮 @ 2016-09-06 14:37 UTC (permalink / raw)
To: gdb
Dear all,
I encounter one problem when I try to leverage Intel PT to do branch tracing.
My cpu has Intel PT feature via "grep intel_pt /proc/cpuinfo".
$ grep intel_pt /proc/cpuinfo
flags : ...intel_pt...
$ gdb simple
.......
(gdb) b main
Breakpoint 1 at 0x40050c
(gdb) r
Starting program: .../Work/Projects/simple
Breakpoint 1, 0x000000000040050c in main ()
(gdb) record btrace
Target does not support branch tracing.
(gdb) record btrace pt
GDB does not support Intel Processor Trace.
--
My best regards to you.
No System Is Safe!
Dongliang Mu
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Could not use "record btrace" even if I have Intel PT hardware feature
[not found] ` <A78C989F6D9628469189715575E55B233FFB6E07@IRSMSX104.ger.corp.intel.com>
@ 2016-09-06 16:48 ` 慕冬亮
0 siblings, 0 replies; 2+ messages in thread
From: 慕冬亮 @ 2016-09-06 16:48 UTC (permalink / raw)
To: Metzger, Markus T; +Cc: gdb
--
My best regards to you.
No System Is Safe!
Dongliang Mu
2016-09-06 10:59 GMT-04:00 Metzger, Markus T <markus.t.metzger@intel.com>:
>> -----Original Message-----
>> From: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] On
>> Behalf Of ???
>> Sent: Tuesday, September 6, 2016 4:37 PM
>> To: gdb@sourceware.org
>> Subject: Could not use "record btrace" even if I have Intel PT hardware feature
>
> Hello Dongliang,
>
>> I encounter one problem when I try to leverage Intel PT to do branch tracing.
>>
>> My cpu has Intel PT feature via "grep intel_pt /proc/cpuinfo".
>>
>> $ grep intel_pt /proc/cpuinfo
>>
>> flags : ...intel_pt...
>>
>>
>> $ gdb simple
>> .......
>> (gdb) b main
>> Breakpoint 1 at 0x40050c
>> (gdb) r
>> Starting program: .../Work/Projects/simple
>>
>> Breakpoint 1, 0x000000000040050c in main ()
>> (gdb) record btrace
>> Target does not support branch tracing.
>> (gdb) record btrace pt
>> GDB does not support Intel Processor Trace.
>
> You need a kernel that supports it (4.1+) and you need a GDB that supports it.
I am using Debian Testing with linux kernel 4.6.0-1 and gdb 7.11.1-2
>
> Newer Linux distributions should already provide GDB with Intel PT support. If
> your distribution doesn't or if you want to build GDB yourself, please configure
> it with "--with-intel-pt".
>
I have installed libipt-dev and libipt1 packages.
> If your Linux distribution does not provide libipt(-devel), you may need to
> build it yourself. You can get the sources from here:
> https://github.com/01org/processor-trace.
>
> You may also need to configure GDB with "--with-libipt-prefix=<path-to-libipt>"
> if you don't (want to) install libipt in a standard place.
>
> You may further need to install kernel headers - GDB needs
> /usr/include/linux/perf_event.h.
>
And I have checked the existence of /usr/include/linux/perf_event.h.
Should I reboot my Debian to make kernel module for Intel PT effective?
> Regards,
> Markus.
>
> Intel Deutschland GmbH
> Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
> Tel: +49 89 99 8853-0, www.intel.de
> Managing Directors: Christin Eisenschmid, Christian Lamprechter
> Chairperson of the Supervisory Board: Nicole Lau
> Registered Office: Munich
> Commercial Register: Amtsgericht Muenchen HRB 186928
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-09-06 16:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-06 14:37 Could not use "record btrace" even if I have Intel PT hardware feature 慕冬亮
[not found] ` <A78C989F6D9628469189715575E55B233FFB6E07@IRSMSX104.ger.corp.intel.com>
2016-09-06 16:48 ` 慕冬亮
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox