commit | f3ac84d6ff37f89662b13fe288c2b06768109a0c | [log] [tgz] |
---|---|---|
author | Andrew Walbran <qwandor@google.com> | Fri Jul 26 16:10:02 2019 +0100 |
committer | Andrew Walbran <qwandor@google.com> | Wed Jul 31 12:22:06 2019 +0000 |
tree | 49d4307f1f2c69fc237d175746bc9fb9d58eae6a | |
parent | b4802bc456ec89043466db83e8df9a46d3226fc6 [diff] [blame] |
Keep logs in a circular buffer so they can be extracted from a RAM dump. Bug: 115484857, 132429213 Change-Id: I7ae3fd6c24ca8b42f581d9d4417fc6c49b23b43d
diff --git a/inc/hf/dlog.h b/inc/hf/dlog.h index f36c428..f8c0080 100644 --- a/inc/hf/dlog.h +++ b/inc/hf/dlog.h
@@ -21,6 +21,11 @@ #include "hf/spci.h" +#define DLOG_BUFFER_SIZE 8192 + +extern size_t dlog_buffer_offset; +extern char dlog_buffer[]; + #if DEBUG void dlog_enable_lock(void); void dlog(const char *fmt, ...);