• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /**
2  * Copyright (c) 2021-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 <cstdint>
17 #include "macros.h"
18 #include "utils/logger.h"
19 
20 namespace panda::trace::internal {
21 
22 int g_trace_marker_fd = -1;
23 
DoInit()24 bool DoInit()
25 {
26     LOG(ERROR, TRACE) << "Tracing not implemented for this platform.";
27     return false;
28 }
29 
DoBeginTracePoint(const char * str)30 void DoBeginTracePoint([[maybe_unused]] const char *str)
31 {
32     UNREACHABLE();
33 }
34 
DoEndTracePoint()35 void DoEndTracePoint()
36 {
37     UNREACHABLE();
38 }
39 
DoIntTracePoint(const char * str,int32_t val)40 void DoIntTracePoint([[maybe_unused]] const char *str, [[maybe_unused]] int32_t val)
41 {
42     UNREACHABLE();
43 }
44 
DoInt64TracePoint(const char * str,int64_t val)45 void DoInt64TracePoint([[maybe_unused]] const char *str, [[maybe_unused]] int64_t val)
46 {
47     UNREACHABLE();
48 }
49 
50 }  // end namespace panda::trace::internal
51