summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAliaksey Kandratsenka <alkondratenko@gmail.com>2017-05-21 23:28:48 -0700
committerAliaksey Kandratsenka <alkondratenko@gmail.com>2017-05-22 01:55:50 -0700
commitf7ff175b92df5577aef9caf3fb02f9ff37b822ca (patch)
treef66357554a993a848175a0bbeb62016a32a60a35
parentcef582350c952bad761476d01ea64bb4087371ce (diff)
downloadgperftools-f7ff175b92df5577aef9caf3fb02f9ff37b822ca.tar.gz
add configure-time warning on unsupported backtrace capturing
Both libgcc and libc's backtrace() are not really options for stack trace capturing from inside profiling signal handler. So lets warn people.
-rw-r--r--configure.ac4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 59b2467..e0fd96e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -634,7 +634,7 @@ AC_OUTPUT
AS_IF([test "$x86_no_fp_by_default" = yes && test "x$enable_frame_pointers" != xyes && test "x$UNWIND_LIBS" = x && test "x$enable_minimal" != xyes],
[AS_IF([test "x$perftools_cv_have_unwind_backtrace" = xyes],
- [AC_MSG_WARN([No frame pointers and no libunwind. Using experimental backtrace capturing via libgcc])],
+ [AC_MSG_WARN([No frame pointers and no libunwind. Using experimental backtrace capturing via libgcc. Expect crashy cpu profiler.])],
[AS_IF([test "x$enable_backtrace" = xyes],
- [AC_MSG_WARN([No frame pointers and no libunwind. Using experimental backtrace()])],
+ [AC_MSG_WARN([No frame pointers and no libunwind. Using experimental backtrace(). Expect crashy cpu profiler.])],
[AC_MSG_FAILURE([No frame pointers and no libunwind. The compilation will fail])])])])