diff options
| author | Petr Hosek <phosek@chromium.org> | 2018-07-25 03:01:35 +0000 |
|---|---|---|
| committer | Petr Hosek <phosek@chromium.org> | 2018-07-25 03:01:35 +0000 |
| commit | 47e5fcba57135025124192626dcb11d9578e4860 (patch) | |
| tree | 75242ba6006b84bbc363fda09b67b658d4699b13 /compiler-rt/lib/profile/GCDAProfiling.c | |
| parent | d981977d5adc10a4613b6eb91bbbfef817dce4ee (diff) | |
| download | bcm5719-llvm-47e5fcba57135025124192626dcb11d9578e4860.tar.gz bcm5719-llvm-47e5fcba57135025124192626dcb11d9578e4860.zip | |
[profile] Support profiling runtime on Fuchsia
This ports the profiling runtime on Fuchsia and enables the
instrumentation. Unlike on other platforms, Fuchsia doesn't use
files to dump the instrumentation data since on Fuchsia, filesystem
may not be accessible to the instrumented process. We instead use
the data sink to pass the profiling data to the system the same
sanitizer runtimes do.
Differential Revision: https://reviews.llvm.org/D47208
llvm-svn: 337881
Diffstat (limited to 'compiler-rt/lib/profile/GCDAProfiling.c')
| -rw-r--r-- | compiler-rt/lib/profile/GCDAProfiling.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler-rt/lib/profile/GCDAProfiling.c b/compiler-rt/lib/profile/GCDAProfiling.c index f5c647c7772..cbca365510b 100644 --- a/compiler-rt/lib/profile/GCDAProfiling.c +++ b/compiler-rt/lib/profile/GCDAProfiling.c @@ -20,6 +20,8 @@ |* \*===----------------------------------------------------------------------===*/ +#if !defined(__Fuchsia__) + #include <errno.h> #include <fcntl.h> #include <stdio.h> @@ -602,3 +604,5 @@ void llvm_gcov_init(fn_ptr wfn, fn_ptr ffn) { atexit(llvm_writeout_files); } } + +#endif |

