Commit 88de3d1c authored by Dmitry Safonov's avatar Dmitry Safonov Committed by Andrei Vagin

vdso: Don't read pagemap or parse symtable under vdso_hint_reliable

We can save some syscalls for *each* dumpee if we don't
open()/seek()/read()/close() /proc/pid/pagemap for each
dumpee and even don't use parasite to parse symtable if
pagemap is unavailable.
Signed-off-by: 's avatarDmitry Safonov <dsafonov@virtuozzo.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent ff28da95
......@@ -55,7 +55,12 @@ static enum vdso_check_t get_vdso_check_type(struct parasite_ctl *ctl)
* hint stays in /proc/../maps file and is correct.
*/
if (!compel_mode_native(ctl)) {
pr_info("Don't check vdso\n");
pr_info("Don't check vdso for compat task\n");
return VDSO_NO_CHECK;
}
if (kdat.vdso_hint_reliable) {
pr_info("vDSO hint is reliable - omit checking\n");
return VDSO_NO_CHECK;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment