]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
bpf: __bpf_fastcall for bpf_get_smp_processor_id in uapi
authorEduard Zingerman <eddyz87@gmail.com>
Mon, 16 Sep 2024 09:17:10 +0000 (02:17 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 4 Oct 2024 00:47:53 +0000 (17:47 -0700)
Since [1] kernel supports __bpf_fastcall attribute for helper function
bpf_get_smp_processor_id(). Update uapi definition for this helper in
order to have this attribute in the generated bpf_helper_defs.h

[1] commit 91b7fbf3936f ("bpf, x86, riscv, arm: no_caller_saved_registers for bpf_get_smp_processor_id()")

Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20240916091712.2929279-3-eddyz87@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
include/uapi/linux/bpf.h
tools/include/uapi/linux/bpf.h

index c6cd7c7aeeee94f40675a237447d987971302e49..8ab4d8184b9d23b5a09a632d3d807891e2062b66 100644 (file)
@@ -1970,6 +1970,8 @@ union bpf_attr {
  *             program.
  *     Return
  *             The SMP id of the processor running the program.
+ *     Attributes
+ *             __bpf_fastcall
  *
  * long bpf_skb_store_bytes(struct sk_buff *skb, u32 offset, const void *from, u32 len, u64 flags)
  *     Description
index 1fb3cb2636e62e56e615a3a0a113072aadabac34..7610883c81910d8bd6e56cc6e1a4e488c523d8b1 100644 (file)
@@ -1970,6 +1970,8 @@ union bpf_attr {
  *             program.
  *     Return
  *             The SMP id of the processor running the program.
+ *     Attributes
+ *             __bpf_fastcall
  *
  * long bpf_skb_store_bytes(struct sk_buff *skb, u32 offset, const void *from, u32 len, u64 flags)
  *     Description