blk: enable pool write-protection in debug mode
common: fix make clean of jemalloc

Headers generated by autotools was overwritten for both variants. After
make clean, these headers was not cleaned and therefore we had headers
from last configure run.
Merge pull request #4 from ldorau/blk-enable-pool-write-protection-in-debug-mode

blk: enable pool write-protection in debug mode
Merge pull request #3 from plebioda/fix-make-clean-jemalloc

common: fix make clean of jemalloc
vmem: implementation of vmem_freespace()
Merge pull request #8 from spawlows/implement-vmem_freespace

vmem: implementation of vmem_freespace()
common: scripts for building rpm and dpkg packages

- Add scripts for building rpm and dpkg packages
- Update Makefiles to fulfill Debian policy
- Update README file
- Add initial ChangeLog file
- Create .version file containing version tag outside git repo
pmem: implementation of pmem_map()
Merge pull request #10 from krzycz/pmem_map-impl

pmem: implementation of pmem_map()
doc: minor tweak to man page language
pmem: add support for clflushopt

- Implement pmem_fence()
- Choose clflushopt over clflush when supported by the CPU
- cstyle and uniformity changes (tacked on by @andyrudoff)
- Add pmem clflush /proc parsing unit test (tacked on by @andyrudoff)
test: improve detection of installed Valgrind package version

Also restore vmem_valgrind/TEST4.
Merge pull request #11 from krzycz/valgrind-detection

test: improve detection of installed Valgrind package version
Merge pull request #9 from plebioda/rpm-and-dpkg-building-scripts

common: scripts for building rpm and dpkg packages
common: fix minor issues in Makefiles

- fix building with multiple jobs
- fix src/test dependencies
blk: add benchmark for PMEMBLK
Merge pull request #12 from tomaszkapela/PMEMBLK-benchmark-implementation

blk: add benchmark for PMEMBLK
Merge pull request #13 from plebioda/fix-minor-issues-in-makefiles

common: fix minor issues in Makefiles
doc: work around groff bugs in html generation

groff version 1.22 and later has a bug in html generation (via -Thtml)
where .nf sections lose their indentation.  This makes the code examples
in our man pages all slammed together to the left margin.  Reverting to
groff version 1.18.1.4 avoids this bug, so the path to groff is changed
to /usr/local/bin for now to remind me to use the local install until
the bug is fixed.

Even with the old groff, blank lines in the code examples cause the
next line to have the incorrect indentation (off by a space).  Adding
a tab on the blank line avoids this bug while leaving the output of
the man command the same.

groff does document that the html driver is just beta quality, so
hopefully these issues will be fixed in future updates.
vmem: fix pages purging for file mapped memory

madvise syscall with MADV_DONTNEED zero-fill-on-demand pages only for
mappings without an underlying file. In case of memory mapped to
underlying file pages will be reloaded with file's content.
Therefore we have to return valid unzeroed flag in pages_purge function,
depending on the memory type.