xref: /kernel/linux/linux-6.6/tools/build/feature/test-libbpf.c
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-6.6/tools/build/feature/
162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ci#include <bpf/libbpf.h>
362306a36Sopenharmony_ci
462306a36Sopenharmony_ci#if !defined(LIBBPF_MAJOR_VERSION) || (LIBBPF_MAJOR_VERSION < 1)
562306a36Sopenharmony_ci#error At least libbpf 1.0 is required for Linux tools.
662306a36Sopenharmony_ci#endif
762306a36Sopenharmony_ci
862306a36Sopenharmony_ciint main(void)
962306a36Sopenharmony_ci{
1062306a36Sopenharmony_ci	return bpf_object__open("test") ? 0 : -1;
1162306a36Sopenharmony_ci}
12

Indexes created Thu Nov 07 10:32:03 CST 2024