diff options
author | Pierre Langlois <pierre.langlois@arm.com> | 2015-09-21 15:01:05 +0100 |
---|---|---|
committer | Yao Qi <yao.qi@linaro.org> | 2015-09-21 15:01:05 +0100 |
commit | 06da0f77c2a447348127e072e34bf541597154a2 (patch) | |
tree | 19514d587b97f763c4fa5aaa49660b216e8c716f /gdb/memory-map.c | |
parent | 4f51c22aca0d53526e65954b99d1ab3abfbb8bc8 (diff) | |
download | gdb-06da0f77c2a447348127e072e34bf541597154a2.zip gdb-06da0f77c2a447348127e072e34bf541597154a2.tar.gz gdb-06da0f77c2a447348127e072e34bf541597154a2.tar.bz2 |
Add a test case for fast tracepoints' locking mechanism
When installing a fast tracepoint, we create a jump pad with a
spin-lock. This way, only one thread can collect a given tracepoint at
any time. This test case checks that this lock actually works as
expected.
This test works by creating a function which overrides the in-process
agent library's gdb_collect function. On start up, GDBserver will ask
GDB with the 'qSymbol' packet about symbols present in the inferior.
GDB will reply with the gdb_agent_gdb_collect function from the test
case instead of the one from the agent.
gdb/testsuite/ChangeLog:
* gdb.trace/ftrace-lock.c: New file.
* gdb.trace/ftrace-lock.exp: New file.
Diffstat (limited to 'gdb/memory-map.c')
0 files changed, 0 insertions, 0 deletions