Skip to content

Commit

Permalink
TEST
Browse files Browse the repository at this point in the history
bpf userspace fix

fix

Signed-off-by: Geliang Tang <[email protected]>
  • Loading branch information
Geliang Tang committed Oct 10, 2024
1 parent d20f409 commit 153f337
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tools/testing/selftests/bpf/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ srctree := $(patsubst %/,%,$(dir $(srctree)))
endif

CFLAGS += -g $(OPT_FLAGS) -rdynamic \
-Wall -Werror -fno-omit-frame-pointer \
-fno-omit-frame-pointer \
$(GENFLAGS) $(SAN_CFLAGS) $(LIBELF_CFLAGS) \
-I$(CURDIR) -I$(INCLUDE_DIR) -I$(GENDIR) -I$(LIBDIR) \
-I$(TOOLSINCDIR) -I$(APIDIR) -I$(OUTPUT)
Expand Down
4 changes: 4 additions & 0 deletions tools/testing/selftests/bpf/prog_tests/mptcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -600,9 +600,13 @@ static int userspace_pm_init(enum mptcp_pm_type pm_type)

static void userspace_pm_cleanup(void)
{
//SYS(fail, "ip netns exec %s cat %s", NS_TEST, PM_EVENTS);

SYS_NOFAIL("ip netns exec %s killall %s > /dev/null 2>&1",
NS_TEST, PM_CTL);
SYS_NOFAIL("ip netns exec %s rm -rf %s", NS_TEST, PM_EVENTS);
//fail:
;
}

static char *get_events_str(char *type)
Expand Down

0 comments on commit 153f337

Please sign in to comment.