From d33501a51f46193387ff2d101752a9a878202f82 Mon Sep 17 00:00:00 2001 From: Markus Metzger Date: Thu, 28 Nov 2013 16:39:12 +0100 Subject: record-btrace: add bts buffer size configuration option Allow the size of the branch trace ring buffer to be defined by the user. The specified buffer size will be used when BTS tracing is enabled for new threads. The obtained buffer size may differ from the requested size. The actual buffer size for the current thread is shown in the "info record" command. Bigger buffers mean longer traces, but also longer processing time. 2015-02-09 Markus Metzger * btrace.c (parse_xml_btrace_conf_bts): Add size. (btrace_conf_bts_attributes): New. (btrace_conf_children): Add attributes. * common/btrace-common.h (btrace_config_bts): New. (btrace_config): New. (btrace_config): Update comment. * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts): Use config. * features/btrace-conf.dtd: Increment version. Add size attribute to bts element. * record-btrace.c (set_record_btrace_bts_cmdlist, show_record_btrace_bts_cmdlist): New. (record_btrace_adjust_size, record_btrace_print_bts_conf, record_btrace_print_conf, cmd_set_record_btrace_bts, cmd_show_record_btrace_bts): New. (record_btrace_info): Call record_btrace_print_conf. (_initialize_record_btrace): Add commands. * remote.c: Add PACKET_Qbtrace_conf_bts_size enum. (remote_protocol_features): Add Qbtrace-conf:bts:size packet. (btrace_sync_conf): Synchronize bts size. (_initialize_remote): Add Qbtrace-conf:bts:size packet. * NEWS: Announce new commands and new packets. doc/ * gdb.texinfo (Branch Trace Configuration Format): Add size. (Process Record and Replay): Describe new set|show commands. (General Query Packets): Describe Qbtrace-conf:bts:size packet. testsuite/ * gdb.btrace/buffer-size: New. gdbserver/ * linux-low.c (linux_low_btrace_conf): Print size. * server.c (handle_btrace_conf_general_set): New. (hanle_general_set): Call handle_btrace_conf_general_set. (handle_query): Report Qbtrace-conf:bts:size as supported. --- gdb/ChangeLog | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'gdb/ChangeLog') diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 57ad061..f3347e9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,30 @@ 2015-02-09 Markus Metzger + * btrace.c (parse_xml_btrace_conf_bts): Add size. + (btrace_conf_bts_attributes): New. + (btrace_conf_children): Add attributes. + * common/btrace-common.h (btrace_config_bts): New. + (btrace_config): New. + (btrace_config): Update comment. + * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts): + Use config. + * features/btrace-conf.dtd: Increment version. Add size + attribute to bts element. + * record-btrace.c (set_record_btrace_bts_cmdlist, + show_record_btrace_bts_cmdlist): New. + (record_btrace_adjust_size, record_btrace_print_bts_conf, + record_btrace_print_conf, cmd_set_record_btrace_bts, + cmd_show_record_btrace_bts): New. + (record_btrace_info): Call record_btrace_print_conf. + (_initialize_record_btrace): Add commands. + * remote.c: Add PACKET_Qbtrace_conf_bts_size enum. + (remote_protocol_features): Add Qbtrace-conf:bts:size packet. + (btrace_sync_conf): Synchronize bts size. + (_initialize_remote): Add Qbtrace-conf:bts:size packet. + * NEWS: Announce new commands and new packets. + +2015-02-09 Markus Metzger + * Makefile.in (XMLFILES): Add btrace-conf.dtd. * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters. (x86_linux_btrace_conf): New. -- cgit v1.1