Commit 00ba29b
committed
doc(arch): sync L1/L2 architecture docs with adapter/syscall LD_PRELOAD changes
Update the Layer 1 (System Overview) and Layer 2 (Interface Spec) docs,
in both English (docs/) and Simplified Chinese (docs/zh_cn/), so they
match the current state of adapter/syscall/ described in
adapter/syscall/README.md.
L1 changes
- docs/01-LAYER1-ARCHITECTURE.md, docs/zh_cn/01-LAYER1-ARCHITECTURE.md:
expand the source-tree comment for adapter/syscall/ to spell out
that it builds libff_syscall.so + a standalone fstack instance and
communicates over Hugepage shared memory (sem path or
FF_USE_RING_IPC lock-free ring path).
- docs/F-Stack_Architecture_Layer1_System_Overview.md and the zh_cn
counterpart: rewrite Section 7.1 'Method 2: LD_PRELOAD Interception'
to describe the two-process model (the fstack instance must be
started before the preloaded application), enumerate the full set
of hooked POSIX entries (socket/bind/connect/accept/accept4/listen/
close/read/write/send*/recv*/__read_chk/__recv_chk/__recvfrom_chk/
ioctl/epoll_*/fork) and the FF_KERNEL_EVENT / FF_MULTI_SC /
FF_USE_RING_IPC switches.
L2 changes
- docs/F-Stack_Architecture_Layer2_Interface_Specification.md and the
zh_cn counterpart: fix the library-name error in Section 6.2 (was
'LD_PRELOAD=libfstack.so', now 'libff_syscall.so'), describe the
two-process model, list the hooked POSIX entries and the three
runtime/compile switches in a small table.
All cross references point to adapter/syscall/README.md as the
single source of truth. Line endings normalized to LF.1 parent bc7c380 commit 00ba29b
6 files changed
Lines changed: 133 additions & 44 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
96 | 100 | | |
97 | 101 | | |
98 | 102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
144 | 147 | | |
145 | 148 | | |
146 | 149 | | |
| |||
775 | 778 | | |
776 | 779 | | |
777 | 780 | | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
778 | 789 | | |
779 | | - | |
780 | | - | |
781 | | - | |
782 | | - | |
783 | | - | |
784 | | - | |
785 | | - | |
786 | | - | |
787 | | - | |
788 | | - | |
789 | | - | |
790 | | - | |
791 | | - | |
792 | | - | |
793 | | - | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
794 | 807 | | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
795 | 813 | | |
796 | 814 | | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
797 | 818 | | |
798 | 819 | | |
799 | 820 | | |
| |||
Lines changed: 27 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1026 | 1026 | | |
1027 | 1027 | | |
1028 | 1028 | | |
1029 | | - | |
| 1029 | + | |
1030 | 1030 | | |
1031 | | - | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
1032 | 1036 | | |
1033 | 1037 | | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
1034 | 1041 | | |
1035 | | - | |
| 1042 | + | |
1036 | 1043 | | |
1037 | 1044 | | |
1038 | | - | |
| 1045 | + | |
1039 | 1046 | | |
1040 | 1047 | | |
1041 | | - | |
| 1048 | + | |
1042 | 1049 | | |
1043 | 1050 | | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
1044 | 1066 | | |
1045 | 1067 | | |
1046 | 1068 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
96 | 100 | | |
97 | 101 | | |
98 | 102 | | |
| |||
Lines changed: 34 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
142 | 145 | | |
143 | 146 | | |
144 | 147 | | |
| |||
770 | 773 | | |
771 | 774 | | |
772 | 775 | | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
773 | 782 | | |
774 | | - | |
775 | | - | |
776 | | - | |
777 | | - | |
778 | | - | |
779 | | - | |
780 | | - | |
781 | | - | |
782 | | - | |
783 | | - | |
784 | | - | |
785 | | - | |
786 | | - | |
787 | | - | |
788 | | - | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
789 | 800 | | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
790 | 806 | | |
791 | 807 | | |
| 808 | + | |
| 809 | + | |
792 | 810 | | |
793 | 811 | | |
794 | 812 | | |
| |||
Lines changed: 25 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1181 | 1181 | | |
1182 | 1182 | | |
1183 | 1183 | | |
1184 | | - | |
| 1184 | + | |
1185 | 1185 | | |
1186 | | - | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
1187 | 1190 | | |
1188 | 1191 | | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
1189 | 1195 | | |
1190 | | - | |
| 1196 | + | |
1191 | 1197 | | |
1192 | 1198 | | |
1193 | | - | |
| 1199 | + | |
1194 | 1200 | | |
1195 | 1201 | | |
1196 | | - | |
| 1202 | + | |
1197 | 1203 | | |
1198 | 1204 | | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
1199 | 1219 | | |
1200 | 1220 | | |
1201 | 1221 | | |
| |||
0 commit comments