rust/zerocopy/benches/write_to_static_size.x86-64.mca

Source file repositories/reference/linux-study-clean/rust/zerocopy/benches/write_to_static_size.x86-64.mca

File Facts

System
Linux kernel
Corpus path
rust/zerocopy/benches/write_to_static_size.x86-64.mca
Extension
.mca
Size
1945 bytes
Lines
58
Domain
Rust Kernel Layer
Bucket
Rust API Membrane
Inferred role
Rust Kernel Layer: Rust API Membrane
Status
atlas-only

Why This File Exists

Rust-side wrappers and abstractions around kernel C APIs, ownership contracts, allocation, synchronization, and module integration.

Dependency Surface

Detected Declarations

Annotated Snippet

Iterations:        100
Instructions:      900
Total Cycles:      233
Total uOps:        900

Dispatch Width:    4
uOps Per Cycle:    3.86
IPC:               3.86
Block RThroughput: 2.3


Instruction Info:
[1]: #uOps
[2]: Latency
[3]: RThroughput
[4]: MayLoad
[5]: MayStore
[6]: HasSideEffects (U)

[1]    [2]    [3]    [4]    [5]    [6]    Instructions:
 1      1     0.33                        cmp	rdx, 6
 1      1     1.00                        jne	.LBB5_2
 1      5     0.50    *                   movzx	eax, word ptr [rdi + 4]
 1      1     1.00           *            mov	word ptr [rsi + 4], ax
 1      5     0.50    *                   mov	eax, dword ptr [rdi]
 1      1     1.00           *            mov	dword ptr [rsi], eax
 1      1     0.33                        cmp	rdx, 6
 1      1     0.50                        sete	al
 1      1     1.00                  U     ret


Resources:
[0]   - SBDivider
[1]   - SBFPDivider
[2]   - SBPort0
[3]   - SBPort1
[4]   - SBPort4
[5]   - SBPort5
[6.0] - SBPort23
[6.1] - SBPort23


Resource pressure per iteration:
[0]    [1]    [2]    [3]    [4]    [5]    [6.0]  [6.1]  
 -      -     1.50   1.49   2.00   2.01   2.00   2.00   

Resource pressure by instruction:
[0]    [1]    [2]    [3]    [4]    [5]    [6.0]  [6.1]  Instructions:
 -      -     0.25   0.74    -     0.01    -      -     cmp	rdx, 6
 -      -      -      -      -     1.00    -      -     jne	.LBB5_2
 -      -      -      -      -      -     0.50   0.50   movzx	eax, word ptr [rdi + 4]
 -      -      -      -     1.00    -     0.48   0.52   mov	word ptr [rsi + 4], ax
 -      -      -      -      -      -     0.52   0.48   mov	eax, dword ptr [rdi]
 -      -      -      -     1.00    -     0.50   0.50   mov	dword ptr [rsi], eax
 -      -     0.25   0.75    -      -      -      -     cmp	rdx, 6
 -      -     1.00    -      -      -      -      -     sete	al
 -      -      -      -      -     1.00    -      -     ret

Annotation

Implementation Notes