[automerger skipped] Merge sc-qpr1-dev-plus-aosp-without-vendor@7810918 am: c1726eca5c -s ours am: 44fb362233 -s ours am: cccc4b784a -s ours
am skip reason: Merged-In I517dbf27749ee68f7c2efc37d5c5d14a40ce6e95 with SHA-1 85a86e9727 is already in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/external/nos/host/generic/+/16278423
Change-Id: I1ee5a286df70f01c3364ffa2861cc7799ffdf444
diff --git a/nugget/include/app_nugget.h b/nugget/include/app_nugget.h
index 1ef9f31..c278558 100644
--- a/nugget/include/app_nugget.h
+++ b/nugget/include/app_nugget.h
@@ -414,6 +414,28 @@
* @errors APP_ERROR_BOGUS_ARGS
*/
+#define GSC_DEBUG_DUMP_VERSION 0
+struct gsc_debug_dump_msg {
+ uint8_t timestamp[6]; // Bottom 48 bits of system time; enough for 8 years @ 1 us
+ uint8_t channel; // log channel (task_id or system call)
+ uint8_t version; // gsc_debug_dump_msg struct version
+ uint32_t error_code; // error code
+ uint32_t reserved; // reserved for other useful log
+};
+
+#define DEBUG_MESSAGE_MAX_COUNT 64
+#define DEBUG_MESSAGE_BUFFER_SIZE (DEBUG_MESSAGE_MAX_COUNT * sizeof(struct gsc_debug_dump_msg))
+
+#define NUGGET_PARAM_DEBUG_DUMP 0x0016
+/*
+ * Get GSC debug message from 1KB ring buffer
+ *
+ * @param args <none>
+ * @param arg_len 0
+ * @param reply recent debug buffer output
+ * @param reply_len 1KB
+ */
+
/****************************************************************************/
/* Test related commands */