mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 10:31:57 +00:00
Allow query profiling only on x86_64
This commit is contained in:
parent
89db2b1ffc
commit
3f2f53d2bb
@ -986,7 +986,7 @@ int Server::main(const std::vector<std::string> & /*args*/)
|
|||||||
///
|
///
|
||||||
/// Look at compiler-rt/lib/sanitizer_common/sanitizer_stacktrace.h
|
/// Look at compiler-rt/lib/sanitizer_common/sanitizer_stacktrace.h
|
||||||
///
|
///
|
||||||
#if USE_UNWIND && !WITH_COVERAGE && !defined(SANITIZER)
|
#if USE_UNWIND && !WITH_COVERAGE && !defined(SANITIZER) && defined(__x86_64__)
|
||||||
/// Profilers cannot work reliably with any other libunwind or without PHDR cache.
|
/// Profilers cannot work reliably with any other libunwind or without PHDR cache.
|
||||||
if (hasPHDRCache())
|
if (hasPHDRCache())
|
||||||
{
|
{
|
||||||
@ -1023,6 +1023,10 @@ int Server::main(const std::vector<std::string> & /*args*/)
|
|||||||
" when two different stack unwinding methods will interfere with each other.");
|
" when two different stack unwinding methods will interfere with each other.");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !defined(__x86_64__)
|
||||||
|
LOG_INFO(log, "Query Profiler is only tested on x86_64. It also known to not work under qemu-user.");
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!hasPHDRCache())
|
if (!hasPHDRCache())
|
||||||
LOG_INFO(log, "Query Profiler and TraceCollector are disabled because they require PHDR cache to be created"
|
LOG_INFO(log, "Query Profiler and TraceCollector are disabled because they require PHDR cache to be created"
|
||||||
" (otherwise the function 'dl_iterate_phdr' is not lock free and not async-signal safe).");
|
" (otherwise the function 'dl_iterate_phdr' is not lock free and not async-signal safe).");
|
||||||
|
Loading…
Reference in New Issue
Block a user