diff options
author | abhishekdugar <abhishekdugar@google.com> | 2020-04-02 20:50:59 +0530 |
---|---|---|
committer | abhishekdugar <abhishekdugar@google.com> | 2020-04-07 11:36:22 +0530 |
commit | 28a9b58284948ad9ecd97206b4660b8c19c61bf5 (patch) | |
tree | bfb0cfa958e79860abe7bcb9ec19cbcb04fb9c6f | |
parent | 5efb5a615a94e2fa81de0697e76b4db970179f78 (diff) | |
download | generic-28a9b58284948ad9ecd97206b4660b8c19c61bf5.tar.gz |
Additional app function for code-cov
Bug: 147265914
Test: Manual
Signed-off-by: abhishekdugar@google.com
Change-Id: Icd05d28e1b7f39eaa2f65354d9a8ea8b6842c36f
-rw-r--r-- | nugget/include/app_nugget.h | 13 | ||||
-rw-r--r-- | nugget/include/application.h | 16 |
2 files changed, 21 insertions, 8 deletions
diff --git a/nugget/include/app_nugget.h b/nugget/include/app_nugget.h index 4336734..0c88e61 100644 --- a/nugget/include/app_nugget.h +++ b/nugget/include/app_nugget.h @@ -386,6 +386,19 @@ struct nugget_app_low_power_stats { /* UNIMPLEMENTED */ /****************************************************************************/ +/* Commands for code coverage and quality assurance */ + +#define NUGGET_GET_COVERAGE_COUNTERS 0x0300 +/** + * Returns the counters back to the master + * + * @param args module counter + * @param arg_len 1 + * @param reply buffer containing coverage data in utf-8 format + * @param reply_len depends on the counters in the file + */ + +/****************************************************************************/ /* These are bringup / debug functions only. */ #define NUGGET_PARAM_READ32 0xF000 diff --git a/nugget/include/application.h b/nugget/include/application.h index c7b6da8..2167925 100644 --- a/nugget/include/application.h +++ b/nugget/include/application.h @@ -305,14 +305,14 @@ void app_reply(struct app_transport *st, uint32_t status, uint16_t reply_len); enum app_status { /* A few values are common to all applications */ APP_SUCCESS = 0, - APP_ERROR_BOGUS_ARGS, /* caller being stupid */ - APP_ERROR_INTERNAL, /* application being stupid */ - APP_ERROR_TOO_MUCH, /* caller sent too much data */ - APP_ERROR_IO, /* problem sending or receiving data */ - APP_ERROR_RPC, /* problem during RPC communication */ - APP_ERROR_CHECKSUM, /* checksum failed, only used within protocol */ - APP_ERROR_BUSY, /* the app is already working on a commnad */ - APP_ERROR_TIMEOUT, /* the app took too long to respond */ + APP_ERROR_BOGUS_ARGS, /* caller being stupid */ + APP_ERROR_INTERNAL, /* application being stupid */ + APP_ERROR_TOO_MUCH, /* caller sent too much data */ + APP_ERROR_IO, /* problem sending or receiving data */ + APP_ERROR_RPC, /* problem during RPC communication */ + APP_ERROR_CHECKSUM, /* checksum failed, only used within protocol */ + APP_ERROR_BUSY, /* the app is already working on a commnad */ + APP_ERROR_TIMEOUT, /* the app took too long to respond */ /* more? */ APP_SPECIFIC_ERROR = 0x20, /* "should be enough for anybody" */ |