Closed fshahinfar1 closed 3 months ago
I try to track the function dependency and sort function declaration according to this. There might be issue when there are circular dependencies.
I tried to do a topological sort, will fail when there is circular dependency among functions
I think it is good enough for now.
In the generated BPF code, a function may depend on another function which is declared after it. This is not a valid C code.