Trace_fuchsia_writeSourceWrite fuchsia events into buffers.
Reference: https://fuchsia.dev/fuchsia-src/reference/tracing/trace-format
truncate_string s truncates s to the maximum length allowed for strings. If s is already short enough, no allocation is done.
record type = 3
record type = 7