-
My intent is to collect all functions calls that are made by either my application or the library functions that my applications calls. I assume this is possible if I compile the library in question with the -pg flags as well, is that correct? If so, the next question would be if and how anyone has managed to compile glibc accordingly and gotten the intended results? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hello, you can use If you build a library with |
Beta Was this translation helpful? Give feedback.
Hello, you can use
-l
or--nest-libcall
option to trace library calls inside a library.If you build a library with
-pg
you will be able to trace local functions too. But unfortunately libc is special and fundamental to implement uftrace itself so you cannot trace inside of glibc.