Re: [PATCH v9 7/9] perf c2c: build and finalize the function view hierarchy
| Newsgroups | org.kernel.vger.linux-perf-users |
|---|---|
| Message-ID | <[email protected]> |
> Add the builder that walks the top-level cacheline entries and, for each > read-side function, correlates the functions that write the same lines > (level 2) and the specific cachelines they contend over (level 3) within > each retained detail histogram. Aggregate the write traffic per contending > function, resort by store count, and prune writers/functions with no > contention. The finalize pass then computes the Cycles % denominator from > the surviving level-1 entries after pruning, so the column shows each > function's share of the functions retained in the table rather than of the > whole recording -- the semantics documented for Cycles % in perf-c2c.txt. > > Expose c2c_function__build() and c2c_function__reset() for the TUI front > end added by the next patch. The builder requires iaddr in the cacheline > coalescing fields and returns the completed hists through an output > argument. Validate the inputs before replacing an existing model. > > Function-view entries do not carry callchains. Suppress callchain handling > while building and tearing down the model so the common API does not depend > on the caller's current callchain setting. > > Signed-off-by: Jiebin Sun <[email protected]> Sashiko has reviewed this patch and found no issues. It looks great! -- Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=7