• 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+",
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:(.*)"},
49            {"namespace":"BasicParam", "matchKey":"PID = ", "v_pid":"PID = (.*)"},
50            {"namespace":"MainCallTrace", "matchKey":"@R@(Tid:){1}@{BasicParam.v_pid}@", "v_trace":"@T@#\\d+ pc [0-9a-zA-Z]+ (.*)"}
51        ]
52    },
53    "Rule6":{
54        "DirOrFile":"/data/hisi_logs/",
55        "Subcatalog":"\\d{14}-\\d{8}/ap_log/dmesg-ramoops-0",
56        "featureId":"04_PANIC_01",
57        "segmentType":"OneLayer",
58        "startSeg":["NocTrace.v_cpu"],
59        "segStack":["[0-9a-zA-Z_.]+\\+0x[0-9a-f]+/0x[0-9a-f]+(.*)", "el1_irq+0"],
60        "rules":[
61            {"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)"},
62            {"namespace":"BasicParam", "depend":"BasicParam.v_pname", "matchKey":"PC is at ", "v_f1":"PC is at ([^\\+ ]+.*)"},
63            {"namespace":"NocTrace", "depend":"BasicParam.v_noc", "matchKey":"err_code=", "v_errcode":"\\[(err_code=\\d+)\\]"},
64            {"namespace":"NocTrace", "depend":"BasicParam.v_noc", "matchKey":"init_flow=", "v_master":"\\[init_flow=\\d+\\]: (.*)"},
65            {"namespace":"NocTrace", "depend":"BasicParam.v_noc", "matchKey":"target_flow=", "v_slave":"\\[target_flow=\\d+\\]: (.*)"},
66            {"namespace":"NocTrace", "depend":"BasicParam.v_noc", "matchKey":"adjusted ADDR", "v_address":"adjusted.* = (.*)"},
67            {"namespace":"NocTrace", "depend":"BasicParam.v_noc", "matchKey":"USER_SIGNAL =", "v_user_signal":"USER_SIGNAL = 0x[0-9a-z]+ (.*)", "v_cpu":"\\(MID: AP_CPU(\\d+)"},
68            {"namespace":"NocTrace", "depend":"BasicParam.v_noc", "matchKey":"sec_val =", "v_security":"(sec_val = 0x[0-9a-f]+)"},
69            {"namespace":"MainCallTrace", "depend":"BasicParam", "matchKey":"Call trace:", "v_trace":"@T@[0-9a-zA-Z_.]+\\+0x[0-9a-f]+/0x[0-9a-f]+(.*)"}
70        ],
71        "segmentRule":[
72            {"namespace":"LayerOneCmd", "matchKey":"]:CPU@&@: stopping", "num":1, "v_id":"\\]:CPU(\\d+): stopping", "v_name":"\\]:(CPU\\d+): stopping"}
73        ]
74    },
75    "Rule7":{
76        "DirOrFile":"/data/bbox_logs/",
77        "Subcatalog":"\\d{14}-\\d{8}/ap_log/dmesg-ramoops-0",
78        "featureId":"04_HWWATCHDOG_00",
79        "rules":[
80            {"namespace":"BasicParam", "matchKey":"sysrq: Trigger a crash", "v_fiq":"(.*)"},
81            {"namespace":"BasicParam", "depend":"BasicParam.v_fiq","matchKey":"PC is at ", "v_f1":"PC is at ([^\\+ ]+.*)", "v_pname":"cpu[0-9],(.*?)[,:\\]]"},
82            {"namespace":"MainCallTrace", "depend":"BasicParam.v_fiq", "matchKey":"Call trace:", "v_trace":"@T@[0-9a-zA-Z_]+\\+0x[0-9a-f]+/0x[0-9a-f]+(.*)"}
83        ]
84    },
85    "Rule8":{
86        "DirOrFile":"/data/log/faultlog/faultlogger/",
87        "Subcatalog":"rustpanic-.*-\\d+-\\d+",
88        "featureId":"04_RUST_PANIC_00",
89        "rules":[
90            {"namespace":"BasicParam", "matchKey":"Module name:", "v_pname":"Module name:(.*)"},
91            {"namespace":"MainCallTrace", "matchKey":"Thread name:", "v_trace":"@T@#\\d+ pc [0-9a-zA-Z]+ (.*)"}
92        ]
93    }
94}
95