diff --git a/system/test/headless/dump.h b/system/test/headless/dump.h
new file mode 100644
index 0000000000000000000000000000000000000000..045c680a41442307928a9af19bedc769c9ec4073
--- /dev/null
+++ b/system/test/headless/dump.h
@@ -0,0 +1,23 @@
+
+
+#pragma once
+
+#include <cstdint>
+
+#include "test/headless/log.h"
+
+namespace bluetooth {
+namespace test {
+namespace headless {
+
+template <typename T>
+void dump(const T* data, std::string comment = std::string("dump")) {
+  const uint8_t* p = reinterpret_cast<const uint8_t*>(data);
+  for (size_t i = 0; i < sizeof(T); i++, p++) {
+    LOG_CONSOLE("  %s  %p:0x%02x", comment.c_str(), p, *p);
+  }
+}
+
+}  // namespace headless
+}  // namespace test
+}  // namespace bluetooth