Thread (138 messages) 138 messages, 17 authors, 2022-09-08

Re: [RFC PATCH 00/30] Code tagging framework and applications

From: Peter Zijlstra <peterz@infradead.org>
Date: 2022-09-01 07:42:48
Also in: io-uring, linux-arch, linux-bcache, linux-iommu, linux-mm, lkml, xen-devel

On Thu, Sep 01, 2022 at 09:05:36AM +0200, Peter Zijlstra wrote:
On Wed, Aug 31, 2022 at 11:59:41AM -0400, Kent Overstreet wrote:
quoted
Also, ftrace can drop events. Not really ideal if under system load your memory
accounting numbers start to drift.
You could attach custom handlers to tracepoints. If you were to replace
these unconditional code hooks of yours with tracepoints then you could
conditionally (say at boot) register custom handlers that do the
accounting you want.

Nobody is mandating you use the ftrace ringbuffer to consume tracepoints.
Many people these days attach eBPF scripts to them and do whatever they
want.
Look at kernel/trace/blktrace.c for a fine in-kernel !BFP example of this.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help