From c7be9ffa4a8c95788e862c08572e38dbcaad2abc Mon Sep 17 00:00:00 2001 From: weiyu Date: Thu, 20 Jun 2019 15:55:07 -0700 Subject: [PATCH] Loose the conditions that atomic calls are captured. Need to come up with better rules for function name checking --- isAtomicCall.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/isAtomicCall.hpp b/isAtomicCall.hpp index a127619..99e7532 100644 --- a/isAtomicCall.hpp +++ b/isAtomicCall.hpp @@ -11,10 +11,13 @@ bool isAtomicCall(Instruction *I) StringRef funName = fun->getName(); - if ( (CI->isTailCall() && funName.contains("atomic_")) || - funName.contains("atomic_compare_exchange_") ) { + // todo: come up with better rules for function name checking + if ( funName.contains("atomic_") ) { // printArgs(CI); return true; + } else if (funName.contains("atomic") ) { + // errs() << "intercepted atomic calls: " << *I << "\n"; + return true; } } -- 2.34.1