Skip to content

inline tool gives misleading output on console #19

@marcosps

Description

@marcosps

When using the inline tool from clang-extract to check for inlined functions, if the output it set to be done to -graphviz it works as expected:

a

But if the output is the console, then it shows a different picture:

~/git/clang-extract/build/inline -where-is-inlined -ipa-files drivers/net/ipvlan/ipvlan_core.c.000i.ipa-clones  -debuginfo ~/kgr/data/x86_64/lib/modules/5.14.21-150500.55.31-default/kernel/drivers/net/ipvlan/ipvlan.ko  -symvers Module.symvers ipvlan_process_outbound                     
Mangled name        Demangled name      Type    Available?
ipvlan_queue_xmit   ipvlan_queue_xmit   FUNC    Public symbol
ipvlan_xmit_mode_l3 ipvlan_xmit_mode_l3 NOTYPE  Inlined

IMHO, I would expect the last entry to be the public symbol. Maybe we could change the output to let it more obvious which function should be extracted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions