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 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: DISTHWFWK 41 42DHFWK_INIT_BEGIN: 43 __BASE: {type: BEHAVIOR, level: CRITICAL, desc: dhfwk sa start on demand and init} 44 MSG: {type: STRING, desc: dhfwk sa start init} 45 46DHFWK_INIT_END: 47 __BASE: {type: BEHAVIOR, level: CRITICAL, desc: dhfwk sa init end} 48 MSG: {type: STRING, desc: dhfwk sa init end} 49 50DHFWK_INIT_FAIL: 51 __BASE: {type: FAULT, level: CRITICAL, desc: dhfwk sa init failed} 52 ERR_CODE: {type: INT32, desc: dhfwk sa init failed result} 53 ERR_MSG: {type: STRING, desc: dhfwk sa init failed} 54 55DHFWK_EXIT_BEGIN: 56 __BASE: {type: BEHAVIOR, level: CRITICAL, desc: dhfwk sa start exit on demand} 57 MSG: {type: STRING, desc: dhfwk sa stop} 58 59DHFWK_EXIT_END: 60 __BASE: {type: BEHAVIOR, level: CRITICAL, desc: dhfwk sa finish exit on demand} 61 MSG: {type: STRING, desc: dhfwk sa stop} 62 63DHFWK_RELEASE_FAIL: 64 __BASE: {type: FAULT, level: CRITICAL, desc: dhfwk component dlclose failed} 65 DHTYPE: {type: STRING, desc: the dhardware module which release fail} 66 ERR_CODE: {type: INT32, desc: dlclose failed result} 67 ERR_MSG: {type: STRING, desc: dhfwk component dlclose failed} 68 69DHFWK_DEV_OFFLINE: 70 __BASE: {type: BEHAVIOR, level: CRITICAL, desc: dhfwk create disable task} 71 NETWORKID: {type: STRING, desc: network id} 72 MSG: {type: STRING, desc: dhfwk create disable task} 73 74DHFWK_DH_REGISTER_FAIL: 75 __BASE: {type: FAULT, level: CRITICAL, desc: dhfwk distributed hardware enable failed} 76 DHID: {type: STRING, desc: component id} 77 ERR_CODE: {type: INT32, desc: dhfwk distributed hardware enable failed result} 78 ERR_MSG: {type: STRING, desc: dhfwk distributed hardware enable failed} 79 80DHFWK_DH_UNREGISTER_FAIL: 81 __BASE: {type: FAULT, level: CRITICAL, desc: dhfwk distributed hardware disable failed} 82 DHID: {type: STRING, desc: component id} 83 ERR_CODE: {type: INT32, desc: dhfwk distributed hardware disable result} 84 ERR_MSG: {type: STRING, desc: dhfwk distributed hardware disable failed} 85