1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright (c) 2022 Red Hat, Inc. */
4 #include <bpf/bpf_helpers.h>
6 char _license[] SEC("license") = "GPL";
9 int dump_bpf_link(struct bpf_iter__bpf_link *ctx)
11 struct seq_file *seq = ctx->meta->seq;
12 struct bpf_link *link = ctx->link;
19 bpf_seq_write(seq, &link_id, sizeof(link_id));