1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright (c) 2023 Isovalent */
5 #include <bpf/bpf_helpers.h>
6 #include <bpf/bpf_tracing.h>
10 __s64 bpf_map_sum_elem_count(struct bpf_map *map) __ksym;
13 int dump_bpf_map(struct bpf_iter__bpf_map *ctx)
15 struct seq_file *seq = ctx->meta->seq;
16 struct bpf_map *map = ctx->map;
18 if (map && map->id == target_id)
19 BPF_SEQ_PRINTF(seq, "%lld", bpf_map_sum_elem_count(map));
24 char _license[] SEC("license") = "GPL";