summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2022-07-06 13:59:50 +0200
committerLouis Burda <quent.burda@gmail.com>2022-07-06 13:59:50 +0200
commitb98fabdf4b91a6093b3d91f15cb55b21ab89c0f3 (patch)
tree2f8da414f153c9c586c7ec2919eac0fbff83712c /src
parentcee2126b8f316677ebee57e19fe7d50d09c066d1 (diff)
downloadcachepc-b98fabdf4b91a6093b3d91f15cb55b21ab89c0f3.tar.gz
cachepc-b98fabdf4b91a6093b3d91f15cb55b21ab89c0f3.zip
Add proc device for communicating counts with userspace
Diffstat (limited to 'src')
-rwxr-xr-xsrc/cachepc.c6
-rwxr-xr-xsrc/cachepc.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/cachepc.c b/src/cachepc.c
index 01b3b95..0905d5a 100755
--- a/src/cachepc.c
+++ b/src/cachepc.c
@@ -7,7 +7,7 @@ static uint16_t get_virt_cache_set(cache_ctx *ctx, void *ptr);
static void *aligned_alloc(size_t alignment, size_t size);
cache_ctx *
-get_cache_ctx(cache_level cache_level)
+cachepc_get_ctx(cache_level cache_level)
{
cache_ctx *ctx;
@@ -53,7 +53,7 @@ cachepc_prepare_ds(cache_ctx *ctx)
}
void
-cachepc_save_msrmt(cacheline *head, const char *prefix, int index)
+cachepc_save_msrmts(cacheline *head, const char *prefix, int index)
{
char filename[256];
@@ -62,7 +62,7 @@ cachepc_save_msrmt(cacheline *head, const char *prefix, int index)
}
void
-cache_print_msrmts(cacheline *head)
+cachepc_print_msrmts(cacheline *head)
{
cacheline *curr_cl;
diff --git a/src/cachepc.h b/src/cachepc.h
index ee80338..44d34ca 100755
--- a/src/cachepc.h
+++ b/src/cachepc.h
@@ -10,8 +10,8 @@
cache_ctx *cachepc_get_ctx(cache_level cl);
cacheline *cachepc_prepare_ds(cache_ctx *ctx);
-void cachepc_save_msrmt(cacheline *head, const char *prefix, int index);
-void cachepc_print_msrmt(cacheline *head);
+void cachepc_save_msrmts(cacheline *head, const char *prefix, int index);
+void cachepc_print_msrmts(cacheline *head);
__attribute__((always_inline))
static inline cacheline *cachepc_prime(cacheline *head);