@@ -121,6 +121,8 @@ described in more detail in the footnotes.
121
121
+-------------------------------------------+----------------------------------------+----------------------------------+-----------+
122
122
| ``BPF_PROG_TYPE_LWT_XMIT `` | | ``lwt_xmit `` | |
123
123
+-------------------------------------------+----------------------------------------+----------------------------------+-----------+
124
+ | ``BPF_PROG_TYPE_NETFILTER `` | | ``netfilter `` | |
125
+ +-------------------------------------------+----------------------------------------+----------------------------------+-----------+
124
126
| ``BPF_PROG_TYPE_PERF_EVENT `` | | ``perf_event `` | |
125
127
+-------------------------------------------+----------------------------------------+----------------------------------+-----------+
126
128
| ``BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE `` | | ``raw_tp.w+ `` [#rawtp ]_ | |
@@ -131,11 +133,23 @@ described in more detail in the footnotes.
131
133
+ + +----------------------------------+-----------+
132
134
| | | ``raw_tracepoint+ `` | |
133
135
+-------------------------------------------+----------------------------------------+----------------------------------+-----------+
134
- | ``BPF_PROG_TYPE_SCHED_ACT `` | | ``action `` | |
136
+ | ``BPF_PROG_TYPE_SCHED_ACT `` | | ``action `` [ #tc_legacy ]_ | |
135
137
+-------------------------------------------+----------------------------------------+----------------------------------+-----------+
136
- | ``BPF_PROG_TYPE_SCHED_CLS `` | | ``classifier `` | |
138
+ | ``BPF_PROG_TYPE_SCHED_CLS `` | | ``classifier `` [ #tc_legacy ]_ | |
137
139
+ + +----------------------------------+-----------+
138
- | | | ``tc `` | |
140
+ | | | ``tc `` [#tc_legacy ]_ | |
141
+ + +----------------------------------------+----------------------------------+-----------+
142
+ | | ``BPF_NETKIT_PRIMARY `` | ``netkit/primary `` | |
143
+ + +----------------------------------------+----------------------------------+-----------+
144
+ | | ``BPF_NETKIT_PEER `` | ``netkit/peer `` | |
145
+ + +----------------------------------------+----------------------------------+-----------+
146
+ | | ``BPF_TCX_INGRESS `` | ``tc/ingress `` | |
147
+ + +----------------------------------------+----------------------------------+-----------+
148
+ | | ``BPF_TCX_EGRESS `` | ``tc/egress `` | |
149
+ + +----------------------------------------+----------------------------------+-----------+
150
+ | | ``BPF_TCX_INGRESS `` | ``tcx/ingress `` | |
151
+ + +----------------------------------------+----------------------------------+-----------+
152
+ | | ``BPF_TCX_EGRESS `` | ``tcx/egress `` | |
139
153
+-------------------------------------------+----------------------------------------+----------------------------------+-----------+
140
154
| ``BPF_PROG_TYPE_SK_LOOKUP `` | ``BPF_SK_LOOKUP `` | ``sk_lookup `` | |
141
155
+-------------------------------------------+----------------------------------------+----------------------------------+-----------+
@@ -155,7 +169,9 @@ described in more detail in the footnotes.
155
169
+-------------------------------------------+----------------------------------------+----------------------------------+-----------+
156
170
| ``BPF_PROG_TYPE_SOCK_OPS `` | ``BPF_CGROUP_SOCK_OPS `` | ``sockops `` | |
157
171
+-------------------------------------------+----------------------------------------+----------------------------------+-----------+
158
- | ``BPF_PROG_TYPE_STRUCT_OPS `` | | ``struct_ops+ `` | |
172
+ | ``BPF_PROG_TYPE_STRUCT_OPS `` | | ``struct_ops+ `` [#struct_ops ]_ | |
173
+ + + +----------------------------------+-----------+
174
+ | | | ``struct_ops.s+ `` [#struct_ops ]_ | Yes |
159
175
+-------------------------------------------+----------------------------------------+----------------------------------+-----------+
160
176
| ``BPF_PROG_TYPE_SYSCALL `` | | ``syscall `` | Yes |
161
177
+-------------------------------------------+----------------------------------------+----------------------------------+-----------+
@@ -209,5 +225,11 @@ described in more detail in the footnotes.
209
225
``a-zA-Z0-9_.*? ``.
210
226
.. [#lsm ] The ``lsm `` attachment format is ``lsm[.s]/<hook> ``.
211
227
.. [#rawtp ] The ``raw_tp `` attach format is ``raw_tracepoint[.w]/<tracepoint> ``.
228
+ .. [#tc_legacy ] The ``tc ``, ``classifier `` and ``action `` attach types are deprecated, use
229
+ ``tcx/* `` instead.
230
+ .. [#struct_ops ] The ``struct_ops `` attach format supports ``struct_ops[.s]/<name> `` convention,
231
+ but ``name `` is ignored and it is recommended to just use plain
232
+ ``SEC("struct_ops[.s]") ``. The attachments are defined in a struct initializer
233
+ that is tagged with ``SEC(".struct_ops[.link]") ``.
212
234
.. [#tp ] The ``tracepoint `` attach format is ``tracepoint/<category>/<name> ``.
213
235
.. [#iter ] The ``iter `` attach format is ``iter[.s]/<struct-name> ``.
0 commit comments