Skip to content

Fix inline annotations in generated control-flow graphs for programs with multiple functions #178

@qmonnet

Description

@qmonnet

The example provided by Christoph on the mailing list, for a separate issue, produces a graph with two functions:

CFG produced by bpftool for the example program

On func_1(), on the right-hand side of the picture, we can observe that the inline annotations are not correct: they should be the annotations for the do_barf() function, but instead they duplicate the lines from handle__sched_process_exec().

There seems to be an issue in the way we print the line information for the control graph: we offset the annotation lines from the start of the program, not from the start of the function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions