Comment # 1 on bug 1149619 from
Hmm, there's just one test in the gdb testsuite that tests this feature:
gdb.btrace/tsx.exp.

I've looked at the testresults from $(osc getbinaries openSUSE_Factory x86_64)
and found that this test is unsupported:
...
$ grep tsx.exp *.sum
gdb-x86_64-suse-linux-m32.-fno-PIE.-no-pie.sum:Running
/home/abuild/rpmbuild/BUILD/gdb-8.3/gdb/testsuite/gdb.btrace/tsx.exp ...
gdb-x86_64-suse-linux-m32.-fno-PIE.-no-pie.sum:UNSUPPORTED: gdb.btrace/tsx.exp:
target does not support PT
gdb-x86_64-suse-linux-m32.sum:Running
/home/abuild/rpmbuild/BUILD/gdb-8.3/gdb/testsuite/gdb.btrace/tsx.exp ...
gdb-x86_64-suse-linux-m32.sum:UNSUPPORTED: gdb.btrace/tsx.exp: target does not
support PT
gdb-x86_64-suse-linux-m64.-fno-PIE.-no-pie.sum:Running
/home/abuild/rpmbuild/BUILD/gdb-8.3/gdb/testsuite/gdb.btrace/tsx.exp ...
gdb-x86_64-suse-linux-m64.-fno-PIE.-no-pie.sum:UNSUPPORTED: gdb.btrace/tsx.exp:
target does not support PT
gdb-x86_64-suse-linux-m64.sum:Running
/home/abuild/rpmbuild/BUILD/gdb-8.3/gdb/testsuite/gdb.btrace/tsx.exp ...
gdb-x86_64-suse-linux-m64.sum:UNSUPPORTED: gdb.btrace/tsx.exp: target does not
support PT
...

It's unsupported because:
...
(gdb) record btrace pt^M
Could not enable branch tracing for process 17815: Failed to open
/sys/bus/event_source/devices/intel_pt/type: No such file or directory.^M
...

I do have this device available on my laptop:
...
$ ls -al /sys/bus/event_source/devices/intel_pt/type
-r--r--r-- 1 root root 4096 24 sep 16:00
/sys/bus/event_source/devices/intel_pt/type
...

I'll try to do an osc local build for openSUSE_Leap_15.1 x86_64 and see it the
test will still show as unsupported.


You are receiving this mail because: