calling path determination

Hello All:

I want to know if there is any info about knowing the calling path of a program.

like:


func3(){

func1();
}

main()
{
func1();
func2();
func3();
func1();
func2();

}




after using some tools, I expect to see

main() → func1() → func2() → func3() → func1() → func2()
…|…
…v…
…func1()…


The call graph in gprof seems just gives the times a function called, not the order or the relation between function calls.

thanks very much

Hi,

Please try with -Mipa=cg.

Hongyon