1# Copyright (c) 2022 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14domain: SAMGR
15
16SA_MAIN_EXIT:
17  __BASE: {type: FAULT, level: CRITICAL, desc: sa main abnormal exit}
18  REASON: {type: STRING, desc: sa main abnormal exit reason}
19
20PROCESS_STOP_DURATION:
21  __BASE: {type: BEHAVIOR, level: CRITICAL, desc: ondemand process stop time cost}
22  PROCESS_NAME: {type: STRING, desc: process name}
23  PID: {type: INT32, desc: caller pid}
24  UID: {type: INT32, desc: caller uid}
25  DURATION: {type: INT64, desc: process stop time cost}
26
27PROCESS_START_DURATION:
28  __BASE: {type: BEHAVIOR, level: CRITICAL, desc: ondemand process start time cost}
29  PROCESS_NAME: {type: STRING, desc: process name}
30  PID: {type: INT32, desc: caller pid}
31  UID: {type: INT32, desc: caller uid}
32  DURATION: {type: INT64, desc: process start time cost}
33
34PROCESS_STOP_FAIL:
35  __BASE: {type: FAULT, level: CRITICAL, desc: ondemand process stop failed event}
36  PROCESS_NAME: {type: STRING, desc: process name}
37  PID: {type: INT32, desc: caller pid}
38  UID: {type: INT32, desc: caller uid}
39  REASON: {type: STRING, desc: process stop fail reason}
40
41PROCESS_START_FAIL:
42  __BASE: {type: FAULT, level: CRITICAL, desc: ondemand process start failed event}
43  PROCESS_NAME: {type: STRING, desc: process name}
44  PID: {type: INT32, desc: caller pid}
45  UID: {type: INT32, desc: caller uid}
46  REASON: {type: STRING, desc: process start fail reason}
47
48SA_CRASH:
49  __BASE: {type: FAULT, level: CRITICAL, desc: sa crash}
50  SAID: {type: INT32, desc: system ability id}
51
52SA_LOAD_DURATION:
53  __BASE: {type: BEHAVIOR, level: CRITICAL, desc: samgr sa load time cost}
54  SAID: {type: INT32, desc: system ability id}
55  KEY_STAGE: {type: INT32, desc: load sa key stage}
56  DURATION: {type: INT64, desc: time cost}
57
58SA_UNLOAD_DURATION:
59  __BASE: {type: BEHAVIOR, level: CRITICAL, desc: samgr sa unload time cost}
60  SAID: {type: INT32, desc: system ability id}
61  KEY_STAGE: {type: INT32, desc: unload sa key stage}
62  DURATION: {type: INT64, desc: time cost}
63
64SA_UNLOAD_FAIL:
65  __BASE: {type: FAULT, level: CRITICAL, desc: samgr sa unload failed event}
66  SAID: {type: INT32, desc: system ability id}
67  PID: {type: INT32, desc: caller pid}
68  UID: {type: INT32, desc: caller uid}
69  REASON: {type: STRING, desc: fail reason}
70
71ONDEMAND_SA_LOAD_FAIL:
72  __BASE: {type: FAULT, level: CRITICAL, desc: samgr sa load failed event}
73  SAID: {type: INT32, desc: system ability id}
74  PID: {type: INT32, desc: caller pid}
75  UID: {type: INT32, desc: caller uid}
76  REASON: {type: STRING, desc: fail reason}
77
78ONDEMAND_SA_LOAD:
79  __BASE: {type: BEHAVIOR, level: CRITICAL, desc: samgr sa load event}
80  SAID: {type: INT32, desc: system ability id}
81  PID: {type: INT32, desc: caller pid}
82  UID: {type: INT32, desc: caller uid}
83  EVENT: {type: INT32, desc: load event id}
84
85ONDEMAND_SA_UNLOAD:
86  __BASE: {type: BEHAVIOR, level: CRITICAL, desc: samgr sa unload event}
87  SAID: {type: INT32, desc: system ability id}
88  PID: {type: INT32, desc: caller pid}
89  UID: {type: INT32, desc: caller uid}
90  EVENT: {type: INT32, desc: unload event id}
91
92GETSA_FREQUENCY:
93  __BASE: {type: STATISTIC, level: CRITICAL, desc: get system ability times event}
94  CALLER_UID: {type: UINT32, desc: caller uid}
95  SAID: {type: UINT32, desc: system ability id}
96  COUNT: {type: INT32, desc: the caller process get sa count}
97
98ADD_SYSTEMABILITY_FAIL:
99  __BASE: {type: FAULT, level: CRITICAL, desc: add system ability failed event}
100  SAID: {type: INT32, desc: system ability id}
101  PID: {type: INT32, desc: caller pid}
102  UID: {type: INT32, desc: caller uid}
103  FILE_NAME: {type: STRING, desc: file name}
104
105SERVICE_BLOCK:
106  __BASE: {type: FAULT, level: CRITICAL, desc: workhander watchdog block}
107  PID: {type: INT32, desc: caller pid}
108  UID: {type: UINT32, desc: caller uid}
109  MSG: {type: STRING, desc: time msg}