NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release
NvSIPLDeviceBlockTrace.hpp
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2018-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: LicenseRef-NvidiaProprietary
4  *
5  * NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
6  * property and proprietary rights in and to this material, related
7  * documentation and any modifications thereto. Any use, reproduction,
8  * disclosure or distribution of this material and related documentation
9  * without an express license agreement from NVIDIA CORPORATION or
10  * its affiliates is strictly prohibited.
11  */
12 
13 #ifndef NVSIPLDEVBLKTRACE_H
14 #define NVSIPLDEVBLKTRACE_H
15 
16 #include <cstdint>
17 
31 namespace nvsipl
32 {
33 
46 {
47 public:
48 
54  enum class TraceLevel : std::uint8_t
55  {
57  LevelNone = 0,
59  LevelError,
63  LevelInfo,
66  };
67 
68 #if !(NV_IS_SAFETY)
69 
101  static INvSIPLDeviceBlockTrace* GetInstance(void);
102  using TraceFuncPtr = void(*)(const char*, int);
136  virtual void SetHook(TraceFuncPtr traceHook,
137  bool const bCallDefaultRenderer) = 0;
138 
173  virtual void SetLevel(TraceLevel const eLevel) = 0;
174 
205  virtual TraceLevel GetLevel() = 0;
206 
236  virtual void DisableLineInfo(void) = 0;
237 
273  virtual void Trace(TraceLevel eLevel,
274  const char* func,
275  const char* file,
276  int line,
277  const char *pformat,
278  ...) = 0;
279 #endif
280 
281 
282  virtual ~INvSIPLDeviceBlockTrace() = default;
283 
284 protected :
288  INvSIPLDeviceBlockTrace() = default;
289 
294 
299 
304 
309 };
310 
313 } // namespace nvsipl
314 
315 
316 #endif // NVSIPLDEVBLKTRACE_H
nvsipl::INvSIPLDeviceBlockTrace::INvSIPLDeviceBlockTrace
INvSIPLDeviceBlockTrace()=default
Default constructor.
nvsipl::INvSIPLDeviceBlockTrace::operator=
INvSIPLDeviceBlockTrace & operator=(INvSIPLDeviceBlockTrace const &) &=delete
Default INvSIPLDeviceBlockTrace copy assignment operator.
nvsipl::INvSIPLDeviceBlockTrace::TraceLevel::LevelNone
@ LevelNone
Indicates logging is turned off.
nvsipl::INvSIPLDeviceBlockTrace::TraceLevel::LevelInfo
@ LevelInfo
Indicates logging is turned on for information level messages.
nvsipl::INvSIPLDeviceBlockTrace::~INvSIPLDeviceBlockTrace
virtual ~INvSIPLDeviceBlockTrace()=default
(NV_IS_SAFETY)
nvsipl::INvSIPLDeviceBlockTrace::SetHook
virtual void SetHook(TraceFuncPtr traceHook, bool const bCallDefaultRenderer)=0
Sets a callable trace hook.
nvsipl::INvSIPLDeviceBlockTrace::GetLevel
virtual TraceLevel GetLevel()=0
Gets the log level.
nvsipl::INvSIPLDeviceBlockTrace::TraceFuncPtr
void(*)(const char *, int) TraceFuncPtr
Definition: NvSIPLDeviceBlockTrace.hpp:102
nvsipl::INvSIPLDeviceBlockTrace::TraceLevel::LevelError
@ LevelError
Indicates logging is turned on for errors.
nvsipl::INvSIPLDeviceBlockTrace::Trace
virtual void Trace(TraceLevel eLevel, const char *func, const char *file, int line, const char *pformat,...)=0
Log a trace message.
nvsipl::INvSIPLDeviceBlockTrace::DisableLineInfo
virtual void DisableLineInfo(void)=0
Disable line info (FUNCTION : LINE: ) prefix.
void
typedef void(WFD_APIENTRY PFNWFDBINDSOURCETOPIPELINEWITHTIMESTAMPNV)(const WFDDevice device
nvsipl::INvSIPLDeviceBlockTrace::SetLevel
virtual void SetLevel(TraceLevel const eLevel)=0
Sets the log level.
nvsipl::INvSIPLDeviceBlockTrace::TraceLevel
TraceLevel
Defines tracing/logging levels.
Definition: NvSIPLDeviceBlockTrace.hpp:54
nvsipl::INvSIPLDeviceBlockTrace::TraceLevel::LevelWarning
@ LevelWarning
Indicates logging is turned on for critical warnings.
nvsipl::INvSIPLDeviceBlockTrace::TraceLevel::LevelDebug
@ LevelDebug
Indicates logging is turned on for every print statement.
nvsipl::INvSIPLDeviceBlockTrace
Describes the interfaces of NvSIPLDeviceBlockTrace.
Definition: NvSIPLDeviceBlockTrace.hpp:45
nvsipl
Describes the custom interface for IMX623.
Definition: AR0820_CUST1_CustomInterface.hpp:21
nvsipl::INvSIPLDeviceBlockTrace::GetInstance
static INvSIPLDeviceBlockTrace * GetInstance(void)
Gets a handle to INvSIPLDeviceBlockTrace instance.