gprofng: include a new function in the right place
authorVladimir Mezentsev <vladimir.mezentsev@oracle.com>
Fri, 12 May 2023 00:30:18 +0000 (17:30 -0700)
committerVladimir Mezentsev <vladimir.mezentsev@oracle.com>
Tue, 16 May 2023 19:04:51 +0000 (12:04 -0700)
commitb5fbb4c2b468bc776ba71e2c4ef692f095e034bd
treefb8180b2548ad51fdfd36da74463a62948f7533e
parent68b25a74aa492fa84bc530b471036d762cf772bf
gprofng: include a new function in the right place

Static function name is not available in stripped libraries.
In this case, gprofng maps PC to a fake function like <static>@0xPC (<libname>).
Sometimes gprofng creates two functions instead of one.
Also FUNC_FLAG_SIMULATED is needed for these fake functions.

gprofng/ChangeLog
2023-05-11  Vladimir Mezentsev  <vladimir.mezentsev@oracle.com>

* src/LoadObject.cc (LoadObject::find_function): Set FUNC_FLAG_SIMULATED.
Include a new function in the right place.
gprofng/src/LoadObject.cc