1{ 2 "version": "1.0.0", 3 "segmentStatus":[ 4 {"namespace":"segStatus", "matchKey":"tid=\\d+ (.*)", "desc":""}, 5 {"namespace":"segWaitOther", "matchKey":"waiting to lock.*held by thread (\\d+)", "desc":" waiting on lock held by "}, 6 {"namespace":"segWaitSelf", "matchKey":"- waiting on <(.*)>", "desc":" waiting on itself"}, 7 {"namespace":"segIpcTrans", "matchKey":"os\\.(IpcProxy)\\.transact", "desc":" ipc transact:"}, 8 {"namespace":"segIpcFull", "matchKey":"os\\.Ipc\\.(blockUntilThreadAvailable)", "desc":" ipc full:"} 9 ], 10 "Rule2":{ 11 "DirOrFile":"/data/log/faultlog/faultlogger/", 12 "Subcatalog":"cppcrash-.*-\\d+-\\d+", 13 "featureId":"07_CPP_CRASH_00", 14 "rules":[ 15 {"namespace":"BasicParam", "matchKey":"Module name:", "v_process":"Module name:(.*)"}, 16 {"namespace":"MainCallTrace", "matchKey":"Thread name:@|@Tid:", "v_trace":"@T@#\\d+ pc [0-9a-zA-Z]+ (.*)"} 17 ] 18 }, 19 "Rule3":{ 20 "DirOrFile":"/data/log/faultlog/faultlogger/", 21 "Subcatalog":"jscrash-.*-\\d+-\\d+", 22 "featureId":"07_JS_ERROR_00", 23 "rules":[ 24 {"namespace":"BasicParam", "matchKey":"Module name:", "v_process":"Module name:(.*)"}, 25 {"namespace":"BasicParam", "matchKey":"Error message:", "v_subreasion":"Error message:(.*)"}, 26 {"namespace":"MainCallTrace", "matchKey":"at ", "v_trace":"@T@at (.*)"}, 27 {"namespace":"MainCallTrace", "matchKey":"#@&@pc", "v_nativetrace":"@T@#\\d+ pc [0-9a-zA-Z]+ (.*)"} 28 ] 29 }, 30 "Rule4":{ 31 "DirOrFile":"/data/log/faultlog/faultlogger/", 32 "Subcatalog":"appfreeze-.*-\\d+-\\d+", 33 "featureId":"63_APP_FREEZE_00,63_APP_FREEZE_01,63_APP_FREEZE_02", 34 "rules":[ 35 {"namespace":"BasicParam", "matchKey":"Module name:", "v_process":"Module name:(.*)"}, 36 {"namespace":"BasicParam", "matchKey":"PID = ", "v_pid":"PID = (.*)"}, 37 {"namespace":"BasicParam", "matchKey":"State:", "v_state":"\\bState:(.*)"}, 38 {"namespace":"BasicParam", "matchKey":"TracerPid:", "v_tracer":"TracerPid:(.*)"}, 39 {"namespace":"BasicParam", "matchKey":"hidumper: No such process", "v_exit":"hidumper:(.*):"}, 40 {"namespace":"MainCallTrace", "matchKey":"@R@(Tid:){1}@{BasicParam.v_pid}@", "v_trace":"@T@#\\d+ pc [0-9a-zA-Z]+ (.*)|at (.*)"} 41 ] 42 }, 43 "Rule5":{ 44 "DirOrFile":"/data/log/faultlog/faultlogger/", 45 "Subcatalog":"sysfreeze-.*-\\d+-\\d+", 46 "featureId":"63_SYS_FREEZE_01", 47 "rules":[ 48 {"namespace":"BasicParam", "matchKey":"Module name:", "v_process":"Module name:(.*)", "v_service_block":"Module name:SERVICE_BLOCK"}, 49 {"namespace":"BasicParam", "depend":"BasicParam.v_service_block", "matchKey":"SERVICE_BLOCK at ", "v_first":"SERVICE_BLOCK at (.*)"}, 50 {"namespace":"BasicParam", "matchKey":"PID = ", "v_pid":"PID = (.*)"}, 51 {"namespace":"MainCallTrace", "matchKey":"@R@(Tid:){1}@{BasicParam.v_pid}@", "v_trace":"@T@#\\d+ pc [0-9a-zA-Z]+ (.*)"} 52 ] 53 }, 54 "Rule6":{ 55 "DirOrFile":"/data/hisi_logs/", 56 "Subcatalog":"\\d{14}-\\d{8}/ap_log/dmesg-ramoops-0", 57 "featureId":"04_PANIC_01", 58 "segmentType":"OneLayer", 59 "startSeg":["NocTrace.v_cpu"], 60 "segStack":["[0-9a-zA-Z_.]+\\+0x[0-9a-f]+/0x[0-9a-f]+(.*)", "el1_irq+0"], 61 "rules":[ 62 {"namespace":"BasicParam", "matchKey":"Unhandled fault:@|@Unable to handle kernel@|@kernel BUG at@|@BUG: failure at@|@Bad mode in@|@DPM device timeout@|@invoked oom-killer@|@Synchronous External Abort:@|@,init]potentially unexpected fatal signal@|@Internal error:@|@NoC Error Probe:@|@mali gpu: Unhandled Page@|@CFI failure@|@Kernel panic - not syncing:", "v_cause":"pid:\\d+,cpu\\d+,.*\\]([A-Za-z].*)", "v_pname":",cpu[0-9],(.*?)[,:\\]]", "v_noc":"(NoC Error)"}, 63 {"namespace":"BasicParam", "depend":"BasicParam.v_pname", "matchKey":"PC is at ", "v_f1":"PC is at ([^\\+ ]+.*)"}, 64 {"namespace":"NocTrace", "depend":"BasicParam.v_noc", "matchKey":"err_code=", "v_errcode":"\\[(err_code=\\d+)\\]"}, 65 {"namespace":"NocTrace", "depend":"BasicParam.v_noc", "matchKey":"init_flow=", "v_master":"\\[init_flow=\\d+\\]: (.*)"}, 66 {"namespace":"NocTrace", "depend":"BasicParam.v_noc", "matchKey":"target_flow=", "v_slave":"\\[target_flow=\\d+\\]: (.*)"}, 67 {"namespace":"NocTrace", "depend":"BasicParam.v_noc", "matchKey":"adjusted ADDR", "v_address":"adjusted.* = (.*)"}, 68 {"namespace":"NocTrace", "depend":"BasicParam.v_noc", "matchKey":"USER_SIGNAL =", "v_user_signal":"USER_SIGNAL = 0x[0-9a-z]+ (.*)", "v_cpu":"\\(MID: AP_CPU(\\d+)"}, 69 {"namespace":"NocTrace", "depend":"BasicParam.v_noc", "matchKey":"sec_val =", "v_security":"(sec_val = 0x[0-9a-f]+)"}, 70 {"namespace":"MainCallTrace", "matchKey":"KERNEL CALL STACK", "v_trace":"@T@[0-9a-zA-Z_.]+\\+0x[0-9a-f]+/0x[0-9a-f]+(.*)"}, 71 {"namespace":"MainCallTrace", "matchKey":"Stack backtrace:", "v_trace":"@T@[0-9a-zA-Z_.]+\\+0x[0-9a-f]+/0x[0-9a-f]+(.*)"}, 72 {"namespace":"MainCallTrace", "depend":"BasicParam", "matchKey":"Call trace:", "v_trace":"@T@[0-9a-zA-Z_.]+\\+0x[0-9a-f]+/0x[0-9a-f]+(.*)"} 73 ], 74 "segmentRule":[ 75 {"namespace":"LayerOneCmd", "matchKey":"]:CPU@&@: stopping", "num":1, "v_id":"\\]:CPU(\\d+): stopping", "v_name":"\\]:(CPU\\d+): stopping"} 76 ] 77 }, 78 "Rule7":{ 79 "DirOrFile":"/data/hisi_logs/", 80 "Subcatalog":"\\d{14}-\\d{8}/ap_log/last_kmsg", 81 "featureId":"04_HWWATCHDOG_00", 82 "rules":[ 83 {"namespace":"BasicParam", "matchKey":"fiq triggered by: Watchdog", "v_fiq":"(.*)"}, 84 {"namespace":"BasicParam", "depend":"BasicParam.v_fiq","matchKey":"Comm:", "v_pname":"Comm:(.*) Tainted"}, 85 {"namespace":"MainCallTrace", "depend":"BasicParam.v_fiq", "matchKey":"Call trace:", "v_trace":"@T@[0-9a-zA-Z_]+\\+0x[0-9a-f]+/0x[0-9a-f]+(.*)"} 86 ] 87 }, 88 "Rule8":{ 89 "DirOrFile":"/data/log/faultlog/faultlogger/", 90 "Subcatalog":"rustpanic-.*-\\d+-\\d+", 91 "featureId":"04_RUST_PANIC_00", 92 "rules":[ 93 {"namespace":"BasicParam", "matchKey":"Module name:", "v_pname":"Module name:(.*)"}, 94 {"namespace":"MainCallTrace", "matchKey":"Thread name:", "v_trace":"@T@#\\d+ pc [0-9a-zA-Z]+ (.*)"} 95 ] 96 }, 97 "Rule9":{ 98 "DirOrFile":"/data/log/bbox/", 99 "Subcatalog":"\\d{14}-\\d{8}/bootfail_info_0@|@\\d{14}-\\d{8}/bootfail_info_1@|@\\d{14}-\\d{8}/bootfail_info_2@|@\\d{14}-\\d{8}/bootfail_info_3@|@\\d{14}-\\d{8}/bootfail_info_4@|@\\d{14}-\\d{8}/bootfail_info_5@|@\\d{14}-\\d{8}/bootfail_info_6@|@\\d{14}-\\d{8}/bootfail_info_7@|@\\d{14}-\\d{8}/bootfail_info_8@|@\\d{14}-\\d{8}/bootfail_info_9", 100 "featureId":"04_BOOTFAIL_00", 101 "rules":[ 102 {"namespace":"BasicParam", "matchKey":"Fault Reason: ", "v_bootfailReason":"Fault Reason: (.*)"}, 103 {"namespace":"BasicParam", "matchKey":"Error Description: ", "v_bootfailDetail":"Error Description: (.*)"}, 104 {"namespace":"BasicParam", "matchKey":"Error No: 0x", "v_bootfailErrno":"Error No: (0x[0-9a-f]+)"} 105 ] 106 }, 107 "Rule10":{ 108 "DirOrFile":"/data/log/faultlog/", 109 "Subcatalog":"CPP_CRASH\\d+", 110 "featureId":"07_CPP_CRASH_00", 111 "rules":[ 112 {"namespace":"BasicParam", "matchKey":"Module name:", "v_process":"Module name:(.*)"}, 113 {"namespace":"MainCallTrace", "matchKey":"Thread name:@|@Tid:", "v_trace":"@T@#\\d+ pc [0-9a-zA-Z]+ (.*)"} 114 ] 115 }, 116 "Rule11":{ 117 "DirOrFile":"/data/log/faultlog/", 118 "Subcatalog":"JS_ERROR\\d+", 119 "featureId":"07_JS_ERROR_00,07_JS_ERROR_01", 120 "rules":[ 121 {"namespace":"BasicParam", "matchKey":"Module name:", "v_process":"Module name:(.*)"}, 122 {"namespace":"BasicParam", "matchKey":"Error message:", "v_subreasion":"Error message:(.*)"}, 123 {"namespace":"MainCallTrace", "matchKey":"at ", "v_trace":"@T@at (.*)"}, 124 {"namespace":"MainCallTrace", "matchKey":"#@&@pc", "v_nativetrace":"@T@#\\d+ pc [0-9a-zA-Z]+ (.*)"} 125 ] 126 }, 127 "Rule12":{ 128 "DirOrFile":"/data/log/faultlog/", 129 "Subcatalog":"*.appfreeze-.*.tmp", 130 "featureId":"63_APP_FREEZE_00,63_APP_FREEZE_01,63_APP_FREEZE_02", 131 "rules":[ 132 {"namespace":"BasicParam", "matchKey":"Module name:", "v_process":"Module name:(.*)"}, 133 {"namespace":"BasicParam", "matchKey":"PID = ", "v_pid":"PID = (.*)"}, 134 {"namespace":"BasicParam", "matchKey":"State:", "v_state":"\\bState:(.*)"}, 135 {"namespace":"BasicParam", "matchKey":"TracerPid:", "v_tracer":"TracerPid:(.*)"}, 136 {"namespace":"BasicParam", "matchKey":"hidumper: No such process", "v_exit":"hidumper:(.*):"}, 137 {"namespace":"MainCallTrace", "matchKey":"@R@(Tid:){1}@{BasicParam.v_pid}@", "v_trace":"@T@#\\d+ pc [0-9a-zA-Z]+ (.*)|at (.*)"} 138 ] 139 } 140} 141