요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
AES·SHA hardware usage counters
debugfs-pfo-nx-crypto:25-45AES encryption과 SHA-256·SHA-512 hashing에 대해 hardware가 처리한 총 bytes와 제출된 operation 수를 각각 누적합니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
1
What: /sys/kernel/debug/nx-crypto/*
2
Date: March 2012
3
KernelVersion: 3.4
4
Contact: Kent Yoder <[email protected]>
5
Description:
7
These debugfs interfaces are built by the nx-crypto driver, built in
8
arch/powerpc/crypto/nx.
10
Error Detection
11
===============
13
errors:
14
A u32 providing a total count of errors since the driver was loaded. The
15
only errors counted here are those returned from the hcall, H_COP_OP.
17
last_error:
18
The most recent non-zero return code from the H_COP_OP hcall. -EBUSY is not
19
recorded here (the hcall will retry until -EBUSY goes away).
21
last_error_pid:
22
The process ID of the process who received the most recent error from the
23
hcall.
25
Device Use
26
==========
28
aes_bytes:
29
The total number of bytes encrypted using AES in any of the driver's
30
supported modes.
32
aes_ops:
33
The total number of AES operations submitted to the hardware.
35
sha256_bytes:
36
The total number of bytes hashed by the hardware using SHA-256.
38
sha256_ops:
39
The total number of SHA-256 operations submitted to the hardware.
41
sha512_bytes:
42
The total number of bytes hashed by the hardware using SHA-512.
44
sha512_ops:
45
The total number of SHA-512 operations submitted to the hardware.
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
NX crypto error detection
1-23| 항목 | 내용 |
|---|---|
| What | /sys/kernel/debug/nx-crypto/* |
| Date | 2012년 3월 |
| KernelVersion | 3.4 |
| Contact | Kent Yoder <[email protected]> |
| Description | 이 debugfs interface들은 arch/powerpc/crypto/nx에 있는 nx-crypto driver가 만듭니다. |
| 파일 | 전문 번역 |
|---|---|
| errors | Driver가 load된 뒤 발생한 error의 총수를 제공하는 u32입니다. 여기서 세는 error는 H_COP_OP hcall이 반환한 것뿐입니다. |
| last_error | H_COP_OP hcall이 가장 최근에 반환한 non-zero return code입니다. -EBUSY는 여기에 기록하지 않습니다. -EBUSY가 사라질 때까지 hcall이 재시도하기 때문입니다. |
| last_error_pid | Hcall에서 가장 최근 error를 받은 process의 process ID입니다. |
NX crypto device 사용량
25-45| 파일 | 전문 번역 |
|---|---|
| aes_bytes | Driver가 지원하는 mode 중 어느 것이든 AES로 암호화한 총 byte 수입니다. |
| aes_ops | Hardware에 제출한 AES operation의 총수입니다. |
| sha256_bytes | Hardware가 SHA-256으로 hash한 총 byte 수입니다. |
| sha256_ops | Hardware에 제출한 SHA-256 operation의 총수입니다. |
| sha512_bytes | Hardware가 SHA-512로 hash한 총 byte 수입니다. |
| sha512_ops | Hardware에 제출한 SHA-512 operation의 총수입니다. |
AES request→NX crypto hardware→aes_bytes plus aes_ops
SHA-256 request→NX crypto hardware→sha256_bytes plus sha256_ops
SHA-512 request→NX crypto hardware→sha512_bytes plus sha512_ops
H_COP_OP nonzero return→-EBUSY retries and is not recorded→Other error updates errors, last_error, last_error_pid
Hardware operation은 algorithm별 bytes·ops에 누적되고 H_COP_OP failure는 별도 error state로 기록된다.
H_COP_OP error detection
debugfs-pfo-nx-crypto:1-23errors는 driver load 이후 H_COP_OP hcall이 반환한 error 수를 세고, last_error와 last_error_pid는 최신 non-zero code와 이를 받은 process를 기록합니다. 재시도되는 -EBUSY는 기록하지 않습니다.