summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/testing_helpers.h
blob: d4f8e749611bc5caa3074dc28916b228e559e7e9 (plain)
1
2
3
4
5
6
7
8
/* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
/* Copyright (C) 2020 Facebook, Inc. */
#include <stdbool.h>
#include <bpf/bpf.h>
#include <bpf/libbpf.h>

int parse_num_list(const char *s, bool **set, int *set_len);
__u32 link_info_prog_id(const struct bpf_link *link, struct bpf_link_info *info);