[PATCH] D25888: Add support for __builtin_os_log_format[_buffer_size]
Mehdi AMINI via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 21 16:48:47 PDT 2016
mehdi_amini created this revision.
mehdi_amini added a reviewer: bkramer.
mehdi_amini added a subscriber: cfe-commits.
Herald added subscribers: modocache, mgorny, beanz.
These new builtins support a mechanism for logging OS events, using a
printf-like format string to specify the layout of data in a buffer.
The _buffer_size version of the builtin can be used to determine the size
of the buffer to allocate to hold the data, and then __builtin_os_log_format
can write data into that buffer. This implements format checking to report
mismatches between the format string and the data arguments. Most of this
code was written by Chris Willmore.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 58921 bytes
Desc: not available
More information about the cfe-commits