-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib/ukalloc: Add entry IDs and update static entry definitions
Introduce header for definitions related to uk_store. Add entry IDs for stats tracked by uk_alloc, and update static entry definitions to pass entry IDs. Signed-off-by: Michalis Pappas <michalis@unikraft.io> Reviewed-by: Simon Kuenzer <simon@unikraft.io> Reviewed-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.io> Approved-by: Simon Kuenzer <simon@unikraft.io> Tested-by: Unikraft CI <monkey@unikraft.io> GitHub-Closes: #939
- Loading branch information
1 parent
6717c2b
commit 2f10c56
Showing
2 changed files
with
45 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* SPDX-License-Identifier: BSD-3-Clause */ | ||
/* Copyright (c) 2023, Unikraft GmbH and The Unikraft Authors. | ||
* Licensed under the BSD-3-Clause License (the "License"). | ||
* You may not use this file except in compliance with the License. | ||
*/ | ||
#ifndef __UK_ALLOC_STORE_H__ | ||
#define __UK_ALLOC_STORE_H__ | ||
|
||
/* stats entry IDs */ | ||
#define UK_ALLOC_STATS_CUR_MEM_FREE 0x01 | ||
#define UK_ALLOC_STATS_LAST_ALLOC_SIZE 0x02 | ||
#define UK_ALLOC_STATS_MAX_ALLOC_SIZE 0x03 | ||
#define UK_ALLOC_STATS_MIN_ALLOC_SIZE 0x04 | ||
#define UK_ALLOC_STATS_TOTAL_NUM_ALLOCS 0x05 | ||
#define UK_ALLOC_STATS_TOTAL_NUM_FREES 0x06 | ||
#define UK_ALLOC_STATS_CUR_NUM_ALLOCS 0x07 | ||
#define UK_ALLOC_STATS_MAX_NUM_ALLOCS 0x08 | ||
#define UK_ALLOC_STATS_CUR_MEM_USE 0x09 | ||
#define UK_ALLOC_STATS_MAX_MEM_USE 0x0a | ||
#define UK_ALLOC_STATS_NUM_ENOMEM 0x0b | ||
|
||
#endif /* __UK_ALLOC_STORE_H__ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters