This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] btrace, linux: use data_size and data_offset
- From: sergiodj+buildbot at redhat dot com
- To: gdb-testers at sourceware dot org
- Date: Thu, 02 Jul 2015 08:03:05 -0400
- Subject: [binutils-gdb] btrace, linux: use data_size and data_offset
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT 010a18a1b12ec6d5219b7e602aa6abe12344dd1a ***
Author: Markus Metzger <markus.t.metzger@intel.com>
Branch: master
Commit: 010a18a1b12ec6d5219b7e602aa6abe12344dd1a
btrace, linux: use data_size and data_offset
In struct perf_event_mmap_page there are new fields data_size and data_offset
that give the location of the perf_event data buffer relative to the mmap
page. Use them if they are present.
gdb/
* nat/linux-btrace.c (linux_enable_bts): Check for
PERF_ATTR_SIZE_VER5.
Check for data_offset and data_size fields. Use them.