Skip to content

Function detection: Fix detection for functions generated by macro #3

Description

@PLukas2018

In the kernel, some functions are generated by macros. Currently, the tool is unable to detect such cases and when code in the function generated by a macro is changed, it detects the wrong function (above the function generated by macro). The detection should be changed to handle such cases. (Note: I am not sure if DiffKemp itself can compare such functions/macros directly).

Example can be seen here:
The content of BPF_CALL_3(bpf_get_stackid,... was changed, but the tool analysed __bpf_get_stackid function instead because of this problem.

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