OSDN Git Service

diag: Update new msg, log and event logging codes
authorManoj Prabhu B <bmanoj@codeaurora.org>
Fri, 1 Feb 2019 07:16:51 +0000 (12:46 +0530)
committerManoj Prabhu B <bmanoj@codeaurora.org>
Wed, 10 Apr 2019 08:48:07 +0000 (14:18 +0530)
New requirement of logging enablement for new msg SSIDs,
logs and events mask codes are added.

Change-Id: I00522d93dad690fd31ce1058dcdb71364edbe738
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
include/linux/diagchar.h

index ec9e2ed..3ae123a 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2008-2018, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2008-2019, The Linux Foundation. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2 and
@@ -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             0xC92
+#define APPS_EVENT_LAST_ID             0xCA7
 
 #define MSG_SSID_0                     0
-#define MSG_SSID_0_LAST                        129
+#define MSG_SSID_0_LAST                        130
 #define MSG_SSID_1                     500
 #define MSG_SSID_1_LAST                        506
 #define MSG_SSID_2                     1000
@@ -166,7 +166,7 @@ the appropriate macros. */
 #define MSG_SSID_8                     5000
 #define MSG_SSID_8_LAST                        5036
 #define MSG_SSID_9                     5500
-#define MSG_SSID_9_LAST                        5516
+#define MSG_SSID_9_LAST                        5517
 #define MSG_SSID_10                    6000
 #define MSG_SSID_10_LAST               6081
 #define MSG_SSID_11                    6500
@@ -346,6 +346,7 @@ static const uint32_t msg_bld_masks_0[] = {
        MSG_LVL_LOW,
        MSG_LVL_MED,
        MSG_LVL_MED,
+       MSG_LVL_HIGH,
        MSG_LVL_HIGH
 };
 
@@ -566,23 +567,24 @@ static const uint32_t msg_bld_masks_8[] = {
 };
 
 static const uint32_t msg_bld_masks_9[] = {
-       MSG_LVL_MED|MSG_MASK_5,
-       MSG_LVL_MED|MSG_MASK_5,
-       MSG_LVL_MED|MSG_MASK_5,
-       MSG_LVL_MED|MSG_MASK_5,
-       MSG_LVL_MED|MSG_MASK_5,
-       MSG_LVL_MED|MSG_MASK_5,
-       MSG_LVL_MED|MSG_MASK_5,
-       MSG_LVL_MED|MSG_MASK_5,
-       MSG_LVL_MED|MSG_MASK_5,
-       MSG_LVL_MED|MSG_MASK_5,
-       MSG_LVL_MED|MSG_MASK_5,
-       MSG_LVL_MED|MSG_MASK_5,
-       MSG_LVL_MED|MSG_MASK_5,
-       MSG_LVL_MED|MSG_MASK_5,
-       MSG_LVL_MED|MSG_MASK_5,
-       MSG_LVL_MED|MSG_MASK_5,
-       MSG_LVL_MED|MSG_MASK_5
+       MSG_LVL_MED | MSG_MASK_5,
+       MSG_LVL_MED | MSG_MASK_5,
+       MSG_LVL_MED | MSG_MASK_5,
+       MSG_LVL_MED | MSG_MASK_5,
+       MSG_LVL_MED | MSG_MASK_5,
+       MSG_LVL_MED | MSG_MASK_5,
+       MSG_LVL_MED | MSG_MASK_5,
+       MSG_LVL_MED | MSG_MASK_5,
+       MSG_LVL_MED | MSG_MASK_5,
+       MSG_LVL_MED | MSG_MASK_5,
+       MSG_LVL_MED | MSG_MASK_5,
+       MSG_LVL_MED | MSG_MASK_5,
+       MSG_LVL_MED | MSG_MASK_5,
+       MSG_LVL_MED | MSG_MASK_5,
+       MSG_LVL_MED | MSG_MASK_5,
+       MSG_LVL_MED | MSG_MASK_5,
+       MSG_LVL_MED | MSG_MASK_5,
+       MSG_LVL_LOW
 };
 
 static const uint32_t msg_bld_masks_10[] =  {
@@ -908,7 +910,7 @@ static const uint32_t msg_bld_masks_25[] = {
 /* LOG CODES */
 static const uint32_t log_code_last_tbl[] = {
        0x0,    /* EQUIP ID 0 */
-       0x1C7B, /* EQUIP ID 1 */
+       0x1C94, /* EQUIP ID 1 */
        0x0,    /* EQUIP ID 2 */
        0x0,    /* EQUIP ID 3 */
        0x4910, /* EQUIP ID 4 */