[all-commits] [llvm/llvm-project] 1d4d2c: [TSan] Add a runtime flag to print full thread cre...

Dmitry Vyukov via All-commits all-commits at lists.llvm.org
Thu Mar 24 09:31:02 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1d4d2cceda82514f94d8128ad8404a08f74e7474
      https://github.com/llvm/llvm-project/commit/1d4d2cceda82514f94d8128ad8404a08f74e7474
  Author: Dmitry Vyukov <dvyukov at google.com>
  Date:   2022-03-24 (Thu, 24 Mar 2022)

  Changed paths:
    M compiler-rt/lib/tsan/rtl/tsan_flags.inc
    M compiler-rt/lib/tsan/rtl/tsan_rtl_report.cpp
    A compiler-rt/test/tsan/print_full_thread_history.cpp

  Log Message:
  -----------
  [TSan] Add a runtime flag to print full thread creation stacks up to the main thread

Currently, we only print how threads involved in data race are created from their parent threads.
Add a runtime flag 'print_full_thread_history' to print thread creation stacks for the threads involved in the data race and their ancestors up to the main thread.

Reviewed By: dvyukov

Differential Revision: https://reviews.llvm.org/D122131




More information about the All-commits mailing list