summaryrefslogtreecommitdiff
path: root/src/journal/mmap-cache.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-11-26 18:58:44 +0100
committerLennart Poettering <lennart@poettering.net>2013-11-26 18:58:44 +0100
commitbf807d4dbf27c783db8dfd7f4eca321ae4be5b00 (patch)
treebc8810a5a2b08cfb1c4ab3d9ea48646c280a3010 /src/journal/mmap-cache.h
parentb8e891e699e1336c5527f8203e4e8f67c9bbeb84 (diff)
journald: keep statistics on how of we hit/miss the mmap cache
Diffstat (limited to 'src/journal/mmap-cache.h')
-rw-r--r--src/journal/mmap-cache.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/journal/mmap-cache.h b/src/journal/mmap-cache.h
index 0c42fb88e6..912336d7c2 100644
--- a/src/journal/mmap-cache.h
+++ b/src/journal/mmap-cache.h
@@ -34,3 +34,6 @@ MMapCache* mmap_cache_unref(MMapCache *m);
int mmap_cache_get(MMapCache *m, int fd, int prot, unsigned context, bool keep_always, uint64_t offset, size_t size, struct stat *st, void **ret);
void mmap_cache_close_fd(MMapCache *m, int fd);
void mmap_cache_close_context(MMapCache *m, unsigned context);
+
+unsigned mmap_cache_get_hit(MMapCache *m);
+unsigned mmap_cache_get_missed(MMapCache *m);