Naked functions must not have compiler generated prologues/epilogues, hence no instrumentation is needed for them.
I was not sure whether to disable instrumentation for an entire function or only for prologues/epilogues (tsan_func_entry/tsan_func_exit), but I assumed that the latter would probably be incorrect. Please let me if you think this is wrong.
FWIW, from the C/C++ frontend point of view, naked functions can only contain inline assembly.