• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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+\\.log",
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+\\.log",
22        "featureId":"07_JS_ERROR_00,07_JS_ERROR_01",
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+\\.log",
33        "featureId":"63_APP_FREEZE_00",
34        "rules":[
35            {"namespace":"BasicParam", "matchKey":"Module name:", "v_process":"Module name:(.*)"},
36            {"namespace":"BasicParam", "matchKey":"PID = ", "v_pid":"PID = (.*)"},
37            {"namespace":"BasicParam", "matchKey":"TID = ", "v_tid":"TID = (.*)"},
38            {"namespace":"BasicParam", "matchKey":"State:", "v_state":"^State:(.*)"},
39            {"namespace":"BasicParam", "matchKey":"TracerPid:", "v_tracer":"TracerPid:(.*)"},
40            {"namespace":"BasicParam", "matchKey":"hidumper: No such process", "v_exit":"hidumper: (.*):"},
41            {"namespace":"BasicParam", "matchKey":"timeout: ", "v_timeout":"timeout: (.*)"},
42            {"namespace":"BasicParam", "matchKey":"normal stack:", "v_normal_stack_reason":"normal stack:(.*)"},
43            {"namespace":"MainCallTrace", "matchKey":"@R@(Tid:){1}@{BasicParam.v_tid}@", "v_trace":"@T@#\\d+ pc [0-9a-zA-Z]+ (.*)|at (.*)"}
44        ]
45    },
46    "Rule5":{
47        "DirOrFile":"/data/log/faultlog/faultlogger/",
48        "Subcatalog":"sysfreeze-(?!HUNGTASK).*-\\d+-\\d+\\.log",
49        "featureId":"63_SYS_FREEZE_01",
50        "rules":[
51            {"namespace":"BasicParam", "matchKey":"Module name:", "v_process":"Module name:(.*)"},
52            {"namespace":"BasicParam", "matchKey":"PID = ", "v_pid":"PID = (.*)"},
53            {"namespace":"BasicParam", "matchKey":"TID = ", "v_tid":"TID = (.*)"},
54            {"namespace":"BasicParam", "matchKey":"FfrtCallback: task(SERIAL_TASK_TIMEOUT:", "v_queue_name":"FfrtCallback: task\\(SERIAL_TASK_TIMEOUT:.*queue name \\[(sq_\\w+)_\\d+\\]"},
55            {"namespace":"BasicParam", "matchKey":"timeout: ", "v_timeout":"timeout: (.*)"},
56            {"namespace":"BasicParam", "matchKey":"normal stack:", "v_normal_stack_reason":"normal stack:(.*)"},
57            {"namespace":"MainCallTrace", "matchKey":"@R@(Tid:){1}@{BasicParam.v_tid}@", "v_trace":"@T@#\\d+ pc [0-9a-zA-Z]+ (.*)"}
58        ]
59    },
60    "Rule6":{
61        "DirOrFile":"/data/hisi_logs/",
62        "Subcatalog":"\\d{14}-\\d{8}/ap_log/dmesg-ramoops-0",
63        "featureId":"04_PANIC_01",
64        "segmentType":"OneLayer",
65        "startSeg":["NocTrace.v_cpu"],
66        "segStack":["[0-9a-zA-Z_.]+\\+0x[0-9a-f]+/0x[0-9a-f]+(.*)", "el1_irq+0"],
67        "rules":[
68            {"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)"},
69            {"namespace":"BasicParam", "depend":"BasicParam.v_pname", "matchKey":"PC is at ", "v_f1":"PC is at ([^\\+ ]+.*)"},
70            {"namespace":"NocTrace", "depend":"BasicParam.v_noc", "matchKey":"err_code=", "v_errcode":"\\[(err_code=\\d+)\\]"},
71            {"namespace":"NocTrace", "depend":"BasicParam.v_noc", "matchKey":"init_flow=", "v_master":"\\[init_flow=\\d+\\]: (.*)"},
72            {"namespace":"NocTrace", "depend":"BasicParam.v_noc", "matchKey":"target_flow=", "v_slave":"\\[target_flow=\\d+\\]: (.*)"},
73            {"namespace":"NocTrace", "depend":"BasicParam.v_noc", "matchKey":"adjusted ADDR", "v_address":"adjusted.* = (.*)"},
74            {"namespace":"NocTrace", "depend":"BasicParam.v_noc", "matchKey":"USER_SIGNAL =", "v_user_signal":"USER_SIGNAL = 0x[0-9a-z]+ (.*)", "v_cpu":"\\(MID: AP_CPU(\\d+)"},
75            {"namespace":"NocTrace", "depend":"BasicParam.v_noc", "matchKey":"sec_val =", "v_security":"(sec_val = 0x[0-9a-f]+)"},
76            {"namespace":"MainCallTrace", "matchKey":"Stack backtrace", "v_panic":"\\[PANIC\\]\\[\\S{2,2}_[0-9a-f]{2,2}\\]Stack backtrace"},
77            {"namespace":"MainCallTrace", "depend":"MainCallTrace.v_panic", "v_trace":"@T@(<[_a-zA-Z0-9]+\\+0x[0-9a-fA-F]+/0x[0-9a-fA-F]+>)"},
78            {"namespace":"MainCallTrace", "matchKey":"bootfail: func: process_panic_event line", "v_trace":"@T@[0-9a-zA-Z_.]+\\+0x[0-9a-f]+/0x[0-9a-f]+(.*)"},
79            {"namespace":"MainCallTrace", "matchKey":"hguard-worker thread is abnormal", "v_trace":"@T@(<[_a-zA-Z0-9]+\\+0x[0-9a-fA-F]+/0x[0-9a-fA-F]+>)"},
80            {"namespace":"MainCallTrace", "depend":"BasicParam", "matchKey":"Call trace:", "v_trace":"@T@[0-9a-zA-Z_.]+\\+0x[0-9a-f]+/0x[0-9a-f]+(.*)"}
81        ],
82        "segmentRule":[
83            {"namespace":"LayerOneCmd", "matchKey":"]:CPU@&@: stopping", "num":1, "v_id":"\\]:CPU(\\d+): stopping", "v_name":"\\]:(CPU\\d+): stopping"}
84        ]
85    },
86    "Rule7":{
87        "DirOrFile":"/data/hisi_logs/",
88        "Subcatalog":"\\d{14}-\\d{8}/ap_log/fastboot_log",
89        "featureId":"04_HWWATCHDOG_00",
90        "rules":[
91            {"namespace":"BasicParam", "matchKey":"RebootReasonGetExcType", "v_first":"get pmu reg is (0x[0-9a-fA-F]+)"},
92            {"namespace":"BasicParam", "matchKey":"RebootReasonGetSubtype", "v_second":"get pmu reg is (0x[0-9a-fA-F]+)"},
93            {"namespace":"BasicParam", "matchKey":"RebootReasonGetSrPos", "v_last":"(sr position:.*)"},
94            {"namespace":"BasicParam", "matchKey":"get_record_exce_type", "v_first":"get pmu reg is ([0-9a-fA-F]+)"},
95            {"namespace":"BasicParam", "matchKey":"get_record_subtype", "v_second":"get pmu reg is ([0-9a-fA-F]+)"},
96            {"namespace":"BasicParam", "matchKey":"no_module", "v_last":"(sr position:.*)"}
97        ]
98    },
99    "Rule8":{
100        "DirOrFile":"/data/log/faultlog/faultlogger/",
101        "Subcatalog":"rustpanic-.*-\\d+-\\d+\\.log",
102        "featureId":"04_RUST_PANIC_00",
103        "rules":[
104            {"namespace":"BasicParam", "matchKey":"Module name:", "v_pname":"Module name:(.*)"},
105            {"namespace":"MainCallTrace", "matchKey":"Thread name:", "v_trace":"@T@#\\d+ pc [0-9a-zA-Z]+ (.*)"}
106        ]
107    },
108    "Rule9":{
109        "DirOrFile":"/data/log/bbox/",
110        "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",
111        "featureId":"04_BOOTFAIL_00",
112        "rules":[
113            {"namespace":"BasicParam", "matchKey":"Fault Reason: ", "v_bootfailReason":"Fault Reason: (.*)"},
114            {"namespace":"BasicParam", "matchKey":"Error Description: ", "v_bootfailDetail":"Error Description: (.*)"},
115            {"namespace":"BasicParam", "matchKey":"Error No: 0x", "v_bootfailErrno":"Error No: (0x[0-9a-f]+)"}
116        ]
117    },
118    "Rule10":{
119        "DirOrFile":"/data/log/faultlog/",
120        "Subcatalog":"CPP_CRASH\\d+",
121        "featureId":"07_CPP_CRASH_00",
122        "rules":[
123            {"namespace":"BasicParam", "matchKey":"Module name:", "v_process":"Module name:(.*)"},
124            {"namespace":"MainCallTrace", "matchKey":"Thread name:@|@Tid:", "v_trace":"@T@#\\d+ pc [0-9a-zA-Z]+ (.*)"}
125        ]
126    },
127    "Rule11":{
128        "DirOrFile":"/data/log/faultlog/",
129        "Subcatalog":"JS_ERROR\\d+",
130        "featureId":"07_JS_ERROR_00,07_JS_ERROR_01",
131        "rules":[
132            {"namespace":"BasicParam", "matchKey":"Module name:", "v_process":"Module name:(.*)"},
133            {"namespace":"BasicParam", "matchKey":"Error message:", "v_subreasion":"Error message:(.*)"},
134            {"namespace":"MainCallTrace", "matchKey":"at ",  "v_trace":"@T@at (.*)"},
135            {"namespace":"MainCallTrace", "matchKey":"#@&@pc",  "v_nativetrace":"@T@#\\d+ pc [0-9a-zA-Z]+ (.*)"}
136        ]
137    },
138    "Rule12":{
139        "DirOrFile":"/data/log/faultlog/freeze/",
140        "Subcatalog":"appfreeze-.*.tmp",
141        "featureId":"63_APP_FREEZE_00",
142        "rules":[
143            {"namespace":"BasicParam", "matchKey":"Module name:", "v_process":"Module name:(.*)"},
144            {"namespace":"BasicParam", "matchKey":"PID = ", "v_pid":"PID = (.*)"},
145            {"namespace":"BasicParam", "matchKey":"TID = ", "v_tid":"TID = (.*)"},
146            {"namespace":"BasicParam", "matchKey":"State:", "v_state":"^State:(.*)"},
147            {"namespace":"BasicParam", "matchKey":"TracerPid:", "v_tracer":"TracerPid:(.*)"},
148            {"namespace":"BasicParam", "matchKey":"hidumper: No such process", "v_exit":"hidumper:(.*):"},
149            {"namespace":"BasicParam", "matchKey":"timeout: ", "v_timeout":"timeout: (.*)"},
150            {"namespace":"BasicParam", "matchKey":"normal stack:", "v_normal_stack_reason":"normal stack:(.*)"},
151            {"namespace":"MainCallTrace", "matchKey":"@R@(Tid:){1}@{BasicParam.v_tid}@", "v_trace":"@T@#\\d+ pc [0-9a-zA-Z]+ (.*)|at (.*)"}
152        ]
153    },
154    "Rule13":{
155        "DirOrFile":"/data/log/sensorhub-log/",
156        "Subcatalog":"history.log",
157        "featureId":"03_SENSORHUBCRASH_00",
158        "rules":[
159            {"namespace":"BasicParam", "matchKey":"reason", "v_last":"@L@boxname\\[\\S+\\],([0-9a-f]+, [0-9a-f]+)"}
160        ]
161    },
162    "Rule14":{
163        "DirOrFile":"/data/hisi_logs/",
164        "Subcatalog":"\\d{14}-\\d{8}/cp_log/reset.log",
165        "featureId":"03_MODEMCRASH_00,03_MODEM_REBOOTSYS_00",
166        "rules":[
167            {"namespace":"BasicParam", "matchKey":"brief:", "v_first":"brief:(.*)"},
168            {"namespace":"BasicParam", "matchKey":"task_name:", "v_second":"task_name:(.*)"},
169            {"namespace":"BasicParam", "matchKey":"modid:", "v_last":"modid:(.*)"}
170        ]
171    },
172    "Rule15":{
173        "DirOrFile":"/data/hisi_logs/",
174        "Subcatalog":"\\d{14}-\\d{8}/ap_log/dmesg-ramoops-0",
175        "featureId":"04_PANIC_00",
176        "rules":[
177            {"namespace":"BasicParam", "matchKey":"qtp_rsp", "v_cause":"dfx_qic\\]:(.*)", "v_last":"(qtp_rsp.*)"},
178            {"namespace":"BasicParam", "matchKey":"master_id", "v_cause":"dfx_qic\\]:(.*)", "v_last":"(master_id\\s+\\|.*)"},
179            {"namespace":"BasicParam", "matchKey":"ServiceReap error", "v_last":"(service crashed \\w+ \\d+)$"},
180            {"namespace":"BasicParam", "depend":"BasicParam.v_cause","matchKey":"MID(Master id)", "v_first":"(MID\\(Master id\\).*)"},
181            {"namespace":"BasicParam", "depend":"BasicParam.v_cause","matchKey":"qic_addr", "v_second":"(qic_addr.*)"},
182            {"namespace":"BasicParam", "depend":"BasicParam.v_cause","matchKey":"err_addr", "v_second":"(err_addr.*)"}
183        ]
184    },
185    "Rule16":{
186        "DirOrFile":"/data/log/warninglog/",
187        "Subcatalog":"syswarning-.*-\\d+-\\d+\\.log",
188        "featureId":"63_SYS_WARNING_01",
189        "rules":[
190            {"namespace":"BasicParam", "matchKey":"Module name:", "v_process":"Module name:(.*)"},
191            {"namespace":"BasicParam", "matchKey":"PID = ", "v_pid":"PID = (.*)"},
192            {"namespace":"BasicParam", "matchKey":"TID = ", "v_tid":"TID = (.*)"},
193            {"namespace":"BasicParam", "matchKey":"timeout: ", "v_timeout":"timeout: (.*)"},
194            {"namespace":"MainCallTrace", "matchKey":"@R@(Tid:){1}@{BasicParam.v_tid}@", "v_trace":"@T@#\\d+ pc [0-9a-zA-Z]+ (.*)"}
195        ]
196    },
197    "Rule17":{
198        "DirOrFile":"/data/log/faultlog/faultlogger/",
199        "Subcatalog":"sysfreeze-HUNGTASK-\\d+-\\d+\\.log",
200        "featureId":"63_SYS_FREEZE_02",
201        "rules":[
202            {"namespace":"BasicParam", "matchKey":"Module name:", "v_process":"Module name:(.*)"},
203            {"namespace":"BasicParam", "matchKey":"TID = ", "v_tid":"TID = (.*)"},
204            {"namespace":"MainCallTrace", "depend":"BasicParam.v_tid", "matchKey":"name=", "v_start":"(tid=@{BasicParam.v_tid}@, state=BLOCKED)"},
205            {"namespace":"MainCallTrace", "depend":"MainCallTrace.v_start", "v_trace":"@T@(<[_a-zA-Z0-9]+\\+0x[0-9a-fA-F]+/0x[0-9a-fA-F]+> \\(.*\\))"}
206        ]
207    },
208    "Rule18":{
209        "DirOrFile":"/data/log/faultlog/temp/",
210        "Subcatalog":"stacktrace-\\d+-\\d+",
211        "featureId":"64_ADDR_SANITIZER_01",
212        "rules":[
213            {"namespace":"MainCallTrace", "matchKey":"@R@(Tid:){1}\\d+, Name:", "v_trace":"@T@#\\d+ pc [0-9a-zA-Z]+ (.*)"}
214        ]
215    },
216    "Rule19":{
217        "DirOrFile":"/data/log/faultlog/freeze/",
218        "Subcatalog":"sysfreeze-(?!HUNGTASK).*-\\d+-\\d+\\.tmp",
219        "featureId":"63_SYS_FREEZE_01",
220        "rules":[
221            {"namespace":"BasicParam", "matchKey":"Module name:", "v_process":"Module name:(.*)"},
222            {"namespace":"BasicParam", "matchKey":"PID = ", "v_pid":"PID = (.*)"},
223            {"namespace":"BasicParam", "matchKey":"TID = ", "v_tid":"TID = (.*)"},
224            {"namespace":"BasicParam", "matchKey":"FfrtCallback: task(SERIAL_TASK_TIMEOUT:", "v_queue_name":"FfrtCallback: task\\(SERIAL_TASK_TIMEOUT:.*queue name \\[(sq_\\w+)_\\d+\\]"},
225            {"namespace":"BasicParam", "matchKey":"timeout: ", "v_timeout":"timeout: (.*)"},
226            {"namespace":"BasicParam", "matchKey":"normal stack:", "v_normal_stack_reason":"normal stack:(.*)"},
227            {"namespace":"MainCallTrace", "matchKey":"@R@(Tid:){1}@{BasicParam.v_tid}@", "v_trace":"@T@#\\d+ pc [0-9a-zA-Z]+ (.*)"}
228        ]
229    },
230    "Rule20":{
231        "DirOrFile":"/data/log/faultlog/freeze/",
232        "Subcatalog":"sysfreeze-HUNGTASK-\\d+-\\d+-\\d+\\.tmp",
233        "featureId":"63_SYS_FREEZE_02",
234        "rules":[
235            {"namespace":"BasicParam", "matchKey":"Module name:", "v_process":"Module name:(.*)"},
236            {"namespace":"BasicParam", "matchKey":"TID = ", "v_tid":"TID = (.*)"},
237            {"namespace":"MainCallTrace", "depend":"BasicParam.v_tid", "matchKey":"name=", "v_start":"(tid=@{BasicParam.v_tid}@, state=BLOCKED)"},
238            {"namespace":"MainCallTrace", "depend":"MainCallTrace.v_start", "v_trace":"@T@(<[_a-zA-Z0-9]+\\+0x[0-9a-fA-F]+/0x[0-9a-fA-F]+> \\(.*\\))"}
239        ]
240    },
241    "Rule21":{
242        "DirOrFile":"/data/hisi_logs/",
243        "Subcatalog":"\\d{14}-\\d{8}/dpa_log/reset.log",
244        "featureId":"03_DPACRASH_00",
245        "rules":[
246            {"namespace":"BasicParam", "matchKey":"brief:", "v_first":"^brief:(.*)"},
247            {"namespace":"BasicParam", "matchKey":"task_name:", "v_second":"^task_name:(.*)"},
248            {"namespace":"BasicParam", "matchKey":"modid:", "v_last":"^modid:(.*)"}
249        ]
250    },
251    "Rule22":{
252        "DirOrFile":"/data/hisi_logs/",
253        "Subcatalog":"hisi_diaginfo.log",
254        "featureId":"03_GPUEXCEPTION_00",
255        "rules":[
256            {"namespace":"BasicParam", "matchKey":"DMD_HIGPU_PAGE_FAULT", "v_first":"@L@(source_id:0x\\d+|fault:\\d 0x\\d+)", "v_second":"@L@(stream_id:0x\\d+)", "v_last":"@L@(task:.*)\\]"},
257            {"namespace":"BasicParam", "matchKey":"DMD_HIGPU_JOB_FAIL", "v_first":"@L@(source_id:0x\\d+|fault:\\d 0x\\d+)", "v_second":"@L@(stream_id:0x\\d+)", "v_last":"@L@(task:.*)\\]"}
258        ]
259    },
260    "Rule23":{
261        "DirOrFile":"/data/hisi_logs/",
262        "Subcatalog":"\\d{14}-\\d{8}/ap_log/fastboot_log",
263        "featureId":"04_LPM3EXCEPTION_00",
264        "rules":[
265            {"namespace":"BasicParam", "matchKey":"RebootReasonGetExcType", "v_first":"get pmu reg is (0x[0-9a-fA-F]+)"},
266            {"namespace":"BasicParam", "matchKey":"RebootReasonGetSubtype", "v_second":"get pmu reg is (0x[0-9a-fA-F]+)"},
267            {"namespace":"BasicParam", "matchKey":"RebootReasonGetSrPos", "v_last":"(sr position:.*)"},
268            {"namespace":"BasicParam", "matchKey":"get_record_exce_type", "v_first":"get pmu reg is ([0-9a-fA-F]+)"},
269            {"namespace":"BasicParam", "matchKey":"get_record_subtype", "v_second":"get pmu reg is ([0-9a-fA-F]+)"},
270            {"namespace":"BasicParam", "matchKey":"no_module", "v_last":"(sr position:.*)"}
271        ]
272    }
273}
274