Skip to content

Commit d822333

Browse files
authored
Merge branch 'master' into tracing
2 parents baa0494 + 50b9bc5 commit d822333

4 files changed

Lines changed: 1035 additions & 1 deletion

File tree

common/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ all: common_params.o common_user_bpf_xdp.o common_libbpf.o
66
CFLAGS := -g -Wall
77

88
LIBBPF_DIR = ../libbpf/src/
9-
CFLAGS += -I$(LIBBPF_DIR)/root/usr/include/
9+
CFLAGS += -I$(LIBBPF_DIR)/root/usr/include/ -I../headers
1010
# TODO: Do we need to make libbpf from this make file too?
1111

1212
common_params.o: common_params.c common_params.h

common/common.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ EXTRA_DEPS +=
3939
KERN_USER_H ?= $(wildcard common_kern_user.h)
4040

4141
CFLAGS ?= -I$(LIBBPF_DIR)/root/usr/include/ -g
42+
# Extra include for Ubuntu issue #44
43+
CFLAGS += -I/usr/include/x86_64-linux-gnu
4244
CFLAGS += -I../headers/
4345
LDFLAGS ?= -L$(LIBBPF_DIR)
4446

headers/bpf_helpers.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
/* SPDX-License-Identifier: GPL-2.0 */
22
/* Copied from $(LINUX)/tools/testing/selftests/bpf/bpf_helpers.h */
3+
4+
/* Added to fix compilation on old Ubuntu systems - please preserve when
5+
updating file! */
6+
#ifndef __always_inline
7+
# define __always_inline inline __attribute__((always_inline))
8+
#endif
9+
310
#ifndef __BPF_HELPERS_H
411
#define __BPF_HELPERS_H
512

0 commit comments

Comments
 (0)