Skip to content
Commit f1cb927c authored by JP Kobryn's avatar JP Kobryn Committed by Andrii Nakryiko
Browse files

libbpf: Ensure print callback usage is thread-safe



This patch prevents races on the print function pointer, allowing the
libbpf_set_print() function to become thread-safe.

Signed-off-by: default avatarJP Kobryn <inwardvessel@gmail.com>
Signed-off-by: default avatarAndrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20230325010845.46000-1-inwardvessel@gmail.com
parent 5f5a7d8d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment