Re: [PATCH] selftests/bpf: Add valid flag to bpf_cookie selftest's res

2024-09-05 Thread Yuan Chen
What you said is reasonable,but it would confuse the test personnel, as there is no clear reminders. Is it possible to modify it to without SKIP,will give exact reminders when it is failed?

[PATCH] selftests/bpf: Add valid flag to bpf_cookie selftest's res

2024-09-04 Thread Yuan Chen
From: Yuan Chen This patch identifies whether a test item is valid by adding a valid flag to res. When we test the bpf_cookies/perf_event sub-test item of test_progs, there is a probability failure of the test item. In fact, this is not a problem, because the corresponding perf event is not

[PATCH v2 1/1] selftests/bpf: Fix procmap_query()'s params mismatch and compilation warning

2024-09-02 Thread Yuan Chen
From: Yuan Chen When the PROCMAP_QUERY is not defined, a compilation error occurs due to the mismatch of the procmap_query()'s params, procmap_query() only be called in the file where the function is defined, modify the params so they can match. We get a warning when build sample

[PATCH] selftests/bpf: Fix procmap_query()'s params mismatch and compilation warning

2024-09-02 Thread Yuan Chen
From: Yuan Chen When the PROCMAP_QUERY is not defined, a compilation error occurs due to the mismatch of the procmap_query()'s params, procmap_query() only be called in the file where the function is defined, modify the params so they can match. We get a warning when build sample