Skip to content
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

bpf: make test py_test_tools_smoke pass on arm64 #1417

Merged
merged 1 commit into from
Oct 28, 2017
Merged

bpf: make test py_test_tools_smoke pass on arm64 #1417

merged 1 commit into from
Oct 28, 2017

Conversation

yonghong-song
Copy link
Collaborator

Changes include:
. Add PT_REGS_FP to access base(FP) register in x64
. Use macros, intead of directly ctx-><reg_name>
in a few places
. Let userspace fill in the value of PAGE_SIZE.
Otherwise, arm64 needs additional headers to
get this value for kernel.
. In tools/wakeuptime.py, arm64 and x86_64 have
the same stack walker mechanism. But they
have different symbol/macro to represent
kernel start address.
With these changes, the test py_test_tools_smoke
can pass on arm64.

Signed-off-by: Yonghong Song [email protected]

Changes include:
  . Add PT_REGS_FP to access base(FP) register in x64
  . Use macros, intead of directly ctx-><reg_name>
    in a few places
  . Let userspace fill in the value of PAGE_SIZE.
    Otherwise, arm64 needs additional headers to
    get this value for kernel.
  . In tools/wakeuptime.py, arm64 and x86_64 have
    the same stack walker mechanism. But they
    have different symbol/macro to represent
    kernel start address.
With these changes, the test py_test_tools_smoke
can pass on arm64.

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

Successfully merging this pull request may close these issues.

2 participants