perf_c2c_report
Identify cache lines with the most HITM events in perf.data files to pinpoint cache-to-cache false sharing and diagnose multi-threaded performance issues.
Instructions
Cache-to-cache false sharing analysis. Identifies cache lines with the most HITM (Hit Modified) events — the primary indicator of cross-core cache contention.
Use this to diagnose multi-threaded performance issues caused by different threads accessing the same cache line.
Key parameters:
display: 'tot' (total HITMs, default), 'lcl' (local/same-socket), 'rmt' (remote/cross-socket).
coalesce: group results by 'tid,pid,iaddr,dso' to see per-thread or per-address breakdown.
stats: true to show only summary statistics.
call_graph: enable callchain display.
Output: multi-section report — shared data cache line table, per-cacheline detail with offsets and symbols. Requires: perf record -d -a (with memory data recording).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cpu | No | CPUs to filter | |
| sort | No | Sort by key(s) | |
| event | No | Event selector | |
| force | No | Don't complain, do it | |
| input | Yes | Path to perf.data file | |
| ldlat | No | Load latency threshold in cycles | |
| stats | No | Display only statistics (no reports) | |
| display | No | Display type | |
| verbose | No | Verbosity level (0-2) | |
| vmlinux | No | vmlinux pathname | |
| all_user | No | Only show user space entries | |
| coalesce | No | Coalesce fields (e.g. 'tid,pid,iaddr,dso') | |
| show_all | No | Show all captured HITM lines | |
| double_cl | No | Double the cache line size | |
| no_source | No | Do not display source line column | |
| node_info | No | Show extra node info | |
| all_kernel | No | Only show kernel space entries | |
| call_graph | No | Call graph options | |
| stitch_lbr | No | Enable LBR callgraph stitching | |
| full_symbols | No | Display full length of symbols | |
| disassembler_style | No | Disassembler style (e.g. intel) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |