/tools/testing/selftests/netfilter/ |
D | nft_meta.sh | 54 meta iif lo counter name "iifcount" 55 meta iifname "lo" counter name "iifnamecount" 56 meta iifgroup "default" counter name "iifgroupcount" 57 meta iiftype "loopback" counter name "iiftypecount" 58 meta nfproto ipv4 counter name "infproto4count" 59 meta l4proto icmp counter name "il4protocounter" 60 meta mark 42 counter name "imarkcounter" 61 meta cpu 0 counter name "icpu0counter" 62 meta time "$lastyear-01-01" - "$lastyear-12-31" counter name ilastyearcounter 63 meta time "$currentyear-01-01" - "$currentyear-12-31" counter name icurrentyearcounter [all …]
|
D | conntrack_icmp_related.sh | 138 meta l4proto icmpv6 icmpv6 type "packet-too-big" ct state "related" counter name "related" accept 139 …meta l4proto icmp icmp type "destination-unreachable" ct state "related" counter name "related" ac… 140 meta l4proto { icmp, icmpv6 } ct state new,established accept 159 meta l4proto { icmp, icmpv6 } ct state established,untracked accept 160 meta l4proto { icmp, icmpv6 } ct state "related" counter name "related" accept 175 meta l4proto { icmp, icmpv6 } ct state established,untracked accept 177 meta l4proto { icmp, icmpv6 } ct state "new" counter name "new" accept 178 meta l4proto { icmp, icmpv6 } ct state "established" counter name "established" accept 183 meta l4proto { icmp, icmpv6 } ct state established,untracked accept 185 meta l4proto { icmp, icmpv6 } ct state "new" counter name "new" [all …]
|
D | nft_nat_zones.sh | 187 ct original zone set meta iifname map @iiftozone 188 meta mark set meta iifname map @iiftomark 190 …tcp flags & (syn|ack) == ack add @inflows { ip saddr . tcp sport . meta iifname . ip daddr . tcp d… 191 add @inflows6 { ip6 saddr . tcp sport . meta iifname . ip6 daddr . tcp dport counter } 192 ip protocol icmp add @inicmp { ip saddr . meta iifname . ip daddr counter } 197 ct mark set meta mark meta oifname veth0 masquerade 202 ct direction reply meta mark set ct mark
|
D | nft_flowtable.sh | 172 meta oif "veth1" tcp dport 12345 flow offload @f1 counter 177 tcp dport 12345 meta length gt 200 ct mark set 1 counter 186 meta length gt $lmtu accept comment something-to-grep-for 196 meta length lt 200 oif "veth1" tcp dport 12345 counter accept 198 meta nfproto ipv4 meta l4proto icmp accept 199 meta nfproto ipv6 meta l4proto icmpv6 accept 346 meta iif "veth0" ip daddr 10.6.6.6 tcp dport 1666 counter dnat ip to 10.0.2.99:12345 351 meta oifname "veth1" counter masquerade 401 meta iif "br0" ip daddr 10.6.6.6 tcp dport 1666 counter dnat ip to 10.0.2.99:12345 406 meta oifname "veth1" counter masquerade
|
/tools/testing/selftests/bpf/progs/ |
D | test_xdp_bpf2bpf.c | 32 struct meta { struct 47 struct meta meta; in BPF_PROG() local 51 meta.ifindex = xdp->rxq->dev->ifindex; in BPF_PROG() 52 meta.pkt_len = data_end - data; in BPF_PROG() 54 ((__u64) meta.pkt_len << 32) | in BPF_PROG() 56 &meta, sizeof(meta)); in BPF_PROG()
|
D | kfree_skb.c | 51 struct meta { struct 69 struct meta meta = {}; in BPF_PROG() argument 84 meta.ifindex = _(dev->ifindex); in BPF_PROG() 85 meta.cb8_0 = cb8[8]; in BPF_PROG() 86 meta.cb32_0 = cb32[2]; in BPF_PROG() 99 meta.ifindex, data, pkt_data); in BPF_PROG() 100 bpf_printk("cb8_0:%x cb32_0:%x\n", meta.cb8_0, meta.cb32_0); in BPF_PROG() 102 if (users != 1 || pkt_data != bpf_htons(0x86dd) || meta.ifindex != 1) in BPF_PROG() 108 &meta, sizeof(meta)); in BPF_PROG()
|
D | bpf_iter.h | 53 struct bpf_iter_meta *meta; member 58 struct bpf_iter_meta *meta; member 63 struct bpf_iter_meta *meta; member 68 struct bpf_iter_meta *meta; member 75 struct bpf_iter_meta *meta; member 81 struct bpf_iter_meta *meta; member 86 struct bpf_iter_meta *meta; member 97 struct bpf_iter_meta *meta; member 109 struct bpf_iter_meta *meta; member 115 struct bpf_iter_meta *meta; member [all …]
|
D | profiler.h | 87 struct var_metadata_t meta; member 96 struct var_metadata_t meta; member 110 struct var_metadata_t meta; member 123 struct var_metadata_t meta; member 131 struct var_metadata_t meta; member
|
D | bpf_iter_task.c | 11 struct seq_file *seq = ctx->meta->seq; in dump_task() 20 if (ctx->meta->seq_num == 0) in dump_task()
|
D | bpf_iter_bpf_map.c | 11 struct seq_file *seq = ctx->meta->seq; in dump_bpf_map() 12 __u64 seq_num = ctx->meta->seq_num; in dump_bpf_map()
|
D | bpf_iter_task_btf.c | 18 struct seq_file *seq = ctx->meta->seq; in dump_task_struct() 27 if (ctx->meta->seq_num == 0) in dump_task_struct()
|
D | profiler.inc.h | 175 if (arr_struct->array[i].meta.pid == spid) in get_var_spid_index() 368 void* payload = populate_var_metadata(&kill_data->meta, task, spid, kill_data->payload); in get_var_kill_data() 373 kill_data->meta.type = KILL_EVENT; in get_var_kill_data() 411 if (arr_struct->array[i].meta.pid == 0) { in trace_var_sys_kill() 468 struct var_metadata_t* meta) in bpf_stats_pre_submit_var_perf_event() argument 472 meta->bpf_stats_num_perf_events = in bpf_stats_pre_submit_var_perf_event() 475 meta->bpf_stats_start_ktime_ns = bpf_stat_ctx->start_time_ns; in bpf_stats_pre_submit_var_perf_event() 476 meta->cpu_id = bpf_get_smp_processor_id(); in bpf_stats_pre_submit_var_perf_event() 566 sysctl_data->meta.type = SYSCTL_EVENT; in BPF_KPROBE() 567 void* payload = populate_var_metadata(&sysctl_data->meta, task, pid, sysctl_data->payload); in BPF_KPROBE() [all …]
|
D | bpf_iter_task_file.c | 14 struct seq_file *seq = ctx->meta->seq; in dump_task_file() 22 if (ctx->meta->seq_num == 0) { in dump_task_file()
|
D | bpf_iter_bpf_array_map.c | 34 bpf_seq_write(ctx->meta->seq, key, sizeof(__u32)); in dump_bpf_array_map() 35 bpf_seq_write(ctx->meta->seq, val, sizeof(__u64)); in dump_bpf_array_map()
|
D | bpf_iter_test_kern4.c | 18 struct seq_file *seq = ctx->meta->seq; in dump_bpf_map() 30 seq_num = ctx->meta->seq_num; in dump_bpf_map()
|
D | bpf_iter_task_stack.c | 15 struct seq_file *seq = ctx->meta->seq; in dump_task_stack() 43 struct seq_file *seq = ctx->meta->seq; in get_task_user_stacks()
|
D | bpf_iter_netlink.c | 17 struct seq_file *seq = ctx->meta->seq; in dump_netlink() 27 if (ctx->meta->seq_num == 0) in dump_netlink()
|
D | bpf_iter_unix.c | 35 seq = ctx->meta->seq; in dump_unix() 36 seq_num = ctx->meta->seq_num; in dump_unix()
|
D | bpf_iter_udp4.c | 27 struct seq_file *seq = ctx->meta->seq; in dump_udp4() 38 seq_num = ctx->meta->seq_num; in dump_udp4()
|
D | bpf_iter_bpf_hash_map.c | 45 struct seq_file *seq = ctx->meta->seq; in dump_bpf_hash_map() 46 __u32 seq_num = ctx->meta->seq_num; in dump_bpf_hash_map()
|
D | bpf_iter_udp6.c | 34 struct seq_file *seq = ctx->meta->seq; in dump_udp6() 46 seq_num = ctx->meta->seq_num; in dump_udp6()
|
D | bpf_iter_test_kern_common.h | 12 struct seq_file *seq = ctx->meta->seq; in dump_task()
|
D | bpf_iter_test_kern3.c | 11 struct seq_file *seq = ctx->meta->seq; in dump_task()
|
/tools/testing/selftests/bpf/prog_tests/ |
D | kfree_skb.c | 5 struct meta { struct 20 struct meta *meta = (struct meta *)data; in on_sample() argument 21 struct ipv6_packet *pkt_v6 = data + sizeof(*meta); in on_sample() 24 if (CHECK(size != 72 + sizeof(*meta), "check_size", "size %u != %zu\n", in on_sample() 25 size, 72 + sizeof(*meta))) in on_sample() 27 if (CHECK(meta->ifindex != 1, "check_meta_ifindex", in on_sample() 28 "meta->ifindex = %d\n", meta->ifindex)) in on_sample() 31 if (CHECK(meta->cb8_0 != cb.cb8[0], "check_cb8_0", "cb8_0 %x != %x\n", in on_sample() 32 meta->cb8_0, cb.cb8[0])) in on_sample() 34 if (CHECK(meta->cb32_0 != cb.cb32[0], "check_cb32_0", in on_sample() [all …]
|
D | xdp_bpf2bpf.c | 8 struct meta { struct 16 struct meta *meta = (struct meta *)data; in on_sample() argument 17 struct ipv4_packet *trace_pkt_v4 = data + sizeof(*meta); in on_sample() 19 if (CHECK(size < sizeof(pkt_v4) + sizeof(*meta), in on_sample() 21 size, sizeof(pkt_v4) + sizeof(*meta))) in on_sample() 24 if (CHECK(meta->ifindex != if_nametoindex("lo"), "check_meta_ifindex", in on_sample() 25 "meta->ifindex = %d\n", meta->ifindex)) in on_sample() 28 if (CHECK(meta->pkt_len != sizeof(pkt_v4), "check_meta_pkt_len", in on_sample()
|