Program Listing for File query-report.h
↰ Return to documentation for file (include\metrics\query-report.h
)
/******************************************************************************
Copyright (c) 2024 Intel Corporation.
This software and the related documents are Intel copyrighted materials,
and your use of them is governed by the express license under which they
were provided to you ("License"). Unless the License provides otherwise,
you may not use, modify, copy, publish, distribute, disclose or transmit
this software or the related documents without Intel's prior written
permission.
This software and the related documents are provided as is, with no express
or implied warranties, other than those that are expressly stated in the
License.
******************************************************************************/
#pragma once
#include <cstdint>
namespace gpa {
namespace metrics {
struct QueryReportDescription
{
uint32_t flagCount = 0u;
char const** ppFlagSymbolicNameArray = nullptr;
char const** ppFlagDescriptionArray = nullptr;
};
struct QueryReport
{
uint32_t index;
uint64_t flags;
};
struct QueryReportFlagsMasksByType
{
uint64_t contextSwitch = 0;
uint64_t corruptionRecoverable = 0;
uint64_t corruptionUnrecoverable = 0;
uint64_t frequencyChange = 0;
uint64_t warningDebug = 0;
uint64_t warningValues = 0;
};
void QueryReportDescriptionToFlagsMasksByType(
QueryReportDescription const& queryReportDescription,
QueryReportFlagsMasksByType& queryReportFlagsMasksByType) noexcept;
} // namespace metrics
} // namespace gpa