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

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

File Facts

System
Linux kernel
Corpus path
rust/zerocopy/benches/read_from_prefix.x86-64.mca
Extension
.mca
Size
2267 bytes
Lines
64
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:      1200
Total Cycles:      905
Total uOps:        1300

Dispatch Width:    4
uOps Per Cycle:    1.44
IPC:               1.33
Block RThroughput: 3.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	rsi, 5
 1      1     1.00                        jbe	.LBB5_2
 1      5     0.50    *                   mov	eax, dword ptr [rdi]
 1      5     0.50    *                   movzx	edi, word ptr [rdi + 4]
 1      1     0.50                        shl	rdi, 32
 1      1     0.33                        or	rdi, rax
 1      1     0.50                        shl	rdi, 16
 1      1     0.33                        inc	rdi
 1      0     0.25                        xor	eax, eax
 1      1     0.33                        cmp	rsi, 6
 2      2     0.67                        cmovae	rax, rdi
 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]  
 -      -     3.32   3.32    -     3.36   1.00   1.00   

Resource pressure by instruction:
[0]    [1]    [2]    [3]    [4]    [5]    [6.0]  [6.1]  Instructions:
 -      -     0.05   0.94    -     0.01    -      -     cmp	rsi, 5
 -      -      -      -      -     1.00    -      -     jbe	.LBB5_2
 -      -      -      -      -      -      -     1.00   mov	eax, dword ptr [rdi]
 -      -      -      -      -      -     1.00    -     movzx	edi, word ptr [rdi + 4]
 -      -     0.71    -      -     0.29    -      -     shl	rdi, 32
 -      -      -     0.64    -     0.36    -      -     or	rdi, rax
 -      -     1.00    -      -      -      -      -     shl	rdi, 16
 -      -     0.31   0.40    -     0.29    -      -     inc	rdi
 -      -      -      -      -      -      -      -     xor	eax, eax
 -      -     0.34   0.35    -     0.31    -      -     cmp	rsi, 6
 -      -     0.91   0.99    -     0.10    -      -     cmovae	rax, rdi
 -      -      -      -      -     1.00    -      -     ret

Annotation

Implementation Notes