Add perfetto instrumentation to weston
Add perfetto instrumentation to weston in two ways.
Some simple function tracepoints are added for some of the time critical code, so we can see where the compositor might be wasting time.
Also, try to fit WESGR like damage and paint timeline logging into perfetto tracks by making TL_POINTS also generate perfetto events if we're running perfetto.
Some of this code has been pulled in from Mesa and modified - the C wrapper around perfetto, as well as the some supported atomics code that we really don't need, but if we ever do anything with threads in weston then the perfetto code will rely on it working.