Fix: mmap enum flags build failures
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Thu, 6 Aug 2020 15:03:00 +0000 (11:03 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 6 Aug 2020 15:42:57 +0000 (11:42 -0400)
commit1203baa4cc5a8599346b11141386bf0e006e928f
treee5eb28e6094be7cee544ae930eb3963bb9aab4dc
parent3cf55950d0f6aa43eb5ad119bad1dbda69f75a54
Fix: mmap enum flags build failures

Some of the mmap option flags are not available on all architectures and
are defined to zero by include/linux/mman.h. This is probably done as a
way to no-op the use of these flags on configurations that don't support
them.
To fix this, only define these flags in our enumeration if they are
defined and non-zero.

Also, the MAP_HUGE_{2MB,1GB} labels were mistakingly named
MAP_HUGETLB_{2MB,1GB}.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I778a52a0da9da6e04231a52c7f68a22d122dfb83
include/instrumentation/syscalls/headers/syscalls_integers_override.h
This page took 0.0260590000000001 seconds and 4 git commands to generate.