[LTP] [PATCH v5 1/2] lib: Introduce tst_path_defs.h to consolidate system paths
Li Wang
li.wang@linux.dev
Thu Jun 4 11:52:01 CEST 2026
Li Wang wrote:
> We have a lot of hardcoded strings and duplicated macros for /proc
> and /sys paths scattered throughout the testcases.
>
> This patch introduces a new common header, tst_path_defs.h, to centralize
> and standardize these path definitions. By unifying these macros, we
> reduce code duplication, improve maintainability, and ensure consistent
> path usage across the entire LTP codebase.
>
> Signed-off-by: Li Wang <li.wang@linux.dev>
> Acked-by: Andrea Cervesato <andrea.cervesato@suse.com>
Forgot to paste the notes:
v5:
* add PATH_{KERN|USER} strings
* change MM_KSM_FP()/NET_IPV4_FP() to explicit paths
* rebase to the main branch
--
Regards,
Li Wang
More information about the ltp
mailing list