Skip to content

s390/bpf: Describe the frame using a struct instead of constants #9178

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: bpf-next_base
Choose a base branch
from

Conversation

kernel-patches-daemon-bpf[bot]
Copy link

Pull request for series with
subject: s390/bpf: Describe the frame using a struct instead of constants
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=975247

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 3ce7cdd
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=975247
version: 1

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 3ce7cdd
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=975247
version: 1

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 3713b58
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=975247
version: 1

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 3713b58
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=975247
version: 1

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: d69bafe
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=975247
version: 1

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: d83caf7
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=975247
version: 1

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 5046acc
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=975247
version: 1

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 886178a
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=975247
version: 1

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 6def082
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=975247
version: 1

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 6def082
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=975247
version: 1

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 48d998a
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=975247
version: 1

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 5272b51
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=975247
version: 1

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: a5a7b25
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=975247
version: 1

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: a5a7b25
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=975247
version: 1

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: bacdf5a
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=975247
version: 1

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: c4b1be9
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=975247
version: 1

iii-i added 2 commits June 27, 2025 18:59
The calculation of the distance from %r15 to the caller-allocated
portion of the stack frame is copy-pasted into multiple places in the
JIT code.

Move it to bpf_jit_prog() and save the result into bpf_jit::frame_off,
so that the other parts of the JIT can use it.

Signed-off-by: Ilya Leoshkevich <[email protected]>
Currently the caller-allocated portion of the stack frame is described
using constants, hardcoded values, and an ASCII drawing, making it
harder than necessary to ensure that everything is in sync.

Declare a struct and use offsetof() and offsetofend() macros to refer
to various values stored within the frame.

Signed-off-by: Ilya Leoshkevich <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant