diff --git a/xen/Rules.mk b/xen/Rules.mk index da21850926..24f447b957 100644 --- a/xen/Rules.mk +++ b/xen/Rules.mk @@ -141,6 +141,9 @@ else cov-cflags-$(CONFIG_CONDITION_COVERAGE) += -fcondition-coverage endif +# Ensure that profile/coverage data is updated atomically +$(call cc-option-add,cov-cflags-$(CONFIG_COVERAGE),CC,-fprofile-update=atomic) + # Reset cov-cflags-y in cases where an objects has another one as prerequisite $(nocov-y) $(filter %.init.o, $(obj-y) $(obj-bin-y) $(extra-y)): \ cov-cflags-y :=