]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Add pathname_concat() helper
authorWang Yufen <wangyufen@huawei.com>
Thu, 22 Sep 2022 06:28:44 +0000 (14:28 +0800)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 23 Sep 2022 21:18:03 +0000 (14:18 -0700)
commit670027e84392b35600dc4543b85facd66cf6b44b
treeddad21aaae675826b80cc974ed208359b28bbf7b
parent6554f0375aa83d6b2821bd2a5184e68e97393ef9
libbpf: Add pathname_concat() helper

Move snprintf and len check to common helper pathname_concat() to make the
code simpler.

Signed-off-by: Wang Yufen <wangyufen@huawei.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/1663828124-10437-1-git-send-email-wangyufen@huawei.com
tools/lib/bpf/libbpf.c