Commit 17536f3b authored by Yonghong Song's avatar Yonghong Song Committed by Greg Kroah-Hartman
Browse files

selftests/bpf: Refactor out some functions in ns_current_pid_tgid test



[ Upstream commit 4d4bd29e ]

Refactor some functions in both user space code and bpf program
as these functions are used by later cgroup/sk_msg tests.
Another change is to mark tp program optional loading as later
patches will use optional loading as well since they have quite
different attachment and testing logic.

There is no functionality change.

Signed-off-by: default avatarYonghong Song <yonghong.song@linux.dev>
Signed-off-by: default avatarAndrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20240315184904.2976123-1-yonghong.song@linux.dev


Stable-dep-of: 21f0b0af ("selftests/bpf: Fix include of <sys/fcntl.h>")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent d6e16c33
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment