|
NVIDIA DriveOS Linux NSR SDK API Reference
|
7.0.3.0 Release
|
Go to the documentation of this file.
11 #ifndef INCLUDED_NVOS_S3_LOG_H
12 #define INCLUDED_NVOS_S3_LOG_H
16 #include "qnx/nvos_log_codes.h"
17 #include "qnx/nvos_tegra_log_defs.h"
18 #elif defined(__linux__) || defined (_MSC_VER)
19 #include "linux/nvos_log_codes.h"
20 #include "linux/nvos_tegra_log_defs.h"
22 #include "../../core-hos/include/hos/nvos_log_codes.h"
23 #include "../../core-hos/include/hos/nvos_tegra_log_defs.h"
28 #if defined(__cplusplus)
35 #define NvBoolTrue ((NvBoolVar)0xBABAFACEU)
40 #define NvBoolFalse ((NvBoolVar)0x45450531U)
44 #define NVOS_LOG_BUF_SZ_DEFAULT (28U)
47 #define NVOS_LOG_BUF_SZ_MIN (4U)
50 #define NVOS_LOG_BUF_SZ_MAX (256U)
639 #if defined(__cplusplus)
void NvOsDebugPrintStrWith2SLong(uint16_t module_id, uint8_t severity, const char *str, int64_t value1, int64_t value2)
This function logs a string with two int64_t values in a log buffer.
void NvOsDebugPrintStrWith2HexULong(uint16_t module_id, uint8_t severity, const char *str, uint64_t val1, uint64_t val2)
This function logs a string and two uint64_t values in hexadecimal to a log buffer.
void NvOsDebugPrintStrUInt(uint16_t module_id, uint8_t severity, const char *str, uint32_t val)
This function logs a string and an uint32_t value in a log buffer.
void NvOsDebugPrintStrSLong(uint16_t module_id, uint8_t severity, const char *str, int64_t val)
This function logs a string and int64_t value in a log buffer.
void NvOsDebugPrintStrULong(uint16_t module_id, uint8_t severity, const char *str, uint64_t val)
This function logs a string and uint64_t value in a log buffer.
uint32_t NvOsIsLoggingReady(void)
Checks if logging via NvOS is available.
void NvOsDebugPrintStrWith2ULong(uint16_t module_id, uint8_t severity, const char *str, uint64_t value1, uint64_t value2)
This function logs a string with two uint64_t values in a log buffer.
void NvOsDebugPrintStrWith2Int(uint16_t module_id, uint8_t severity, const char *str, int32_t value1, int32_t value2)
This function logs a string with two int32_t values in a log buffer.
uint32_t NvOsInitializeLogging(const int32_t verbosity, const int32_t buf_size)
Initialize logging for a client.
void NvOsDebugPrintStrHexUInt(uint16_t module_id, uint8_t severity, const char *str, uint32_t val)
This function logs a string and unsigned int value in hexadecimal to a log buffer.
void NvOsDebugPrintStr(uint16_t module_id, uint8_t severity, const char *str)
This function logs a string in a log buffer.
void NvOsDebugPrintStrDouble(uint16_t module_id, uint8_t severity, const char *str, double val)
This function logs a string and a double value to a log buffer.
void NvOsDebugPrintStrHexULong(uint16_t module_id, uint8_t severity, const char *str, uint64_t val)
This function logs a string and uint64_t value in hexadecimal to a log buffer.
void NvOsDebugPrintStrWith2Double(uint16_t module_id, uint8_t severity, const char *str, double val1, double val2)
This function logs a string and two double values to a log buffer.
void NvOsDebugPrintStrWith2Float(uint16_t module_id, uint8_t severity, const char *str, float val1, float val2)
This function logs a string and two float values to a log buffer.
void NvOsDebugPrintStrInt(uint16_t module_id, uint8_t severity, const char *str, int32_t val)
This function logs a string and int32_t value in a log buffer.
void NvOsDebugPrintStrFloat(uint16_t module_id, uint8_t severity, const char *str, float val)
This function logs a string and float value to a log buffer.
void NvOsDebugPrintStrStr(uint16_t module_id, uint8_t severity, const char *str1, const char *str2)
This function logs two different strings in a log buffer.
void NvOsDebugPrintStrWith2UInt(uint16_t module_id, uint8_t severity, const char *str, uint32_t value1, uint32_t value2)
This function logs a string with two uint32_t values in a log buffer.