Merge changes Id73cdfa8,I08951eec into main

* changes:
  Don't call wrapped atrace_begin if tag is disabled
  Add the rest of static inline function wrappers