Cilium v1.5 Documentationtrace_printk(____fmt, sizeof(____fmt), ##__VA_ARGS__); \ }) #endif The program can then use the macro naturally like printk("skb len:%u\n", skb->len); . The output will then be wri�en to the trace pipe and value structures. For example, BTF in combina�on with BPF maps and the BPF_ANNOTATE_KV_PAIR() macro from iproute2 will result in the following dump ( test_xdp_noinline.o from kernel sel�ests): # cat BPF_ANNOTATE_KV_PAIR(ctl_array, __u32, struct ctl_value); [...] The BPF_ANNOTATE_KV_PAIR() macro forces a map-specific ELF sec�on containing an empty key and value, this enables the iproute2 BPF0 码力 | 740 页 | 12.52 MB | 1 年前3
Cilium v1.6 Documentationtrace_printk(____fmt, sizeof(____fmt), ##__VA_ARGS__); \ }) #endif The program can then use the macro naturally like printk("skb len:%u\n", skb->len);. The output will then be written to the trace pipe and value structures. For example, BTF in combination with BPF maps and the BPF_ANNOTATE_KV_PAIR() macro from iproute2 will result in the following dump (test_xdp_noinline.o from kernel selftests): # cat BPF_ANNOTATE_KV_PAIR(ctl_array, __u32, struct ctl_value); [...] The BPF_ANNOTATE_KV_PAIR() macro forces a map-specific ELF section containing an empty key and value, this enables the iproute2 BPF0 码力 | 734 页 | 11.45 MB | 1 年前3
Cilium v1.7 Documentationtrace_printk(____fmt, sizeof(____fmt), ##__VA_ARGS__); \ }) #endif The program can then use the macro naturally like printk("skb len:%u\n", skb->len);. The output will then be written to the trace pipe and value structures. For example, BTF in combination with BPF maps and the BPF_ANNOTATE_KV_PAIR() macro from iproute2 will result in the following dump (test_xdp_noinline.o from kernel selftests): # cat BPF_ANNOTATE_KV_PAIR(ctl_array, __u32, struct ctl_value); [...] The BPF_ANNOTATE_KV_PAIR() macro forces a map-specific ELF section containing an empty key and value, this enables the iproute2 BPF0 码力 | 885 页 | 12.41 MB | 1 年前3
Cilium v1.8 Documentationtrace_printk(____fmt, sizeof(____fmt), ##__VA_ARGS__); \ }) #endif The program can then use the macro naturally like printk("skb len:%u\n", skb->len);. The output will then be written to the trace pipe and value structures. For example, BTF in combination with BPF maps and the BPF_ANNOTATE_KV_PAIR() macro from iproute2 will result in the following dump (test_xdp_noinline.o from kernel selftests): # cat BPF_ANNOTATE_KV_PAIR(ctl_array, __u32, struct ctl_value); [...] The BPF_ANNOTATE_KV_PAIR() macro forces a map-specific ELF section containing an empty key and value, this enables the iproute2 BPF0 码力 | 1124 页 | 21.33 MB | 1 年前3
Cilium v1.10 Documentationtrace_printk(____fmt, sizeof(____fmt), ##__VA_ARGS__); \ }) #endif The program can then use the macro naturally like printk("skb len:%u\n", skb->len);. The output will then be written to the trace pipe and value structures. For example, BTF in combination with BPF maps and the BPF_ANNOTATE_KV_PAIR() macro from iproute2 will result in the following dump (test_xdp_noinline.o from kernel selftests): # cat BPF_ANNOTATE_KV_PAIR(ctl_array, __u32, struct ctl_value); [...] The BPF_ANNOTATE_KV_PAIR() macro forces a map-specific ELF section containing an empty key and value, this enables the iproute2 BPF0 码力 | 1307 页 | 19.26 MB | 1 年前3
Cilium v1.9 Documentationtrace_printk(____fmt, sizeof(____fmt), ##__VA_ARGS__); \ }) #endif The program can then use the macro naturally like printk("skb len:%u\n", skb->len);. The output will then be written to the trace pipe and value structures. For example, BTF in combination with BPF maps and the BPF_ANNOTATE_KV_PAIR() macro from iproute2 will result in the following dump (test_xdp_noinline.o from kernel selftests): # cat BPF_ANNOTATE_KV_PAIR(ctl_array, __u32, struct ctl_value); [...] The BPF_ANNOTATE_KV_PAIR() macro forces a map-specific ELF section containing an empty key and value, this enables the iproute2 BPF0 码力 | 1263 页 | 18.62 MB | 1 年前3
Cilium v1.11 Documentationtrace_printk(____fmt, sizeof(____fmt), ##__VA_ARGS__); \ }) #endif The program can then use the macro naturally like printk("skb len:%u\n", skb->len);. The output will then be written to the trace pipe and value structures. For example, BTF in combination with BPF maps and the BPF_ANNOTATE_KV_PAIR() macro from iproute2 will result in the following dump (test_xdp_noinline.o from kernel selftests): # cat BPF_ANNOTATE_KV_PAIR(ctl_array, __u32, struct ctl_value); [...] The BPF_ANNOTATE_KV_PAIR() macro forces a map-specific ELF section containing an empty key and value, this enables the iproute2 BPF0 码力 | 1373 页 | 19.37 MB | 1 年前3
共 7 条
- 1













