#include <stdint.h>
#include <string.h>
#include "geopm_public.h"
Go to the source code of this file.
◆ geopm_region_hash_e
Enumerator |
---|
GEOPM_REGION_HASH_INVALID | |
GEOPM_REGION_HASH_UNMARKED | |
GEOPM_U64_SENTINEL_REGION_HASH | |
◆ geopm_region_hash_epoch_e
Enum for internally defined region hashes.
Enumerator |
---|
GEOPM_REGION_HASH_EPOCH | |
GEOPM_REGION_HASH_APP | |
◆ geopm_crc32_str()
This function is used to produce unique region IDs for named regions.
An Agent implementation with specialized behavior for specific region names can use this function to figure out the region ID to expect for the desired region. Only the bottom 32 bits will be filled in, reserving the top 32 bits for hints and other information.
- Parameters
-
[in] | key | This string is hashed to produce a 64-bit value. |
- Returns
- uint64_t The result is returned as a 64-bit integer.
◆ geopm_crc32_u64()
uint64_t GEOPM_PUBLIC geopm_crc32_u64 |
( |
uint64_t |
begin, |
|
|
uint64_t |
key |
|
) |
| |
DEPRECATED Implements a hashing algorithm.
- Parameters
-
[in] | begin | Algorithm starts with this value |
[in] | key | This value is hashed to produce a 32-bit result. |
- Returns
- uint64_t The result is returned as a 64-bit integer.