bpf: Update bpf_get_smp_processor_id() documentation

BPF programs run with migration disabled regardless of preemption, as
they are protected by migrate_disable(). Update the uapi documentation
accordingly.

Signed-off-by: Matteo Croce <mcroce@microsoft.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20210914235400.59427-1-mcroce@linux.microsoft.com
This commit is contained in:
Matteo Croce
2021-09-15 01:54:00 +02:00
committed by Daniel Borkmann
parent 69cd823956
commit 336562752a
2 changed files with 2 additions and 2 deletions

View File

@@ -1629,7 +1629,7 @@ union bpf_attr {
* u32 bpf_get_smp_processor_id(void) * u32 bpf_get_smp_processor_id(void)
* Description * Description
* Get the SMP (symmetric multiprocessing) processor id. Note that * 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 * SMP processor id is stable during all the execution of the
* program. * program.
* Return * Return

View File

@@ -1629,7 +1629,7 @@ union bpf_attr {
* u32 bpf_get_smp_processor_id(void) * u32 bpf_get_smp_processor_id(void)
* Description * Description
* Get the SMP (symmetric multiprocessing) processor id. Note that * 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 * SMP processor id is stable during all the execution of the
* program. * program.
* Return * Return