use madvise() directly for hottext in new kernels
commit3a9242df244215203feeb50327a29ce4c61aac9e
authorBin Liu <binliu@fb.com>
Tue, 17 Sep 2019 04:17:14 +0000 (16 21:17 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Tue, 17 Sep 2019 04:20:05 +0000 (16 21:20 -0700)
treedae3cc037f0b4a1c42cb3b5cbedae469931a98c2
parent0f2f7cbd12fa81ce52d985c65c4321b4729ebb13
use madvise() directly for hottext in new kernels

Summary: Newer kernels support madvise() directly on already mapped regions. Introduce an option to do that.  The benefit is that perf tools can work better with the addresses in hottext this way.

Reviewed By: liu-song-6, alexeyt

Differential Revision: D17403820

fbshipit-source-id: 8f1eb535665375b5ae32b36d65edf562e055e942
hphp/runtime/base/program-functions.cpp
hphp/runtime/base/runtime-option.h