diag: Update the logging codes of events, logs and msgs
New msg SSIDs, log and event mask codes for different subsystems are added as a new requirement for enable logging. Change-Id: I31e784307e6de388e1de0806baacf00116360c30 Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
This commit is contained in:
parent
727593cbf7
commit
70c285e0b1
1 changed files with 110 additions and 90 deletions
|
@ -145,10 +145,10 @@ the appropriate macros. */
|
|||
/* This needs to be modified manually now, when we add
|
||||
a new RANGE of SSIDs to the msg_mask_tbl */
|
||||
#define MSG_MASK_TBL_CNT 26
|
||||
#define APPS_EVENT_LAST_ID 0xC7A
|
||||
#define APPS_EVENT_LAST_ID 0xC85
|
||||
|
||||
#define MSG_SSID_0 0
|
||||
#define MSG_SSID_0_LAST 125
|
||||
#define MSG_SSID_0_LAST 129
|
||||
#define MSG_SSID_1 500
|
||||
#define MSG_SSID_1_LAST 506
|
||||
#define MSG_SSID_2 1000
|
||||
|
@ -164,7 +164,7 @@ the appropriate macros. */
|
|||
#define MSG_SSID_7 4600
|
||||
#define MSG_SSID_7_LAST 4616
|
||||
#define MSG_SSID_8 5000
|
||||
#define MSG_SSID_8_LAST 5034
|
||||
#define MSG_SSID_8_LAST 5036
|
||||
#define MSG_SSID_9 5500
|
||||
#define MSG_SSID_9_LAST 5516
|
||||
#define MSG_SSID_10 6000
|
||||
|
@ -218,7 +218,7 @@ static const uint32_t msg_bld_masks_0[] = {
|
|||
MSG_LVL_MED,
|
||||
MSG_LVL_HIGH,
|
||||
MSG_LVL_HIGH,
|
||||
MSG_LVL_LOW|MSG_MASK_5|MSG_MASK_6|MSG_MASK_7|MSG_MASK_8,
|
||||
MSG_LVL_MED | MSG_MASK_5 | MSG_MASK_6 | MSG_MASK_7 | MSG_MASK_8,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_ERROR,
|
||||
MSG_LVL_LOW,
|
||||
|
@ -342,6 +342,10 @@ static const uint32_t msg_bld_masks_0[] = {
|
|||
MSG_LVL_HIGH,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW|MSG_LVL_MED|MSG_LVL_HIGH|MSG_LVL_ERROR|MSG_LVL_FATAL,
|
||||
MSG_LVL_HIGH,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_MED,
|
||||
MSG_LVL_MED,
|
||||
MSG_LVL_HIGH
|
||||
};
|
||||
|
||||
|
@ -413,81 +417,91 @@ static const uint32_t msg_bld_masks_5[] = {
|
|||
};
|
||||
|
||||
static const uint32_t msg_bld_masks_6[] = {
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
};
|
||||
|
||||
static const uint32_t msg_bld_masks_7[] = {
|
||||
|
@ -545,7 +559,9 @@ static const uint32_t msg_bld_masks_8[] = {
|
|||
MSG_LVL_MED,
|
||||
MSG_LVL_MED,
|
||||
MSG_LVL_MED,
|
||||
MSG_LVL_HIGH,
|
||||
MSG_LVL_MED,
|
||||
MSG_LVL_MED,
|
||||
MSG_LVL_MED,
|
||||
MSG_LVL_HIGH
|
||||
};
|
||||
|
||||
|
@ -771,18 +787,22 @@ static const uint32_t msg_bld_masks_17[] = {
|
|||
|
||||
static const uint32_t msg_bld_masks_18[] = {
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW | MSG_MASK_8 | MSG_MASK_9 | MSG_MASK_10 | \
|
||||
MSG_MASK_11|MSG_MASK_12|MSG_MASK_13|MSG_MASK_14|MSG_MASK_15 | \
|
||||
MSG_MASK_16|MSG_MASK_17|MSG_MASK_18|MSG_MASK_19|MSG_MASK_20,
|
||||
MSG_LVL_LOW | MSG_MASK_5 | MSG_MASK_6,
|
||||
MSG_LVL_LOW | MSG_MASK_5,
|
||||
MSG_LVL_LOW | MSG_MASK_5 | MSG_MASK_6,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW | MSG_MASK_5 | \
|
||||
MSG_MASK_6 | MSG_MASK_7 | MSG_MASK_8 | MSG_MASK_9,
|
||||
MSG_LVL_MED | MSG_MASK_8 | MSG_MASK_9 | MSG_MASK_10 | MSG_MASK_11 |
|
||||
MSG_MASK_12 | MSG_MASK_13 | MSG_MASK_14 | MSG_MASK_15 |
|
||||
MSG_MASK_16 | MSG_MASK_17 | MSG_MASK_18 | MSG_MASK_19 |
|
||||
MSG_MASK_20,
|
||||
MSG_LVL_MED | MSG_MASK_5 | MSG_MASK_6,
|
||||
MSG_LVL_MED | MSG_MASK_5,
|
||||
MSG_LVL_MED | MSG_MASK_5 | MSG_MASK_6,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_MED | MSG_MASK_5 | MSG_MASK_6 | MSG_MASK_7 | MSG_MASK_8 |
|
||||
MSG_MASK_9,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_LOW,
|
||||
MSG_LVL_MED | MSG_MASK_5 | MSG_MASK_6 | MSG_MASK_7 | MSG_MASK_8 |
|
||||
MSG_MASK_9 | MSG_MASK_10 | MSG_MASK_11 | MSG_MASK_12 |
|
||||
MSG_MASK_13 | MSG_MASK_14 | MSG_MASK_15 | MSG_MASK_16 |
|
||||
MSG_MASK_20 | MSG_MASK_21 | MSG_MASK_22,
|
||||
MSG_LVL_LOW
|
||||
};
|
||||
|
||||
|
@ -881,7 +901,7 @@ static const uint32_t msg_bld_masks_25[] = {
|
|||
/* LOG CODES */
|
||||
static const uint32_t log_code_last_tbl[] = {
|
||||
0x0, /* EQUIP ID 0 */
|
||||
0x1C6A, /* EQUIP ID 1 */
|
||||
0x1C7B, /* EQUIP ID 1 */
|
||||
0x0, /* EQUIP ID 2 */
|
||||
0x0, /* EQUIP ID 3 */
|
||||
0x4910, /* EQUIP ID 4 */
|
||||
|
|
Loading…
Add table
Reference in a new issue