[all-commits] [llvm/llvm-project] 1efa66: [rtsan] Introduce function-name-matches suppressio...

Chris Apple via All-commits all-commits at lists.llvm.org
Wed Oct 16 16:38:35 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1efa6625ef145624f7134bcb957f8ffa19c3c68e
      https://github.com/llvm/llvm-project/commit/1efa6625ef145624f7134bcb957f8ffa19c3c68e
  Author: Chris Apple <cja-private at pm.me>
  Date:   2024-10-16 (Wed, 16 Oct 2024)

  Changed paths:
    M compiler-rt/lib/rtsan/rtsan_assertions.h
    M compiler-rt/lib/rtsan/rtsan_checks.inc
    M compiler-rt/lib/rtsan/rtsan_suppressions.cpp
    M compiler-rt/lib/rtsan/rtsan_suppressions.h
    M compiler-rt/test/rtsan/stack_suppressions.cpp
    M compiler-rt/test/rtsan/stack_suppressions.cpp.supp

  Log Message:
  -----------
  [rtsan] Introduce function-name-matches suppression (#112108)

Introduces a new type of suppression:

1. function-name-matches - allows users to disable `malloc`, `free`,
`pthread_mutex_lock` or similar. This could be helpful if a user thinks
these are real-time safe on their OS. Also allows disabling of any
function marked [[blocking]].

This is useful as a **more performant "early outs" compared to the
`call-stack-contains` suppression**. `call-stack-contains` is inherently
VERY costly, needing to inspect every frame of every stack for a
matching string. This new suppression has an early out before we unwind
the stack.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list