bpf: update bpf_get_smp_processor_id() documentation
PATCH v2 1/1 bpf: update bpf_get_smp_processor_id() documentation
From: Matteo Croce <[email protected]>
BPF programs run with migration disabled regardless of preemption, as they are protected by migrate_disable().
Update the documentation accordingly.
Signed-off-by Matteo Croce <[email protected]>
--- include/uapi/linux/bpf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/uapi/linux/bpf.h +1 -1
@@ -1629,7 +1629,7 @@ union bpf_attr {* u32 bpf_get_smp_processor_id(void) * Description * Get the SMP (symmetric multiprocessing) processor id. Note that -* all programs run with preemption disabled, which means that the +* all programs run with migration disabled, which means that the * SMP processor id is stable during all the execution of the * program. * Return
Signature · 1 line
2.31.1
Quoted 7 lines · Matteo Croce
From: Matteo Croce <[email protected]>
BPF programs run with migration disabled regardless of preemption, as they are protected by
migrate_disable().
Update the documentation accordingly.Signed-off-by Matteo Croce <[email protected]>
Acked-by Yonghong Song <[email protected]>
Quoted 10 lines · Yonghong Song
Quoted 7 lines · Matteo Croce
From: Matteo Croce <[email protected]>
BPF programs run with migration disabled regardless of preemption, as they are protected by
migrate_disable().
Update the documentation accordingly.Signed-off-by Matteo Croce <[email protected]>Acked-by Yonghong Song <[email protected]>
Applied, thanks & also copied this over to the tools/include/uapi/linux/bpf.h .