summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-09-21 20:52:23 +0200
committerLennart Poettering <lennart@poettering.net>2012-09-21 20:52:23 +0200
commitf801968466fed39d50d410b30ac828c26722cc95 (patch)
treed17fd84799c0d8191c835e06fae46dec593e4fe2 /Makefile.am
parentaaeef058865362b6ec5efb982d406f7827159720 (diff)
journal: completely rework the mmap cache as I too dumb to actually understand it
Instead of doing hand optimized fd bisect arrays just use plain old hashmaps. Now I can understand my own code again. Yay! As a side effect this should fix some bad memory accesses caused by accesses after mmap(), introduced in 189.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am13
1 files changed, 11 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index d9049bbedb..357a0b0bc4 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -2473,6 +2473,13 @@ test_journal_verify_LDADD = \
libsystemd-journal-internal.la \
libsystemd-id128-internal.la
+test_mmap_cache_SOURCES = \
+ src/journal/test-mmap-cache.c
+
+test_mmap_cache_LDADD = \
+ libsystemd-shared.la \
+ libsystemd-journal-internal.la
+
libsystemd_journal_la_SOURCES = \
src/journal/sd-journal.c \
src/systemd/sd-journal.h \
@@ -2577,13 +2584,15 @@ noinst_PROGRAMS += \
test-journal-send \
test-journal-match \
test-journal-stream \
- test-journal-verify
+ test-journal-verify \
+ test-mmap-cache
TESTS += \
test-journal \
test-journal-match \
test-journal-stream \
- test-journal-verify
+ test-journal-verify \
+ test-mmap-cache
pkginclude_HEADERS += \
src/systemd/sd-journal.h \