@@ -242,19 +242,19 @@ Create a new KernelScript project with template code:
242242
243243``` bash
244244# Create XDP project
245- kernelscript init --btf-vmlinux-path /sys/kernel/btf/vmlinux xdp my_packet_filter
245+ kernelscript init xdp my_packet_filter
246246
247247# Create TC project
248- kernelscript init --btf-vmlinux-path /sys/kernel/btf/vmlinux tc my_traffic_shaper
248+ kernelscript init tc my_traffic_shaper
249249
250250# Create kprobe project
251- kernelscript init --btf-vmlinux-path /sys/kernel/btf/vmlinux kprobe my_tracer
251+ kernelscript init kprobe/sys_read my_tracer
252252
253253# Create project with custom BTF path
254254kernelscript init --btf-vmlinux-path /custom/path/vmlinux xdp my_project
255255
256256# Create struct_ops project
257- kernelscript init --btf-vmlinux-path /sys/kernel/btf/vmlinux tcp_congestion_ops my_congestion_control
257+ kernelscript init tcp_congestion_ops my_congestion_control
258258```
259259
260260After initialization, you get:
@@ -269,16 +269,10 @@ my_project/
269269- ` xdp ` - XDP programs for packet processing
270270- ` tc ` - Traffic control programs
271271- ` kprobe ` - Kernel function tracing
272- - ` uprobe ` - User function tracing
273272- ` tracepoint ` - Kernel tracepoint programs
274- - ` lsm ` - Linux Security Module programs
275- - ` cgroup_skb ` - Cgroup socket buffer programs
276273
277274** Available struct_ops:**
278275- ` tcp_congestion_ops ` - TCP congestion control
279- - ` bpf_iter_ops ` - BPF iterator operations
280- - ` bpf_struct_ops_test ` - Test struct operations
281- - Custom struct_ops names
282276
283277
284278### Compile KernelScript Programs
@@ -348,7 +342,7 @@ sudo ./my_project # Run the program
348342
3493433 . ** Create your first project:**
350344 ``` bash
351- kernelscript -- init xdp hello_world
345+ kernelscript init xdp hello_world
352346 cd hello_world/
353347 ```
354348
0 commit comments