[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210602005702.9650-1-jarmo.tiitto@gmail.com>
Date: Wed, 2 Jun 2021 03:57:02 +0300
From: Jarmo Tiitto <jarmo.tiitto@...il.com>
To: Nathan Chancellor <nathan@...nel.org>,
Nick Desaulniers <ndesaulniers@...gle.com>,
clang-built-linux@...glegroups.com
Cc: Jarmo Tiitto <jarmo.tiitto@...il.com>, samitolvanen@...gle.com,
morbo@...gle.com, keescook@...omium.org,
linux-kernel@...r.kernel.org
Subject: [PATCH 0/1] pgo: Fix allocate_node() handling of non-vmlinux nodes
Currently allocate_node() will reserve nodes even if *p
doesn't point into __llvm_prf_data_start - __llvm_prf_data_end
range.
This is wrong:
Any instrumented modules that are not part of vmlinux
(built-in) will "steal" available nodes away from vmlinux.
This can result in exhaustion of nodes for vmlinux
and less accurate profile data.
Either way, any profiling data generated by loaded modules,
if any, is unusable from vmlinux.profraw.
So just filtter them out.
Jarmo Tiitto (1):
pgo: Fix allocate_node() handling of non-vmlinux nodes.
kernel/pgo/instrument.c | 4 ++++
1 file changed, 4 insertions(+)
--
2.31.1
Powered by blists - more mailing lists