All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] pgo: Fix allocate_node() handling of non-vmlinux nodes
@ 2021-06-02  0:57 Jarmo Tiitto
  2021-06-02  0:57 ` [PATCH 1/1] " Jarmo Tiitto
  0 siblings, 1 reply; 4+ messages in thread
From: Jarmo Tiitto @ 2021-06-02  0:57 UTC (permalink / raw)
  To: Nathan Chancellor, Nick Desaulniers, clang-built-linux
  Cc: Jarmo Tiitto, samitolvanen, morbo, keescook, linux-kernel

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-06-02 18:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-02  0:57 [PATCH 0/1] pgo: Fix allocate_node() handling of non-vmlinux nodes Jarmo Tiitto
2021-06-02  0:57 ` [PATCH 1/1] " Jarmo Tiitto
2021-06-02 17:41   ` Kees Cook
2021-06-02 18:52     ` jarmo.tiitto

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.