On 4/3/24 7:40 AM, H.J. Lu wrote: > We can't profile indirect calls to IFUNC resolvers nor their callees as > it requires TLS which hasn't been set up yet when the dynamic linker is > resolving IFUNC symbols. > > Add an IFUNC resolver caller marker to cgraph_node and set it if the > function is called by an IFUNC resolver. Disable indirect call profiling > for IFUNC resolvers and their callees.
The IFUNC resolvers on Power do not use TLS, so isn't this a little too conservative? Should this be triggered via a target hook so architectures that don't use TLS in their IFUNC resolvers could still profile them? Peter