The function bpf_program__title has been deprecated in favor of
bpf_program__section_name.
if test "$have_xdp" = "yes"; then
AC_DEFINE([HAVE_PACKET_XDP],[1],[XDP support is available])
fi
+ AC_CHECK_FUNCS(bpf_program__section_name)
fi;
# Check for DAG support.
/* Let's check that our section is here */
bpf_object__for_each_program(bpfprog, bpfobj) {
+#ifdef HAVE_BPF_PROGRAM__SECTION_NAME
+ const char *title = bpf_program__section_name(bpfprog);
+#else
const char *title = bpf_program__title(bpfprog, 0);
+#endif
if (!strcmp(title, section)) {
if (config->flags & EBPF_SOCKET_FILTER) {
bpf_program__set_socket_filter(bpfprog);