2 * @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 * @file ss_error_event_common.h
19 * @brief This file supports SM logging.
22 /** @addtogroup BaseSystem
25 /** @addtogroup system_service
29 /** @addtogroup interface_unified
30 * @ingroup system_service
34 #ifndef __SS_ERROR_EVENT_COMMON_H__ // NOLINT (build/header_guard)
35 #define __SS_ERROR_EVENT_COMMON_H__
37 #include <native_service/frameworkunified_types.h> // added for test build
40 // Do not change enumeration order.
41 // HMI hard codes error event square
42 // colors based on expected enum order.
43 enum EErrorEventType {
44 eErrorEventTypeProcessCrash = 0,
45 eErrorEventTypeHeartBeatFailure,
46 eErrorEventTypeSystemLowMemory,
47 eErrorEventTypeReserved1, // Formerly SS_SM_EVENT_ERROR_HIGH_CPU_LOAD, now HMI enum place holder.
48 eErrorEventTypeUserInvokedUserForceReset,
49 eErrorEventTypeReserved2,
50 eErrorEventTypeReserved3,
51 eErrorEventTypeUserInvokedCollectAllLogs,
52 eErrorEventTypeBootMicroReset,
53 eErrorEventTypeProcessExit,
54 eErrorEventTypeUserInvokedCollectScreenShot,
55 eErrorEventTypeUserInvokedCollectInterfaceunifiedLogs,
56 eErrorEventTypeEelExport,
57 eErrorEventTypeInterfaceunifiedEmmcLogs,
58 eErrorEventTypeDiagEvent,
59 eErrorEventTypeCanEvent,
60 eErrorEventTypeDtcEvent,
61 eErrorEventTypeModConnFailed,
62 eErrorEventTypeStartRespFailed,
63 eErrorEventTypeUserInvokedCollectDevLogs,
64 eErrorEventTypeModuleInvokedResetRequest,
65 eErrorEventTypeModuleInvokedCollectDebugLogs,
66 eErrorEventTypeUserInvokedClearLogs,
67 eErrorEventTypeUserInvokedCollectNaviLog,
68 eErrorEventTypeGroupRelaunch,
69 eErrorEventTypeMaxValue
72 /* Value range of EArtifactId must be defined within 32, */
73 /* because of it's definition is used by 4byte bitmask. */
75 eArtifactIdInterfaceunifiedDebugLog = 0,
76 eArtifactIdTransmitLog,
77 eArtifactIdPerformanceLog,
78 eArtifactIdBootMicroLog,
79 eArtifactIdSystemDataCsv,
80 eArtifactIdShowMemTxt, // << ID 5
81 eArtifactIdProcessCore,
82 eArtifactIdDebugDumpLog,
84 eArtifactIdDRInitialLog,
85 eArtifactIdDRLocationLog, // << ID 10
86 eArtifactIdCpuHighLoadMonteCarloLogs,
87 eArtifactIdMetaCoreLogs,
89 eArtifactIDInternalDTC,
90 eArtifactIdComDebugLog, // << ID 15
91 eArtifactIdKernelBootLog,
93 eArtifactIdClearAllLog,
95 eArtifactIdScreenShot, // These three Log entries have to remain
96 eArtifactIdDebugFolder2Content, // at the end of the list
97 eArtifactIdDebugFolderContent,
98 eArtifactIdMaxValue // << 23
101 struct ARTIFACT_RESPONSE {
102 EArtifactId ArtifactId;
103 CHAR FilePathAndName[MAX_PATH_LENGTH];
107 #endif /* __SS_ERROR_EVENT_COMMON_H___ */ // NOLINT (build/header_guard)