linux/tools/perf
Jiebin Sun 1b4eb7a2dd perf c2c: add column rendering for function view
Add renderers for the function view's Cycles %, Store count, and
hierarchy identity columns. The identity column renders the read-side
function, contending writer, or cacheline, with indentation for the
hierarchy level. Also add width and header helpers, estimated-cycle
calculation, comparators, and the dimension table that ties them together.

Clamp the identity renderer's returned length to its local buffer before
using it for pointer and padding calculations. This handles snprintf-style
would-have-been lengths without changing normal output.

The next patch connects these dimensions to the view's HPP lists, so the
symbols used only there are temporarily marked __maybe_unused.

Signed-off-by: Jiebin Sun <jiebin.sun@intel.com>
Reviewed-by: Tianyou Li <tianyou.li@intel.com>
Reviewed-by: Wangyang Guo <wangyang.guo@intel.com>
Reviewed-by: Ian Rogers <irogers@google.com>
Cc: Dapeng Mi <dapeng1.mi@linux.intel.com>
Cc: James Clark <james.clark@linaro.org>
Cc: Thomas Falcon <thomas.falcon@intel.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
2026-08-17 16:04:05 -07:00
..
arch perf test amd ibs: avoid using executable heap 2026-07-04 09:24:02 -07:00
bench perf tools fixes for v7.2. 2026-07-28 22:11:23 -07:00
check-header_ignore_hunks/lib
dlfilters
Documentation perf sched latency: Add histogram and time interval options 2026-08-07 10:56:23 -07:00
include/perf
jvmti
pmu-events perf vendor events intel: Fix Novalake CPUID regex in mapfile.csv 2026-08-04 10:08:48 -07:00
python perf python: Fix MetricGroup return type in perf.pyi 2026-08-09 22:02:41 -07:00
scripts perf build: install-build-deps: add RHEL family devel package mapping 2026-08-12 06:17:49 -07:00
tests perf test sample-parsing: Validate PERF_FORMAT_GROUP values without LOST 2026-08-15 06:37:18 -07:00
trace tools headers: Sync UAPI linux/fs.h with the kernel sources 2026-07-21 21:00:10 -03:00
ui perf ui hists: Remove duplicated thread in popup_action 2026-07-27 17:30:48 -07:00
util perf c2c: add column rendering for function view 2026-08-17 16:04:05 -07:00
.clang-format perf clang-format: Prioritize Python.h and expand other categories 2026-07-10 17:34:54 -07:00
.gitignore perf pmu-events: Split big_c_string storage into standalone compilation unit 2026-05-20 17:46:45 -03:00
bpf_skel.mak perf build: Compile BPF skeletons with -mcpu=v3 2026-06-04 10:58:32 -03:00
Build perf trace beauty: Make beauty generated C code standalone .o files 2026-05-20 17:46:45 -03:00
builtin-annotate.c perf evlist: Add reference count checking 2026-06-30 10:17:11 -07:00
builtin-bench.c
builtin-buildid-cache.c
builtin-buildid-list.c perf build-id: Fix off-by-one bug when printing kernel/module build-id 2026-05-20 15:50:32 -03:00
builtin-c2c.c perf c2c: extract shared data structures into util/c2c.h 2026-08-17 15:07:08 -07:00
builtin-check.c perf data ctf: replace libbabeltrace with babeltrace2-ctf-writer 2026-06-04 17:34:52 -03:00
builtin-config.c
builtin-daemon.c
builtin-data.c perf data ctf: replace libbabeltrace with babeltrace2-ctf-writer 2026-06-04 17:34:52 -03:00
builtin-diff.c perf tools: Guard test_bit from out-of-bounds sample CPU 2026-06-04 17:34:52 -03:00
builtin-evlist.c
builtin-ftrace.c perf ftrace: Fix leak in parse_filter_event 2026-08-03 10:39:13 -07:00
builtin-help.c
builtin-inject.c perf python: Use evsel in sample in pyrf_event 2026-06-30 10:17:12 -07:00
builtin-kallsyms.c
builtin-kmem.c perf tools: Include file offset and event type name in skip messages 2026-06-03 16:31:03 -03:00
builtin-kvm.c perf kvm: Fix memory leak in cmd_kvm() 2026-08-12 06:04:18 -07:00
builtin-kwork.c perf evlist: Add reference count checking 2026-06-30 10:17:11 -07:00
builtin-list.c
builtin-lock.c perf evlist: Add reference count checking 2026-06-30 10:17:11 -07:00
builtin-mem.c perf tool: Remove evsel from tool APIs that pass the sample 2026-05-20 16:34:23 -03:00
builtin-probe.c
builtin-record.c perf tools: Fix sb_evlist leaks in top and record 2026-08-09 21:58:10 -07:00
builtin-report.c perf ui hists: Fix stack use-after-return in symbol_filter_str 2026-07-27 17:13:08 -07:00
builtin-sched.c perf sched latency: Add histogram and time interval options 2026-08-07 10:56:23 -07:00
builtin-script.c perf script: Fix metric_evlist leak in script_find_metrics 2026-08-09 21:58:10 -07:00
builtin-stat.c perf stat: Fix evsel_list leak in cmd_stat 2026-08-09 21:58:10 -07:00
builtin-timechart.c perf timechart: Fix memory leaks in draw_wakeups() 2026-06-30 17:04:51 -07:00
builtin-top.c perf tools: Fix sb_evlist leaks in top and record 2026-08-09 21:58:10 -07:00
builtin-trace.c perf trace: Format fields with hex specifiers in print_fmt as hexadecimal 2026-08-05 11:20:02 -07:00
builtin-version.c
builtin.h
check-headers.sh
CREDITS
design.txt
Makefile perf build: Add make check-headers target 2026-05-14 14:48:32 -07:00
Makefile.config perf s390: Fix TEXTREL in Python extension by compiling as PIC 2026-06-10 17:03:53 -03:00
Makefile.perf perf build: install-build-deps: add Debian devel package mapping 2026-08-12 06:17:48 -07:00
MANIFEST
perf-archive.sh
perf-completion.sh
perf-iostat.sh
perf-read-vdso.c
perf-sys.h
perf.c
perf.h