Skip to content
This repository was archived by the owner on Nov 1, 2023. It is now read-only.
This repository was archived by the owner on Nov 1, 2023. It is now read-only.

'struct pt_regs' has no member named 'ip' #11

Description

@pfourguet

Hi,
I'm having some issues building ktf.
I'm cross-compiling ktf for arm64 architecture.
Everything was fine until i updated my local ktf repository to test the function override feature.
Currently, building fails in the "Making all in kernel" phase:

make[1] : on entre dans le répertoire « /home/pfourguet/sigfox/dev/ktf/build/ktf/kernel » make -C /home/pfourguet/sigfox/dev/linux-kernel M=/home/pfourguet/sigfox/dev/ktf/build/ktf/kernel make[2] : on entre dans le répertoire « /home/pfourguet/sigfox/dev/linux-kernel » arch/arm64/Makefile:48: Detected assembler with broken .inst; disassembly will be unreliable AR /home/pfourguet/sigfox/dev/ktf/build/ktf/kernel/built-in.o CC [M] /home/pfourguet/sigfox/dev/ktf/build/ktf/kernel/kbase.o CC [M] /home/pfourguet/sigfox/dev/ktf/build/ktf/kernel/nl.o CC [M] /home/pfourguet/sigfox/dev/ktf/build/ktf/kernel/ktf_map.o CC [M] /home/pfourguet/sigfox/dev/ktf/build/ktf/kernel/kcheck.o CC [M] /home/pfourguet/sigfox/dev/ktf/build/ktf/kernel/ktf_debugfs.o CC [M] /home/pfourguet/sigfox/dev/ktf/build/ktf/kernel/ktf_cov.o CC [M] /home/pfourguet/sigfox/dev/ktf/build/ktf/kernel/ktf_override.o /home/pfourguet/sigfox/dev/ktf/build/ktf/kernel/ktf_override.c: In function 'ktf_override_function_with_return': /home/pfourguet/sigfox/dev/ktf/build/ktf/kernel/ktf_override.c:46:6: error: 'struct pt_regs' has no member named 'ip' regs->ip = (unsigned long)&ktf_just_return_func; ^
The pt_regs structure is highly architecture dependent and the ip field is not a member of pt_regs structure on arm64.
Thanks a lot.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions