Skip to content

Commit ff8b896

Browse files
committed
Fix incorrect comments for cache init
1 parent 5d8b3ae commit ff8b896

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

libCacheSim/cache/eviction/BeladySize.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,11 @@ static void BeladySize_remove_obj(cache_t *cache, cache_obj_t *obj);
4646
// ***********************************************************************
4747

4848
/**
49-
* @brief initialize a Belady cache
49+
* @brief initialize a BeladySize cache
5050
*
5151
* @param ccache_params some common cache parameters
52-
* @param cache_specific_params Belady specific parameters, should be NULL
52+
* @param cache_specific_params BeladySize specific parameters, see parse_params
53+
* function or use -e "print" with the cachesim binary
5354
*/
5455
cache_t *BeladySize_init(const common_cache_params_t ccache_params, const char *cache_specific_params) {
5556
cache_t *cache = cache_struct_init("BeladySize", ccache_params, cache_specific_params);

libCacheSim/cache/eviction/FIFO.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ static bool FIFO_remove(cache_t *cache, const obj_id_t obj_id);
4141
// ***********************************************************************
4242

4343
/**
44-
* @brief initialize a ARC cache
44+
* @brief initialize a FIFO cache
4545
*
4646
* @param ccache_params some common cache parameters
47-
* @param cache_specific_params ARC specific parameters, should be NULL
47+
* @param cache_specific_params FIFO specific parameters, should be NULL
4848
*/
4949
cache_t *FIFO_init(const common_cache_params_t ccache_params,
5050
const char *cache_specific_params) {

libCacheSim/cache/eviction/SLRU.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,11 @@ bool SLRU_get_debug(cache_t *cache, const request_t *req);
9595
// **** ****
9696
// ***********************************************************************
9797
/**
98-
* @brief initialize a LRU cache
98+
* @brief initialize a SLRU cache
9999
*
100100
* @param ccache_params some common cache parameters
101-
* @param cache_specific_params LRU specific parameters, should be NULL
101+
* @param cache_specific_params SLRU specific parameters, see parse_params
102+
* function or use -e "print" with the cachesim binary
102103
*/
103104
cache_t *SLRU_init(const common_cache_params_t ccache_params,
104105
const char *cache_specific_params) {

0 commit comments

Comments
 (0)