From 010a18a1b12ec6d5219b7e602aa6abe12344dd1a Mon Sep 17 00:00:00 2001 From: Markus Metzger Date: Mon, 17 Nov 2014 11:18:05 +0100 Subject: 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. --- gdb/ChangeLog | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gdb/ChangeLog') diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4c96e8a..a4cce4d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,11 @@ 2015-07-02 Markus Metzger + * nat/linux-btrace.c (linux_enable_bts): Check for + PERF_ATTR_SIZE_VER5. + Check for data_offset and data_size fields. Use them. + +2015-07-02 Markus Metzger + * NEWS: Announce new commands "record btrace pt" and "record pt". Announce new options "set|show record btrace pt buffer-size". * btrace.c: Include "rsp-low.h". -- cgit v1.1