Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bpf unit test build in dev VM #10735

Merged
merged 2 commits into from Mar 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion bpf/lib/conntrack_test.h
Expand Up @@ -85,7 +85,7 @@ static void test___ct_update_timeout()
static void test___ct_lookup()
{
void *map = __ipv4_map;
struct ct_entry *entry = &map[0];
struct ct_entry *entry = &__ipv4_map[0];
struct __ctx_buff ctx = {};
void *tuple = (void *)__TUPLE_EXIST;

Expand Down
3 changes: 2 additions & 1 deletion test/bpf/Makefile
Expand Up @@ -8,6 +8,7 @@ LIB := $(shell find ../../bpf/ -name '*.h')

CLANG ?= $(QUIET) clang
LLC ?= llc
GCC ?= $(QUIET) gcc

BPF_TARGETS := elf-demo.o
TARGETS := $(BPF_TARGETS) unit-test
Expand All @@ -19,7 +20,7 @@ elf-demo.o: elf-demo.c

%: %.c $(LIB)
@$(ECHO_CC)
$(CLANG) $(FLAGS) -I../../bpf/ $< -o $@
$(GCC) $(FLAGS) -I../../bpf/ $< -o $@

clean:
@$(ECHO_CLEAN)
Expand Down