1 /*
2 * Copyright (c) 2022 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16 #include "dslm_bigdata.h"
17 #include "dslm_hidumper.h"
18 #include "dslm_hitrace.h"
19
20 #include <stdio.h>
21
22 #include "inttypes.h"
23
24 #include "utils_log.h"
25
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29
30 #define END_LINE "\n"
31
32 // bigdata
ReportServiceStartFailedEvent(const uint32_t errorType)33 __attribute__((weak)) void ReportServiceStartFailedEvent(const uint32_t errorType)
34 {
35 }
36
ReportInitSelfFailedEvent(const char * errorString)37 __attribute__((weak)) void ReportInitSelfFailedEvent(const char *errorString)
38 {
39 }
40
ReportAppInvokeEvent(const AppInvokeEvent * event)41 __attribute__((weak)) void ReportAppInvokeEvent(const AppInvokeEvent *event)
42 {
43 }
44
ReportSecurityInfoSyncEvent(const SecurityInfoSyncEvent * event)45 __attribute__((weak)) void ReportSecurityInfoSyncEvent(const SecurityInfoSyncEvent *event)
46 {
47 }
48
49 // dslm_hidumper
DslmDumper(int fd)50 __attribute__((weak)) void DslmDumper(int fd)
51 {
52 }
53
54 // hitrace
DslmStartProcessTrace(const char * value)55 __attribute__((weak)) void DslmStartProcessTrace(const char *value)
56 {
57 }
58
DslmStartStateMachineTrace(uint32_t machineId,uint32_t event)59 __attribute__((weak)) void DslmStartStateMachineTrace(uint32_t machineId, uint32_t event)
60 {
61 }
62
DslmFinishProcessTrace(void)63 __attribute__((weak)) void DslmFinishProcessTrace(void)
64 {
65 }
66
DslmStartProcessTraceAsync(const char * value,uint32_t owner,uint32_t cookie)67 __attribute__((weak)) void DslmStartProcessTraceAsync(const char *value, uint32_t owner, uint32_t cookie)
68 {
69 }
70
DslmFinishProcessTraceAsync(const char * value,uint32_t owner,uint32_t cookie)71 __attribute__((weak)) void DslmFinishProcessTraceAsync(const char *value, uint32_t owner, uint32_t cookie)
72 {
73 }
74
DslmCountTrace(const char * name,int64_t count)75 __attribute__((weak)) void DslmCountTrace(const char *name, int64_t count)
76 {
77 }
78
79 #ifdef __cplusplus
80 }
81 #endif
82