geopm
3.2.1.dev535+ga96c120fc
GEOPM - Global Extensible Open Power Manager
Loading...
Searching...
No Matches
libgeopm
src
ValidateRecord.hpp
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2015 - 2026 Intel Corporation
3
* SPDX-License-Identifier: BSD-3-Clause
4
*/
5
6
#ifndef VALIDATERECORD_HPP_INCLUDE
7
#define VALIDATERECORD_HPP_INCLUDE
8
9
#include "
ApplicationSampler.hpp
"
10
#include "geopm_time.h"
11
12
namespace
geopm
13
{
18
class
ValidateRecord
19
{
20
public
:
21
ValidateRecord
(
void
);
23
virtual
~ValidateRecord
() =
default
;
28
void
check
(
const
record_s
&record);
29
private
:
30
bool
m_is_empty;
31
geopm_time_s m_time;
32
int
m_process;
33
uint64_t m_epoch_count;
34
uint64_t m_region_hash;
35
};
36
}
37
38
#endif
ApplicationSampler.hpp
geopm::ValidateRecord::check
void check(const record_s &record)
Check that the record is valid and self consistent with previously checked records.
Definition
ValidateRecord.cpp:38
geopm::ValidateRecord::~ValidateRecord
virtual ~ValidateRecord()=default
Default destructor.
geopm::ValidateRecord::ValidateRecord
ValidateRecord(void)
Definition
ValidateRecord.cpp:19
geopm
Definition
Accumulator.cpp:12
geopm::record_s
Record of an application event.
Definition
record.hpp:61
Generated by
1.15.0