Skip to contentSkip to conversation

Introduce sg_read_buffer

PATCH New Randall Huang 1 participant 1 message Oct 27, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Introduce sg_read_buffer

Support UFS error history dumping

---
 tools/sg_write_buffer/Android.bp       |  19 ++
 tools/sg_write_buffer/sg_read_buffer.c | 334 +++++++++++++++++++++++++
 2 files changed, 353 insertions(+)
 create mode 100644 tools/sg_write_buffer/sg_read_buffer.c
tools/sg_write_buffer/Android.bp +19 -0
index 5222a59..f488aea 100644
@@ -25,3 +25,22 @@ cc_binary {
         "sg_pt_linux_nvme.c",
     ],
 }
+
+cc_binary {
+    name: "sg_read_buffer",
+    defaults: [ "sg3-utils-defaults" ],
+    srcs: [
+        "sg_read_buffer.c",
+        "sg_cmds_basic.c",
+        "sg_cmds_basic2.c",
+        "sg_cmds_extra.c",
+        "sg_cmds_mmc.c",
+        "sg_io_linux.c",
+        "sg_lib.c",
+        "sg_lib_data.c",
+        "sg_pt_common.c",
+        "sg_pt_linux.c",
+        "sg_pt_linux_nvme.c",
+    ],
+    system_ext_specific: true,
+}
tools/sg_write_buffer/sg_read_buffer.c new file +334 -0

334 lines not on this page · raw message

Signature · 1 line
2.38.0.135.g90850a2211-goog