geopm 3.1.1.dev456+g3ba31824
GEOPM - Global Extensible Open Power Manager
Loading...
Searching...
No Matches
geopm_hint.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2015 - 2024 Intel Corporation
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6#ifndef GEOPM_HINT_H_INCLUDE
7#define GEOPM_HINT_H_INCLUDE
8#include <stdint.h>
9
10#include "geopm_public.h"
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16/****************************/
17/* APPLICATION REGION HINTS */
18/****************************/
20 GEOPM_REGION_HINT_UNSET = 0ULL, /* For clearing hints */
21 GEOPM_REGION_HINT_UNKNOWN, /* Region with unknown or varying characteristics */
22 GEOPM_REGION_HINT_COMPUTE, /* Region dominated by compute */
23 GEOPM_REGION_HINT_MEMORY, /* Region dominated by memory access */
24 GEOPM_REGION_HINT_NETWORK, /* Region dominated by network traffic */
25 GEOPM_REGION_HINT_IO, /* Region dominated by disk access */
26 GEOPM_REGION_HINT_SERIAL, /* Single threaded region */
27 GEOPM_REGION_HINT_PARALLEL, /* Region is threaded */
28 GEOPM_REGION_HINT_IGNORE, /* Do not add region time to epoch */
29 GEOPM_REGION_HINT_INACTIVE, /* Used to mark CPUs that are not running application */
30 GEOPM_REGION_HINT_SPIN, /* Region dominated by spin wait */
32};
33
34#ifdef __cplusplus
35}
36
37namespace geopm {
39 void GEOPM_PUBLIC
40 check_hint(uint64_t hint);
41}
42#endif
43
44#endif
geopm_region_hint_e
Definition geopm_hint.h:19
@ GEOPM_REGION_HINT_MEMORY
Definition geopm_hint.h:23
@ GEOPM_REGION_HINT_SERIAL
Definition geopm_hint.h:26
@ GEOPM_REGION_HINT_SPIN
Definition geopm_hint.h:30
@ GEOPM_REGION_HINT_NETWORK
Definition geopm_hint.h:24
@ GEOPM_REGION_HINT_COMPUTE
Definition geopm_hint.h:22
@ GEOPM_REGION_HINT_IGNORE
Definition geopm_hint.h:28
@ GEOPM_REGION_HINT_UNKNOWN
Definition geopm_hint.h:21
@ GEOPM_REGION_HINT_INACTIVE
Definition geopm_hint.h:29
@ GEOPM_REGION_HINT_IO
Definition geopm_hint.h:25
@ GEOPM_REGION_HINT_UNSET
Definition geopm_hint.h:20
@ GEOPM_NUM_REGION_HINT
Definition geopm_hint.h:31
@ GEOPM_REGION_HINT_PARALLEL
Definition geopm_hint.h:27
#define GEOPM_PUBLIC
Definition geopm_public.h:10
Definition Agg.cpp:20
void check_hint(uint64_t hint)
Definition GEOPMHint.cpp:15