• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#  Copyright (c) 2021 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
14#####################################################
15#     below is the format of defining event         #
16#####################################################
17#domain: domain name.  [Only one domain name can be defined at the top]
18#
19#author: the author name who defined this event.
20#date: the date when this event was defined, format is YYYY-MM-DD.
21#logged: source file which refer to this event.
22#usage: the usage of this event.
23#//Define event name and event properties.
24#@EVENT_NAME: the event definition part begin.
25#  // __BASE is used for defining the basic info of the event.
26#  // "type" optional values are: FAULT, STATISTICS, SECURITY, BEHAVIOR.
27#  // "level" optional values are: CRITICAL, MINOR.
28#  // "tag" set tags with may used by subscriber of this event, multiple tags devided by space.
29#  // "desc" full description of this event.
30#  @PARAMETER: {type: parameter type, arrsize: array length(optional), desc: parameter description}.
31#  // follow the __BASE block, each line defines a parameter of this event.
32#  // "type" optional values are: INT8, UINT8, INT16, UINT16, INT32, UINT32, INT64, UINT64, FLOAT, DOUBLE, STRING.
33#  // "arrsize" of the parameter is an array, set a non-zero value.
34#  // "desc" full description of this parameter.
35
36#####################################################
37#   Example of some hiviewdfx events definition     #
38#####################################################
39
40domain: MULTIMODALINPUT
41
42APPLICATION_BLOCK_INPUT:
43  __BASE: {type: FAULT, level: CRITICAL, desc: The event is not consumed }
44  PID: {type: INT32, desc: session pid}
45  UID: {type: INT32, desc: session uid}
46  PACKAGE_NAME: {type: STRING, desc: package name}
47  PROCESS_NAME: {type: STRING, desc: process name}
48  MSG: {type: STRING, desc: multimodalinput event message}
49
50INPUT_DEV_CONNECTION_SUCCESS:
51  __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: input device connection success}
52  DEVICE_ID: {type: INT32, desc: device id}
53  DEVICE_PHYS: {type: STRING, desc: device physics}
54  DEVICE_NAME: {type: STRING, desc: device name}
55  DEVICE_TYPE: {type: INT32, desc: device type}
56  MSG: {type: STRING, desc: message}
57
58INPUT_DEV_CONNECTION_FAILURE:
59  __BASE: {type: FAULT, level: MINOR, tag: PowerStats, desc: input device connection failure}
60  DEVICE_ID: {type: INT32, desc: device id}
61  DEVICE_PHYS: {type: STRING, desc: device physics}
62  DEVICE_NAME: {type: STRING, desc: device name}
63  DEVICE_TYPE: {type: INT32, desc: device type}
64  MSG: {type: STRING, desc: message}
65
66INPUT_DEV_DISCONNECTION_SUCCESS:
67  __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: input device disconnection success}
68  DEVICE_ID: {type: INT32, desc: device id}
69  DEVICE_PHYS: {type: STRING, desc: device physics}
70  DEVICE_NAME: {type: STRING, desc: device name}
71  DEVICE_TYPE: {type: INT32, desc: device type}
72  MSG: {type: STRING, desc: message}
73
74INPUT_DEV_DISCONNECTION_FAILURE:
75  __BASE: {type: FAULT, level: MINOR, tag: PowerStats, desc: input device disconnection failure}
76  MSG: {type: STRING, desc: message}
77
78CLIENT_CONNECTION_SUCCESS:
79  __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: client connection event success}
80  PID: {type: INT32, desc: pid}
81  UID: {type: INT32, desc: uid}
82  MODULE_TYPE: {type: INT32, desc: module type}
83  FD: {type: INT32, desc: server fd}
84  PROGRAMNAME: {type: STRING, desc: program name}
85  MSG: {type: STRING, desc: message}
86
87CLIENT_CONNECTION_FAILURE:
88  __BASE: {type: FAULT, level: MINOR, tag: PowerStats, desc: client connection event failure}
89  PID: {type: INT32, desc: pid}
90  UID: {type: INT32, desc: uid}
91  MODULE_TYPE: {type: INT32, desc: module type}
92  PROGRAMNAME: {type: STRING, desc: program name}
93  MSG: {type: STRING, desc: message}
94
95CLIENT_DISCONNECTION_SUCCESS:
96  __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: client disconnection event success}
97  PID: {type: INT32, desc: pid}
98  UID: {type: INT32, desc: uid}
99  MODULE_TYPE: {type: INT32, desc: module type}
100  FD: {type: INT32, desc: server fd}
101  PROGRAMNAME: {type: STRING, desc: program name}
102  MSG: {type: STRING, desc: message}
103
104CLIENT_DISCONNECTION_FAILURE:
105  __BASE: {type: FAULT, level: MINOR, tag: PowerStats, desc: client disconnection event failure}
106  MSG: {type: STRING, desc: message}
107
108TARGET_POINTER_EVENT_SUCCESS:
109  __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: target pointer event success}
110  EVENTTYPE: {type: INT32, desc: event type}
111  AGENT_WINDOWID: {type: INT32, desc: agent windowid}
112  TARGET_WINDOWID: {type: INT32, desc: target windowid}
113  PID: {type: INT32, desc: pid}
114  FD: {type: INT32, desc: target fd}
115  MSG: {type: STRING, desc: message}
116
117TARGET_POINTER_EVENT_FAILURE:
118  __BASE: {type: FAULT, level: MINOR, tag: PowerStats, desc: target pointer event failure}
119  EVENTTYPE: {type: INT32, desc: event type}
120  MSG: {type: STRING, desc: message}
121
122TARGET_KEY_EVENT_SUCCESS:
123  __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: target key event success}
124  EVENTTYPE: {type: INT32, desc: event type}
125  KEYCODE: {type: INT32, desc: keycode}
126  ACTION: {type: INT32, desc: action}
127  ACTION_TIME: {type: UINT64, desc: action time}
128  ACTION_STARTTIME: {type: UINT64, desc: action start time}
129  FLAG: {type: INT32, desc: flag}
130  KEYACTION: {type: INT32, desc: keyaction}
131  FD: {type: INT32, desc: target fd}
132  AGENT_WINDOWID: {type: INT32, desc: agent windowid}
133  TARGET_WINDOWID: {type: INT32, desc: target windowid}
134  PID: {type: INT32, desc: pid}
135  MSG: {type: STRING, desc: message}
136
137TARGET_KEY_EVENT_FAILURE:
138  __BASE: {type: FAULT, level: MINOR, tag: PowerStats, desc: target key event failure}
139  EVENTTYPE: {type: INT32, desc: event type}
140  KEYCODE: {type: INT32, desc: keycode}
141  ACTION: {type: INT32, desc: action}
142  ACTION_TIME: {type: UINT64, desc: action time}
143  ACTION_STARTTIME: {type: UINT64, desc: action start time}
144  FLAG: {type: INT32, desc: flag}
145  KEYACTION: {type: INT32, desc: keyaction}
146  MSG: {type: STRING, desc: message}
147
148FOCUS_WINDOW_CHANGE:
149  __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: foucs window change}
150  OLD_FOCUS_WINDOWID: {type: INT32, desc: old focus windowid}
151  NEW_FOCUS_WINDOWID: {type: INT32, desc: new focus windowid}
152  OLD_FOCUS_WINDOWPID: {type: INT32, desc: old focus windowpid}
153  NEW_FOCUS_WINDOWPID: {type: INT32, desc: new focus windowpid}
154  MSG: {type: STRING, desc: message}
155
156Z_ORDER_WINDOW_CHANGE:
157  __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: zorder window change}
158  OLD_ZORDER_FIRST_WINDOWID: {type: INT32, desc: old zorder first windowid}
159  NEW_ZORDER_FIRST_WINDOWID: {type: INT32, desc: new zorder first windowid}
160  OLD_ZORDER_FIRST_WINDOWPID: {type: INT32, desc: old zorder first windowpid}
161  NEW_ZORDER_FIRST_WINDOWPID: {type: INT32, desc: new zorder first windowpid}
162  MSG: {type: STRING, desc: message}
163
164INPUT_DISPATCH_TIME:
165  __BASE: {type: STATISTIC, level: MINOR, desc: input dispatch time}
166  BELOW10MS: {type: UINT32, desc: times below 10ms}
167  BELOW25MS: {type: UINT32, desc: times below 25ms}
168  BELOW50MS: {type: UINT32, desc: times below 50ms}
169  ABOVE50MS: {type: UINT32, desc: times above 50ms}
170  MSG: {type: STRING, desc: message}
171
172COMBO_START_TIME:
173  __BASE: {type: STATISTIC, level: MINOR, desc: combo start time}
174  BELOW10MS: {type: UINT32, desc: times below 10ms}
175  BELOW30MS: {type: UINT32, desc: times below 30ms}
176  BELOW50MS: {type: UINT32, desc: times below 50ms}
177  ABOVE50MS: {type: UINT32, desc: times above 50ms}
178  MSG: {type: STRING, desc: message}
179