← Documents Documentation/ABI/testing/configfs-stp-policy-p_sys-t GitHub 원문 ↗

Linux 6.18.37 · ABI / testing

MIPI SyS-T STP policy configfs ABI

p_sys-t policy node의 source UUID, payload length metadata, timestamp 주기와 CLOCKSYNC packet 주기를 제어하는 configfs attribute를 설명합니다.

Source pathDocumentation/ABI/testing/configfs-stp-policy-p_sys-t
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.

1. 요약·해설

원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.

Source UUID와 payload length

configfs-stp-policy-p_sys-t:1-21

Node 생성 시 random UUID를 부여해 같은 master/channel 범위의 source를 구분하고, 필요하면 SyS-T header에 payload length를 포함합니다.

Timestamp와 CLOCKSYNC interval

configfs-stp-policy-p_sys-t:23-41

Source packet metadata의 timestamp와 별도 CLOCKSYNC packet의 millisecond 주기를 설정하며 각각 0은 전송하지 않음을 뜻합니다.

2. 영어 원문 전체

번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.

원문 전체 펼치기
1 What: /config/stp-policy/<device>:p_sys-t.<policy>/<node>/uuid
2 Date: June 2018
3 KernelVersion: 4.19
4 Description:
5 UUID source identifier string, RW.
6 Default value is randomly generated at the mkdir <node> time.
7 Data coming from trace sources that use this <node> will be
8 tagged with this UUID in the MIPI SyS-T packet stream, to
9 allow the decoder to discern between different sources
10 within the same master/channel range, and identify the
11 higher level decoders that may be needed for each source.
12
13 What: /config/stp-policy/<device>:p_sys-t.<policy>/<node>/do_len
14 Date: June 2018
15 KernelVersion: 4.19
16 Description:
17 Include payload length in the MIPI SyS-T header, boolean.
18 If enabled, the SyS-T protocol encoder will include payload
19 length in each packet's metadata. This is normally redundant
20 if the underlying transport protocol supports marking message
21 boundaries (which STP does), so this is off by default.
22
23 What: /config/stp-policy/<device>:p_sys-t.<policy>/<node>/ts_interval
24 Date: June 2018
25 KernelVersion: 4.19
26 Description:
27 Time interval in milliseconds. Include a timestamp in the
28 MIPI SyS-T packet metadata, if this many milliseconds have
29 passed since the previous packet from this source. Zero is
30 the default and stands for "never send the timestamp".
31
32 What: /config/stp-policy/<device>:p_sys-t.<policy>/<node>/clocksync_interval
33 Date: June 2018
34 KernelVersion: 4.19
35 Description:
36 Time interval in milliseconds. Send a CLOCKSYNC packet if
37 this many milliseconds have passed since the previous
38 CLOCKSYNC packet from this source. Zero is the default and
39 stands for "never send the CLOCKSYNC". It makes sense to
40 use this option with sources that generate constant and/or
41 periodic data, like stm_heartbeat.
42

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.

MIPI SyS-T source UUID

1-11
항목내용
What/config/stp-policy/<device>:p_sys-t.<policy>/<node>/uuid
Date2018년 6월
KernelVersion4.19
AccessRead/write
DescriptionUUID source identifier 문자열이다. 기본값은 <node>를 mkdir하는 시점에 무작위로 생성된다.

이 <node>를 사용하는 trace source의 data는 MIPI SyS-T packet stream에서 이 UUID로 tag된다. Decoder는 이를 이용해 같은 master/channel 범위 안의 서로 다른 source를 구별하고, 각 source에 필요할 수 있는 상위 수준 decoder를 식별한다.

SyS-T header의 payload length

13-21
항목내용
What/config/stp-policy/<device>:p_sys-t.<policy>/<node>/do_len
Date2018년 6월
KernelVersion4.19
DescriptionMIPI SyS-T header에 payload length를 포함할지를 정하는 boolean이다.

활성화하면 SyS-T protocol encoder가 각 packet의 metadata에 payload length를 포함한다. STP처럼 기반 transport protocol이 message boundary 표시를 지원하면 보통 중복 정보이므로 기본값은 off이다.

Packet metadata timestamp interval

23-30
항목내용
What/config/stp-policy/<device>:p_sys-t.<policy>/<node>/ts_interval
Date2018년 6월
KernelVersion4.19
DescriptionMillisecond 단위 시간 간격이다. 이 source의 이전 packet 이후 지정한 millisecond가 지났다면 MIPI SyS-T packet metadata에 timestamp를 포함한다.
기본값0이며, timestamp를 절대 보내지 않는다는 뜻이다.

CLOCKSYNC packet interval

32-41
항목내용
What/config/stp-policy/<device>:p_sys-t.<policy>/<node>/clocksync_interval
Date2018년 6월
KernelVersion4.19
DescriptionMillisecond 단위 시간 간격이다. 이 source의 이전 CLOCKSYNC packet 이후 지정한 millisecond가 지났다면 CLOCKSYNC packet을 보낸다.
기본값0이며, CLOCKSYNC를 절대 보내지 않는다는 뜻이다.

이 option은 `stm_heartbeat`처럼 일정하거나 주기적인 data를 생성하는 source와 함께 사용하는 것이 합리적이다.

p_sys-t node가 SyS-T stream에 추가하는 정보
Trace source datap_sys-t <node>uuid tag같은 master/channel 범위의 source 식별
Trace source datado_len = onPacket metadata에 payload length 포함
Trace source packetts_interval 경과Packet metadata에 timestamp 포함
Periodic sourceclocksync_interval 경과CLOCKSYNC packet 전송

Source identity는 UUID로 유지되고, payload length·timestamp·CLOCKSYNC는 각각의 설정과 시간 조건에 따라 선택적으로 추가된다.