summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2011-04-04 18:18:57 +0000
committerGreg Clayton <gclayton@apple.com>2011-04-04 18:18:57 +0000
commit9b1e1cdf231e25e50ba565bee77566949dd9a676 (patch)
treec1103c123f8b738cb29d8928c93db1d2da197dea /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h
parent13ce236c4cbd9b1d2883ad78b2b8658f7638e08d (diff)
downloadbcm5719-llvm-9b1e1cdf231e25e50ba565bee77566949dd9a676.tar.gz
bcm5719-llvm-9b1e1cdf231e25e50ba565bee77566949dd9a676.zip
Added a speed test to the GDBRemoteCommunicationClient and
GDBRemoteCommunicationServer classes. This involved adding a new packet named "qSpeedTest" which can test the speed of a packet send/response pairs using a wide variety of send/recv packet sizes. Added a few new connection classes: one for shared memory, and one for using mach messages (Apple only). The mach message stuff is experimental and not working yet, but added so I don't lose the code. The shared memory stuff uses pretty standard calls to setup shared memory. llvm-svn: 128837
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h
index d28c8275bd4..ae1674a4d1f 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h
@@ -190,7 +190,7 @@ public:
ResetDiscoverableSettings();
bool
- GetHostInfo ();
+ GetHostInfo (bool force = false);
bool
GetOSVersion (uint32_t &major,
@@ -246,6 +246,17 @@ public:
return old_packet_timeout;
}
+ void
+ TestPacketSpeed (const uint32_t num_packets);
+
+ // This packet is for testing the speed of the interface only. Both
+ // the client and server need to support it, but this allows us to
+ // measure the packet speed without any other work being done on the
+ // other end and avoids any of that work affecting the packet send
+ // and response times.
+ bool
+ SendSpeedTestPacket (uint32_t send_size,
+ uint32_t recv_size);
protected:
//------------------------------------------------------------------
OpenPOWER on IntegriCloud