Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/1a1a11a/libCacheSim
/ functions
Functions
3,238 in github.com/1a1a11a/libCacheSim
⨍
Functions
3,238
◇
Types & classes
607
↓ 355 callers
Function
assert
(condition, message)
libCacheSim-node/test.js:22
↓ 202 callers
Method
size
libCacheSim/dataStructure/robin_hood.h:2091
↓ 194 callers
Method
find
libCacheSim/dataStructure/robin_hood.h:1935
↓ 103 callers
Method
remove
libCacheSim/cache/eviction/cpp/abstractRank.hpp:84
↓ 102 callers
Method
end
libCacheSim/dataStructure/robin_hood.h:1996
↓ 94 callers
Method
get
libCacheSim/dataStructure/sparsepp/spp_smartptr.h:44
↓ 93 callers
Method
insert
libCacheSim/dataStructure/splaytree.hpp:390
↓ 83 callers
Method
begin
@brief Get an iterator to the first element. @return An iterator to the first element.
example/cacheHierarchy/fkYAML/node.hpp:10504
↓ 83 callers
Function
read_one_req
* @brief read one request from trace file * * @param reader * @param req * @return 0 if success, 1 if end of file */
libCacheSim/traceReader/reader.c:236
↓ 82 callers
Function
remove_obj_from_list
remove the object from the built-in doubly linked list * * @param head * @param tail * @param cache_obj */
libCacheSim/cache/cacheObj.c:57
↓ 82 callers
Method
size
example/cacheHierarchy/fkYAML/node.hpp:396
↓ 80 callers
Method
end
@brief Get an iterator to the past-the-last element. @return An iterator to the past-the-last element.
example/cacheHierarchy/fkYAML/node.hpp:10516
↓ 73 callers
Method
evict
libCacheSim/cache/eviction/LRB/lrb.cpp:407
↓ 71 callers
Function
new_request
* allocate a new request_t struct and fill in necessary field * @return */
libCacheSim/include/libCacheSim/request.h:77
↓ 68 callers
Function
atoi
example/cacheHierarchy/fkYAML/node.hpp:5165
↓ 61 callers
Method
emplace_back
libCacheSim/cache/eviction/LRB/lrb.h:189
↓ 58 callers
Method
begin
libCacheSim/dataStructure/robin_hood.h:1977
↓ 58 callers
Function
cache_struct_init
* @brief this function is called by all eviction algorithms to initialize the * cache * * @param ccache_params common cache parameters * @param in
libCacheSim/cache/cache.c:28
↓ 58 callers
Method
empty
libCacheSim/dataStructure/robin_hood.h:2101
↓ 57 callers
Function
cache_struct_free
* @brief this function is called by all eviction algorithms to free the cache * * @param cache */
libCacheSim/cache/cache.c:76
↓ 54 callers
Method
at
NOLINTNEXTLINE(modernize-use-nodiscard)
libCacheSim/dataStructure/robin_hood.h:1913
↓ 54 callers
Function
free_request
* free the memory used by req * @param req */
libCacheSim/include/libCacheSim/request.h:115
↓ 53 callers
Function
cache_get_base
* @brief this function is called by all eviction algorithms * it performs the following logic * * ``` * if obj in cache: * update_metadata *
libCacheSim/cache/cache.c:223
↓ 53 callers
Function
type_error
@brief Construct a new type_error object with an error message and a node type. @param[in] msg An error message. @param[in] type The type of a source
example/cacheHierarchy/fkYAML/node.hpp:1759
↓ 51 callers
Function
LRU_init
end user facing functions init, free, get * @brief initialize a LRU cache * * @param ccache_params some common cache parameters * @param cache_sp
libCacheSim/cache/eviction/LRU.c:49
↓ 47 callers
Function
XXH_readLE64
libCacheSim/dataStructure/hash/xxhash.h:1723
↓ 47 callers
Function
_n_cores
test/common.h:48
↓ 45 callers
Function
simulate_at_multi_sizes_with_step_size
libCacheSim/profiler/simulator.c:141
↓ 43 callers
Function
cache_remove_obj_base
* @brief this function is called by all eviction algorithms that * need to remove an object from the cache, it updates the cache metadata, * because
libCacheSim/cache/cache.c:322
↓ 43 callers
Function
copy_cache_obj_to_request
* copy the cache_obj to req_dest * @param req_dest * @param cache_obj */
libCacheSim/cache/cacheObj.c:15
↓ 43 callers
Function
get_num_of_req
libCacheSim/traceReader/reader.c:514
↓ 43 callers
Method
reserve
reserves space for the specified number of elements. Makes sure the old data fits. Exactly the same as rehash(c). Use rehash(0) to shrink to fit.
libCacheSim/dataStructure/robin_hood.h:2065
↓ 42 callers
Method
chunksize
libCacheSim/dataStructure/sparsepp/spp_dlalloc.h:702
↓ 40 callers
Function
create_test_cache
test/common.h:206
↓ 39 callers
Method
get_lines_processed
@brief Get the number of lines already processed. @return uint32_t The number of lines already processed.
example/cacheHierarchy/fkYAML/node.hpp:3507
↓ 39 callers
Function
prepend_obj_to_head
* prepend the object to the head of the doubly linked list * the object is not in the list, otherwise, use move_obj_to_head * @param head * @param
libCacheSim/cache/cacheObj.c:182
↓ 37 callers
Function
FIFO_init
* @brief initialize a ARC cache * * @param ccache_params some common cache parameters * @param cache_specific_params ARC specific parameters, shoul
libCacheSim/cache/eviction/FIFO.c:49
↓ 36 callers
Function
noexcept
example/cacheHierarchy/fkYAML/node.hpp:12576
↓ 35 callers
Function
cache_evict_base
* @brief this function is called by all eviction algorithms in the eviction * function, it updates the cache metadata. Because it frees the object st
libCacheSim/cache/cache.c:293
↓ 35 callers
Function
cache_insert_base
* @brief this function is called by all caches to * insert an object into the cache, update the hash table and cache metadata * this function assume
libCacheSim/cache/cache.c:264
↓ 34 callers
Method
get_last_token_begin_pos
@brief Get the beginning position of a last token. @return uint32_t The beginning position of a last token.
example/cacheHierarchy/fkYAML/node.hpp:3501
↓ 31 callers
Function
chunk2mem
conversion from malloc headers to user pointers, and back
libCacheSim/dataStructure/sparsepp/spp_dlalloc.h:776
↓ 31 callers
Method
chunk_plus_offset
Treat space at ptr +/- offset as a chunk
libCacheSim/dataStructure/sparsepp/spp_dlalloc.h:709
↓ 31 callers
Function
log
(color, message)
libCacheSim-node/test.js:18
↓ 30 callers
Function
cache_find_base
* @brief this function is called by eviction algorithms that use * the hash table to find whether an object is in the cache * * @param cache * @pa
libCacheSim/cache/cache.c:174
↓ 30 callers
Function
end
@brief Get the iterator to the past-the-end element. (Always constant) @return The iterator to the past-the-end element.
example/cacheHierarchy/fkYAML/node.hpp:2311
↓ 26 callers
Function
_verify_profiler_results
test/test_evictionAlgo.c:10
↓ 26 callers
Function
print_results
test/test_evictionAlgo.c:24
↓ 25 callers
Function
apply_directive_set
@brief Set YAML directive properties to the given node. @param node A basic_node_type object to be set YAML directive properties.
example/cacheHierarchy/fkYAML/node.hpp:8372
↓ 25 callers
Method
clear
Clears all data, without resizing.
libCacheSim/dataStructure/robin_hood.h:1682
↓ 25 callers
Function
next_rand
* generate pseudo rand number, taken from LHD simulator * random number generator from Knuth MMIX * @return */
libCacheSim/utils/include/mymath.h:28
↓ 24 callers
Function
close_reader
libCacheSim/traceReader/reader.c:549
↓ 24 callers
Method
erase
libCacheSim/cache/eviction/3LCache/ThreeLCache.h:148
↓ 24 callers
Method
insert
This is the normal insert routine, used by the outside world
libCacheSim/dataStructure/sparsepp/spp.h:3224
↓ 24 callers
Function
to_string
example/cacheHierarchy/fkYAML/node.hpp:1081
↓ 24 callers
Function
unreachable
@brief A wrapper function to call std::unreachable() (since C++23) or similar compiler specific extensions. @note This function is implemented only fo
example/cacheHierarchy/fkYAML/node.hpp:569
↓ 23 callers
Function
exception
@brief Construct a new exception object with an error message. @param[in] msg An error message. @sa https://fktn-k.github.io/fkYAML/api/exception/cons
example/cacheHierarchy/fkYAML/node.hpp:1653
↓ 23 callers
Function
setup_reader
libCacheSim/traceReader/reader.c:42
↓ 22 callers
Method
end
libCacheSim/dataStructure/sparsepp/spp.h:1848
↓ 22 callers
Function
is_true
libCacheSim/bin/cli_reader_utils.c:60
↓ 21 callers
Function
Clock_init
* @brief initialize a Clock cache * * @param ccache_params some common cache parameters * @param cache_specific_params Clock specific parameters as
libCacheSim/cache/eviction/Clock.c:52
↓ 20 callers
Function
node_value
@brief Constructs a new basic_node Value object for null types.
example/cacheHierarchy/fkYAML/node.hpp:12823
↓ 19 callers
Function
XXH_readLE32
libCacheSim/dataStructure/hash/xxhash.h:1174
↓ 19 callers
Function
atof
example/cacheHierarchy/fkYAML/node.hpp:5298
↓ 19 callers
Function
begin
@brief Get the iterator to the first element. (Always constant) @return The iterator to the first element.
example/cacheHierarchy/fkYAML/node.hpp:2305
↓ 19 callers
Method
count
Returns 1 if key is found, 0 otherwise.
libCacheSim/dataStructure/robin_hood.h:1879
↓ 18 callers
Method
begin
Iterator functions ------------------
libCacheSim/dataStructure/sparsepp/spp.h:1845
↓ 18 callers
Method
resize
OK, we'll let you resize one of these puppies
libCacheSim/dataStructure/sparsepp/spp.h:2077
↓ 17 callers
Function
swap
libCacheSim/dataStructure/sparsepp/spp.h:4336
↓ 16 callers
Method
erase
libCacheSim/dataStructure/robin_hood.h:2011
↓ 15 callers
Function
XXH64_avalanche
libCacheSim/dataStructure/hash/xxhash.h:1798
↓ 15 callers
Function
cache_can_insert_default
* @brief whether the request can be inserted into cache * * @param cache * @param req * @return true * @return false */
libCacheSim/cache/cache.c:143
↓ 15 callers
Method
ok_magic
Check if (alleged) mstate m has expected magic field
libCacheSim/dataStructure/sparsepp/spp_dlalloc.h:1222
↓ 15 callers
Method
test
We let you see if a bucket is non-empty without retrieving it -------------------------------------------------------------
libCacheSim/dataStructure/sparsepp/spp.h:1459
↓ 15 callers
Function
validate
@brief Checks if `byte` is a valid 1-byte UTF-8 character. @param[in] byte The byte value. @return true if `byte` is a valid 1-byte UTF-8 character, f
example/cacheHierarchy/fkYAML/node.hpp:1867
↓ 14 callers
Function
XXH3_avalanche
* This is a fast avalanche stage, * suitable when input bits are already partially mixed */
libCacheSim/dataStructure/hash/xxh3.h:667
↓ 14 callers
Function
_wyr8
libCacheSim/dataStructure/hash/wyhash.h:69
↓ 14 callers
Function
apply_node_properties
@brief Set YAML node properties (anchor and/or tag names) to the given node. @param node A node type object to be set YAML node properties.
example/cacheHierarchy/fkYAML/node.hpp:8378
↓ 14 callers
Method
dump
libCacheSim/traceAnalyzer/ttl.cpp:33
↓ 14 callers
Method
erase
This takes the specified elements out of the group. This is "undefining", rather than "clearing". TODO(austern): Make this exception safe: handle exc
libCacheSim/dataStructure/sparsepp/spp.h:1581
↓ 14 callers
Function
find
@brief Finds the beginning position of `sv` characters in this referenced character sequence. @param sv The character sequence to compare with. @param
example/cacheHierarchy/fkYAML/node.hpp:2604
↓ 14 callers
Function
mapping
example/cacheHierarchy/fkYAML/node.hpp:12193
↓ 14 callers
Function
mem2chunk
libCacheSim/dataStructure/sparsepp/spp_dlalloc.h:777
↓ 14 callers
Method
num_nonempty
We also may want to know how many *used* buckets there are
libCacheSim/dataStructure/sparsepp/spp.h:1287
↓ 14 callers
Function
reset_reader
libCacheSim/traceReader/reader.c:486
↓ 14 callers
Method
swap
libCacheSim/dataStructure/robin_hood.h:648
↓ 13 callers
Function
XXH3_mix16B
* DISCLAIMER: There are known *seed-dependent* multicollisions here due to * multiplication by zero, affecting hashes of lengths 17 to 240. * * How
libCacheSim/dataStructure/hash/xxh3.h:826
↓ 13 callers
Function
XXH64_round
libCacheSim/dataStructure/hash/xxhash.h:1784
↓ 13 callers
Method
get_next_token
@brief Get the next lexical token by scanning the left of the input buffer. @return lexical_token The next lexical token.
example/cacheHierarchy/fkYAML/node.hpp:3305
↓ 13 callers
Function
hash_combine
libCacheSim/cache/eviction/LRB/utils.h:16
↓ 13 callers
Function
replace_char
replace all matching char in a string */
libCacheSim/utils/mystr.c:50
↓ 13 callers
Function
top_foot_size
top_foot_size is padding at the end of a segment, including space that may be needed to place segment records and fenceposts when new noncontiguou
libCacheSim/dataStructure/sparsepp/spp_dlalloc.h:1578
↓ 12 callers
Function
XXH32_round
libCacheSim/dataStructure/hash/xxhash.h:1233
↓ 12 callers
Method
add_req
libCacheSim/traceAnalyzer/ttl.cpp:16
↓ 12 callers
Function
basic_str_view
Constructs a basic_str_view object.
example/cacheHierarchy/fkYAML/node.hpp:2218
↓ 12 callers
Method
emplace_back
libCacheSim/cache/eviction/3LCache/ThreeLCache.h:175
↓ 12 callers
Function
extract_dataname
extract the data name from the datapath Args: datapath: path to the data file Return: dataname: the name of the data
scripts/utils/trace_utils.py:2
↓ 12 callers
Function
move_obj_to_head
* move an object to the head of the doubly linked list * @param head * @param tail * @param cache_obj */
libCacheSim/cache/cacheObj.c:130
↓ 12 callers
Function
open_trace
this is the same function as setup_reader */
libCacheSim/include/libCacheSim/reader.h:196
↓ 12 callers
Function
read_bytes
libCacheSim/traceReader/customizedReader/binaryUtils.h:42
next →
1–100 of 3,238, ranked by callers