DriveWorks SDK Reference
5.20.37 Release
For Test and Development only

TraceConstants.hpp
Go to the documentation of this file.
1
2//
3// Notice
4// ALL NVIDIA DESIGN SPECIFICATIONS AND CODE ("MATERIALS") ARE PROVIDED "AS IS" NVIDIA MAKES
5// NO REPRESENTATIONS, WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO
6// THE MATERIALS, AND EXPRESSLY DISCLAIMS ANY IMPLIED WARRANTIES OF NONINFRINGEMENT,
7// MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
8//
9// NVIDIA CORPORATION & AFFILIATES assumes no responsibility for the consequences of use of such
10// information or for any infringement of patents or other rights of third parties that may
11// result from its use. No license is granted by implication or otherwise under any patent
12// or patent rights of NVIDIA CORPORATION & AFFILIATES. No third party distribution is allowed unless
13// expressly authorized by NVIDIA. Details are subject to change without notice.
14// This code supersedes and replaces all information previously supplied.
15// NVIDIA CORPORATION & AFFILIATES products are not authorized for use as critical
16// components in life support devices or systems without express written approval of
17// NVIDIA CORPORATION & AFFILIATES.
18//
19// SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
20// SPDX-License-Identifier: LicenseRef-NvidiaProprietary
21//
22// NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
23// property and proprietary rights in and to this material, related
24// documentation and any modifications thereto. Any use, reproduction,
25// disclosure or distribution of this material and related documentation
26// without an express license agreement from NVIDIA CORPORATION or
27// its affiliates is strictly prohibited.
28//
30
31#ifndef DWTRACE_TRACE_CONSTANTS_HPP_
32#define DWTRACE_TRACE_CONSTANTS_HPP_
33
34#include <cstdint>
35#include <cstddef>
36#include <dwshared/dwfoundation/dw/core/container/BaseString.hpp>
37
38namespace dw
39{
40namespace trace
41{
42
43static constexpr uint32_t DW_TRACE_MAX_NUM_EVENTS_PER_CHAN{(20 * 1024)};
44static constexpr uint32_t DW_TRACE_MAX_TAG_SIZE{256U};
45static constexpr uint32_t DW_TRACE_MAX_PAYLOAD_SIZE{64U};
46static constexpr uint32_t DW_TRACE_SUCCESS{0U};
47static constexpr uint64_t DW_TRACE_CHAN_MASK_NONE{0};
48static constexpr uint64_t DW_TRACE_CHAN_ENABLE_ALL{(0xFFFFFFFF)};
49static constexpr char8_t const* DW_TRACE_STR_TAG{"[TRACE]: "};
50
58static constexpr size_t DW_TRACE_MAX_CUDA_EVENTS{425};
59
63static constexpr uint32_t DW_TRACE_FLUSH_INTERVAL_DEFAULT{5500};
64
69static constexpr uint32_t DW_TRACE_MAX_FILE_SIZE_MB{8192};
70
78// coverity[autosar_cpp14_a8_5_2_violation] FP: nvbugs/3904083
79static const auto DW_TRACE_CHAN_MASK = [](uint32_t const idx) { return (1U << idx); };
80
81} // namespace trace
82} // namespace dw
83
84#endif
static constexpr uint64_t DW_TRACE_CHAN_ENABLE_ALL
static constexpr uint64_t DW_TRACE_CHAN_MASK_NONE
static constexpr uint32_t DW_TRACE_FLUSH_INTERVAL_DEFAULT
Default number of channel traces before flush.
static constexpr size_t DW_TRACE_MAX_CUDA_EVENTS
Cuda events are required for measuring execution time on GPU/DLA.
static constexpr uint32_t DW_TRACE_MAX_PAYLOAD_SIZE
static constexpr uint32_t DW_TRACE_MAX_NUM_EVENTS_PER_CHAN
static constexpr char8_t const * DW_TRACE_STR_TAG
static constexpr uint32_t DW_TRACE_MAX_FILE_SIZE_MB
Default Max file size of generate DWTrace in MBs.
static constexpr uint32_t DW_TRACE_SUCCESS
static constexpr uint32_t DW_TRACE_MAX_TAG_SIZE
static const auto DW_TRACE_CHAN_MASK
DWTrace header type are used for indicating the type of trace being added.