{ "version": "1.0.0", "segmentStatus":[ {"namespace":"segStatus", "matchKey":"tid=\\d+ (.*)", "desc":""}, {"namespace":"segWaitOther", "matchKey":"waiting to lock.*held by thread (\\d+)", "desc":" waiting on lock held by "}, {"namespace":"segWaitSelf", "matchKey":"- waiting on <(.*)>", "desc":" waiting on itself"}, {"namespace":"segIpcTrans", "matchKey":"os\\.(IpcProxy)\\.transact", "desc":" ipc transact:"}, {"namespace":"segIpcFull", "matchKey":"os\\.Ipc\\.(blockUntilThreadAvailable)", "desc":" ipc full:"} ], "Rule2":{ "DirOrFile":"/data/log/faultlog/faultlogger/", "Subcatalog":"cppcrash-.*-\\d+-\\d+", "featureId":"07_CPP_CRASH_00", "rules":[ {"namespace":"BasicParam", "matchKey":"Module name:", "v_process":"Module name:(.*)"}, {"namespace":"MainCallTrace", "matchKey":"Thread name:@|@Tid:", "v_trace":"@T@#\\d+ pc [0-9a-zA-Z]+ (.*)"} ] }, "Rule3":{ "DirOrFile":"/data/log/faultlog/faultlogger/", "Subcatalog":"jscrash-.*-\\d+-\\d+", "featureId":"07_JS_ERROR_00,07_JS_ERROR_01", "rules":[ {"namespace":"BasicParam", "matchKey":"Module name:", "v_process":"Module name:(.*)"}, {"namespace":"BasicParam", "matchKey":"Error message:", "v_subreasion":"Error message:(.*)"}, {"namespace":"MainCallTrace", "matchKey":"at ", "v_trace":"@T@at (.*)"}, {"namespace":"MainCallTrace", "matchKey":"#@&@pc", "v_nativetrace":"@T@#\\d+ pc [0-9a-zA-Z]+ (.*)"} ] }, "Rule4":{ "DirOrFile":"/data/log/faultlog/faultlogger/", "Subcatalog":"appfreeze-.*-\\d+-\\d+", "featureId":"63_APP_FREEZE_00", "rules":[ {"namespace":"BasicParam", "matchKey":"Module name:", "v_process":"Module name:(.*)"}, {"namespace":"BasicParam", "matchKey":"PID = ", "v_pid":"PID = (.*)"}, {"namespace":"BasicParam", "matchKey":"TID = ", "v_tid":"TID = (.*)"}, {"namespace":"BasicParam", "matchKey":"State:", "v_state":"^State:(.*)"}, {"namespace":"BasicParam", "matchKey":"TracerPid:", "v_tracer":"TracerPid:(.*)"}, {"namespace":"BasicParam", "matchKey":"hidumper: No such process", "v_exit":"hidumper: (.*):"}, {"namespace":"BasicParam", "matchKey":"timeout: ", "v_timeout":"timeout: (.*)"}, {"namespace":"BasicParam", "matchKey":"Result: pid", "v_dumpcatch_result":"Result: pid\\(\\d+\\) (process .*)\\."}, {"namespace":"MainCallTrace", "matchKey":"@R@(Tid:){1}@{BasicParam.v_tid}@", "v_trace":"@T@#\\d+ pc [0-9a-zA-Z]+ (.*)|at (.*)"} ] }, "Rule5":{ "DirOrFile":"/data/log/faultlog/faultlogger/", "Subcatalog":"sysfreeze-.*-\\d+-\\d+", "featureId":"63_SYS_FREEZE_01", "rules":[ {"namespace":"BasicParam", "matchKey":"Module name:", "v_process":"Module name:(.*)"}, {"namespace":"BasicParam", "matchKey":"Module name:", "v_process":"Module name:(.*)", "v_service_block":"Module name:SERVICE_BLOCK"}, {"namespace":"BasicParam", "matchKey":"PID = ", "v_pid":"PID = (.*)"}, {"namespace":"BasicParam", "matchKey":"TID = ", "v_tid":"TID = (.*)"}, {"namespace":"BasicParam", "matchKey":"FfrtCallback: task(SERIAL_TASK_TIMEOUT:", "v_queue_name":"FfrtCallback: task\\(SERIAL_TASK_TIMEOUT:.*queue name \\[(sq_\\w+)_\\d+\\]"}, {"namespace":"BasicParam", "matchKey":"timeout: ", "v_timeout":"timeout: (.*)"}, {"namespace":"MainCallTrace", "matchKey":"@R@(Tid:){1}@{BasicParam.v_tid}@", "v_trace":"@T@#\\d+ pc [0-9a-zA-Z]+ (.*)"} ] }, "Rule6":{ "DirOrFile":"/data/hisi_logs/", "Subcatalog":"\\d{14}-\\d{8}/ap_log/dmesg-ramoops-0", "featureId":"04_PANIC_01", "segmentType":"OneLayer", "startSeg":["NocTrace.v_cpu"], "segStack":["[0-9a-zA-Z_.]+\\+0x[0-9a-f]+/0x[0-9a-f]+(.*)", "el1_irq+0"], "rules":[ {"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)"}, {"namespace":"BasicParam", "depend":"BasicParam.v_pname", "matchKey":"PC is at ", "v_f1":"PC is at ([^\\+ ]+.*)"}, {"namespace":"NocTrace", "depend":"BasicParam.v_noc", "matchKey":"err_code=", "v_errcode":"\\[(err_code=\\d+)\\]"}, {"namespace":"NocTrace", "depend":"BasicParam.v_noc", "matchKey":"init_flow=", "v_master":"\\[init_flow=\\d+\\]: (.*)"}, {"namespace":"NocTrace", "depend":"BasicParam.v_noc", "matchKey":"target_flow=", "v_slave":"\\[target_flow=\\d+\\]: (.*)"}, {"namespace":"NocTrace", "depend":"BasicParam.v_noc", "matchKey":"adjusted ADDR", "v_address":"adjusted.* = (.*)"}, {"namespace":"NocTrace", "depend":"BasicParam.v_noc", "matchKey":"USER_SIGNAL =", "v_user_signal":"USER_SIGNAL = 0x[0-9a-z]+ (.*)", "v_cpu":"\\(MID: AP_CPU(\\d+)"}, {"namespace":"NocTrace", "depend":"BasicParam.v_noc", "matchKey":"sec_val =", "v_security":"(sec_val = 0x[0-9a-f]+)"}, {"namespace":"MainCallTrace", "matchKey":"KERNEL CALL STACK", "v_trace":"@T@[0-9a-zA-Z_.]+\\+0x[0-9a-f]+/0x[0-9a-f]+(.*)"}, {"namespace":"MainCallTrace", "matchKey":"Stack backtrace:", "v_trace":"@T@[0-9a-zA-Z_.]+\\+0x[0-9a-f]+/0x[0-9a-f]+(.*)"}, {"namespace":"MainCallTrace", "depend":"BasicParam", "matchKey":"Call trace:", "v_trace":"@T@[0-9a-zA-Z_.]+\\+0x[0-9a-f]+/0x[0-9a-f]+(.*)"} ], "segmentRule":[ {"namespace":"LayerOneCmd", "matchKey":"]:CPU@&@: stopping", "num":1, "v_id":"\\]:CPU(\\d+): stopping", "v_name":"\\]:(CPU\\d+): stopping"} ] }, "Rule7":{ "DirOrFile":"/data/hisi_logs/", "Subcatalog":"\\d{14}-\\d{8}/ap_log/last_kmsg", "featureId":"04_HWWATCHDOG_00", "rules":[ {"namespace":"BasicParam", "matchKey":"fiq triggered by: Watchdog", "v_fiq":"(.*)"}, {"namespace":"BasicParam", "depend":"BasicParam.v_fiq","matchKey":"Comm:", "v_pname":"Comm:(.*) Tainted"}, {"namespace":"MainCallTrace", "depend":"BasicParam.v_fiq", "matchKey":"Call trace:", "v_trace":"@T@[0-9a-zA-Z_]+\\+0x[0-9a-f]+/0x[0-9a-f]+(.*)"} ] }, "Rule8":{ "DirOrFile":"/data/log/faultlog/faultlogger/", "Subcatalog":"rustpanic-.*-\\d+-\\d+", "featureId":"04_RUST_PANIC_00", "rules":[ {"namespace":"BasicParam", "matchKey":"Module name:", "v_pname":"Module name:(.*)"}, {"namespace":"MainCallTrace", "matchKey":"Thread name:", "v_trace":"@T@#\\d+ pc [0-9a-zA-Z]+ (.*)"} ] }, "Rule9":{ "DirOrFile":"/data/log/bbox/", "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", "featureId":"04_BOOTFAIL_00", "rules":[ {"namespace":"BasicParam", "matchKey":"Fault Reason: ", "v_bootfailReason":"Fault Reason: (.*)"}, {"namespace":"BasicParam", "matchKey":"Error Description: ", "v_bootfailDetail":"Error Description: (.*)"}, {"namespace":"BasicParam", "matchKey":"Error No: 0x", "v_bootfailErrno":"Error No: (0x[0-9a-f]+)"} ] }, "Rule10":{ "DirOrFile":"/data/log/faultlog/", "Subcatalog":"CPP_CRASH\\d+", "featureId":"07_CPP_CRASH_00", "rules":[ {"namespace":"BasicParam", "matchKey":"Module name:", "v_process":"Module name:(.*)"}, {"namespace":"MainCallTrace", "matchKey":"Thread name:@|@Tid:", "v_trace":"@T@#\\d+ pc [0-9a-zA-Z]+ (.*)"} ] }, "Rule11":{ "DirOrFile":"/data/log/faultlog/", "Subcatalog":"JS_ERROR\\d+", "featureId":"07_JS_ERROR_00,07_JS_ERROR_01", "rules":[ {"namespace":"BasicParam", "matchKey":"Module name:", "v_process":"Module name:(.*)"}, {"namespace":"BasicParam", "matchKey":"Error message:", "v_subreasion":"Error message:(.*)"}, {"namespace":"MainCallTrace", "matchKey":"at ", "v_trace":"@T@at (.*)"}, {"namespace":"MainCallTrace", "matchKey":"#@&@pc", "v_nativetrace":"@T@#\\d+ pc [0-9a-zA-Z]+ (.*)"} ] }, "Rule12":{ "DirOrFile":"/data/log/faultlog/freeze/", "Subcatalog":"*.appfreeze-.*.tmp", "featureId":"63_APP_FREEZE_00", "rules":[ {"namespace":"BasicParam", "matchKey":"Module name:", "v_process":"Module name:(.*)"}, {"namespace":"BasicParam", "matchKey":"PID = ", "v_pid":"PID = (.*)"}, {"namespace":"BasicParam", "matchKey":"TID = ", "v_tid":"TID = (.*)"}, {"namespace":"BasicParam", "matchKey":"State:", "v_state":"^State:(.*)"}, {"namespace":"BasicParam", "matchKey":"TracerPid:", "v_tracer":"TracerPid:(.*)"}, {"namespace":"BasicParam", "matchKey":"hidumper: No such process", "v_exit":"hidumper:(.*):"}, {"namespace":"BasicParam", "matchKey":"timeout: ", "v_timeout":"timeout: (.*)"}, {"namespace":"BasicParam", "matchKey":"Result: pid", "v_dumpcatch_result":"Result: pid\\(\\d+\\) (process .*)\\."}, {"namespace":"MainCallTrace", "matchKey":"@R@(Tid:){1}@{BasicParam.v_tid}@", "v_trace":"@T@#\\d+ pc [0-9a-zA-Z]+ (.*)|at (.*)"} ] }, "Rule13":{ "DirOrFile":"/data/log/sensorhub-log/", "Subcatalog":"history.log", "featureId":"03_SENSORHUBCRASH_00", "rules":[ {"namespace":"BasicParam", "matchKey":"time", "v_last":"@L@time (.+)"} ] }, "Rule14":{ "DirOrFile":"/data/hisi_logs/", "Subcatalog":"\\d{14}-\\d{8}/cp_log/reset.log", "featureId":"03_MODEMCRASH_00,03_MODEM_REBOOTSYS_00", "rules":[ {"namespace":"BasicParam", "matchKey":"brief:", "v_first":"brief:(.*)"}, {"namespace":"BasicParam", "matchKey":"task_name:", "v_second":"task_name:(.*)"}, {"namespace":"BasicParam", "matchKey":"modid:", "v_last":"modid:(.*)"} ] }, "Rule15":{ "DirOrFile":"/data/hisi_logs/", "Subcatalog":"\\d{14}-\\d{8}/ap_log/dmesg-ramoops-0", "featureId":"04_PANIC_00", "rules":[ {"namespace":"BasicParam", "matchKey":"qtp_rsp", "v_cause":"dfx_qic\\]:(.*)", "v_last":"(qtp_rsp.*)"}, {"namespace":"BasicParam", "depend":"BasicParam.v_cause","matchKey":"MID(Master id)", "v_first":"(MID\\(Master id\\).*)"}, {"namespace":"BasicParam", "depend":"BasicParam.v_cause","matchKey":"qic_addr", "v_second":"(qic_addr.*)"} ] }, "Rule16":{ "DirOrFile":"/data/log/faultlog/faultlogger/", "Subcatalog":"syswarning-.*-\\d+-\\d+", "featureId":"63_SYS_WARNING_01", "rules":[ {"namespace":"BasicParam", "matchKey":"Module name:", "v_process":"Module name:(.*)"}, {"namespace":"BasicParam", "matchKey":"PID = ", "v_pid":"PID = (.*)"}, {"namespace":"BasicParam", "matchKey":"TID = ", "v_tid":"TID = (.*)"}, {"namespace":"BasicParam", "matchKey":"timeout: ", "v_timeout":"timeout: (.*)"}, {"namespace":"MainCallTrace", "matchKey":"@R@(Tid:){1}@{BasicParam.v_tid}@", "v_trace":"@T@#\\d+ pc [0-9a-zA-Z]+ (.*)"} ] } }