old-cross-binutils/gdb/common
Markus Metzger 969c39fbcd btrace, gdbserver: read branch trace incrementally
Read branch trace data incrementally and extend the current trace rather than
discarding it and reading the entire trace buffer each time.

If the branch trace buffer overflowed, we can't extend the current trace so we
discard it and start anew by reading the entire branch trace buffer.

2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>

	* common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
	Support delta reads.
	(linux_disable_btrace): Change return type.
	* common/linux-btrace.h (linux_read_btrace): Change parameters
	and return type to allow error reporting.  Update users.
	(linux_disable_btrace): Change return type.  Update users.
	* common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
	New.
	(btrace_error): New.
	(btrace_block) <begin>: Comment on BEGIN == 0.
	* btrace.c (btrace_compute_ftrace): Start from the end of
	the current trace.
	(btrace_stitch_trace, btrace_clear_history): New.
	(btrace_fetch): Read delta trace, return if replaying.
	(btrace_clear): Move clear history code to btrace_clear_history.
	(parse_xml_btrace): Throw an error if parsing failed.
	* target.h (struct target_ops) <to_read_btrace>: Change parameters
	and return type to allow error reporting.
	(target_read_btrace): Change parameters and return type to allow
	error reporting.
	* target.c (target_read_btrace): Update.
	* remote.c (remote_read_btrace): Support delta reads.  Pass
	errors on.
	* NEWS: Announce it.

gdbserver/
	* target.h (target_ops) <read_btrace>: Change parameters and
	return type to allow error reporting.
	* server.c (handle_qxfer_btrace): Support delta reads.  Pass
	trace reading errors on.
	* linux-low.c (linux_low_read_btrace): Pass trace reading
	errors on.
	(linux_low_disable_btrace): New.
2014-01-16 13:11:42 +01:00
..
agent.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
agent.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
ax.def Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
break-common.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
btrace-common.h btrace, gdbserver: read branch trace incrementally 2014-01-16 13:11:42 +01:00
buffer.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
buffer.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
common-utils.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
common-utils.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
common.m4 Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
create-version.sh Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
filestuff.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
filestuff.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
format.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
format.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
gdb_assert.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
gdb_locale.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
gdb_signals.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
gdb_thread_db.h
gdb_vecs.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
gdb_vecs.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
gdb_wait.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
glibc_thread_db.h
host-defs.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
i386-cpuid.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
i386-gcc-cpuid.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
i386-xstate.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
linux-btrace.c btrace, gdbserver: read branch trace incrementally 2014-01-16 13:11:42 +01:00
linux-btrace.h btrace, gdbserver: read branch trace incrementally 2014-01-16 13:11:42 +01:00
linux-osdata.c Change 'len' of linux_common_xfer_osdata to ULONGEST. 2014-01-14 22:20:51 +08:00
linux-osdata.h Change 'len' of linux_common_xfer_osdata to ULONGEST. 2014-01-14 22:20:51 +08:00
linux-procfs.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
linux-procfs.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
linux-ptrace.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
linux-ptrace.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
mips-linux-watch.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
mips-linux-watch.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
ptid.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
ptid.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
queue.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
signals.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
vec.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
vec.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
version.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
xml-utils.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
xml-utils.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00