Re: [PATCH v8 3/5] tracing: Add stackmap statistics interface

From
Li Pengfei <hidden>
Date
2026-11-07 06:28:35
Also in
linux-doc, linux-kselftest, lkml
Reply to
sashiko-bot@kernel.org, 2026-11-07
From: Pengfei Li <redacted>

On Sat, 07 Nov 2026 06:04:59 +0000, sashiko-bot@kernel.org wrote:
Can ftrace_stackmap_get_cookie() undercount smap->fallbacks when the
element pool runs out during a concurrent insert?
Yes. The slot left without an element makes later lookups of that stack
take the "insert in progress" exit, so they are recorded in full but not
counted. It only happens once the pool is exhausted, when fallbacks is
already non-zero, so the counter still shows that the map is full; it
just reads low. The next version counts that case as a fallback.

Thanks,
Pengfei Li
Thread (13 messages) 13 messages, 3 authors, last reply 2d ago
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help