diff options
author | Mark Salyzyn <salyzyn@google.com> | 2014-12-15 09:51:39 -0800 |
---|---|---|
committer | Mark Salyzyn <salyzyn@google.com> | 2015-02-26 06:37:35 -0800 |
commit | 6eef4171195f83541b3ee62cdcc4eac863c5edd9 (patch) | |
tree | 96f70ae277a1c718ac5b5b38bb628982ec0764c7 /include | |
parent | 895623e5cafc35450bc6cef5f6d4ca7195c6b08c (diff) | |
download | system_core-6eef4171195f83541b3ee62cdcc4eac863c5edd9.zip system_core-6eef4171195f83541b3ee62cdcc4eac863c5edd9.tar.gz system_core-6eef4171195f83541b3ee62cdcc4eac863c5edd9.tar.bz2 |
liblog: add pstore read
Used to pull the Android log messages after a reboot. Adding
an ANDROID_LOG_PSTORE flag to the mode parameter in calls to
android_logger_list_alloc() and android_logger_list_alloc_time().
The side effects are that android_logger_clear() and
android_logger_list_read() will react with the user space
pstore driver. Forms a companion to the pstore console logs.
Change-Id: I7bb07b87b3bf73f059a21af3f810af37c7715b6d
Diffstat (limited to 'include')
-rw-r--r-- | include/log/logger.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/log/logger.h b/include/log/logger.h index 570f02b..f030dab 100644 --- a/include/log/logger.h +++ b/include/log/logger.h @@ -159,6 +159,7 @@ int android_logger_set_prune_list(struct logger_list *logger_list, #define ANDROID_LOG_RDWR O_RDWR #define ANDROID_LOG_ACCMODE O_ACCMODE #define ANDROID_LOG_NONBLOCK O_NONBLOCK +#define ANDROID_LOG_PSTORE 0x80000000 struct logger_list *android_logger_list_alloc(int mode, unsigned int tail, |