10b57cec5SDimitry Andric//===-- msan_flags.inc ------------------------------------------*- C++ -*-===// 20b57cec5SDimitry Andric// 30b57cec5SDimitry Andric// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 40b57cec5SDimitry Andric// See https://llvm.org/LICENSE.txt for license information. 50b57cec5SDimitry Andric// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 60b57cec5SDimitry Andric// 70b57cec5SDimitry Andric//===----------------------------------------------------------------------===// 80b57cec5SDimitry Andric// 90b57cec5SDimitry Andric// MSan runtime flags. 100b57cec5SDimitry Andric// 110b57cec5SDimitry Andric//===----------------------------------------------------------------------===// 120b57cec5SDimitry Andric#ifndef MSAN_FLAG 130b57cec5SDimitry Andric# error "Define MSAN_FLAG prior to including this file!" 140b57cec5SDimitry Andric#endif 150b57cec5SDimitry Andric 160b57cec5SDimitry Andric// MSAN_FLAG(Type, Name, DefaultValue, Description) 170b57cec5SDimitry Andric// See COMMON_FLAG in sanitizer_flags.inc for more details. 180b57cec5SDimitry Andric 190b57cec5SDimitry AndricMSAN_FLAG(int, exit_code, -1, 200b57cec5SDimitry Andric "DEPRECATED. Use exitcode from common flags instead.") 210b57cec5SDimitry AndricMSAN_FLAG(int, origin_history_size, Origin::kMaxDepth, "") 220b57cec5SDimitry AndricMSAN_FLAG(int, origin_history_per_stack_limit, 20000, "") 230b57cec5SDimitry AndricMSAN_FLAG(bool, poison_heap_with_zeroes, false, "") 240b57cec5SDimitry AndricMSAN_FLAG(bool, poison_stack_with_zeroes, false, "") 250b57cec5SDimitry AndricMSAN_FLAG(bool, poison_in_malloc, true, "") 260b57cec5SDimitry AndricMSAN_FLAG(bool, poison_in_free, true, "") 2781ad6265SDimitry AndricMSAN_FLAG(bool, poison_in_dtor, true, "") 280b57cec5SDimitry AndricMSAN_FLAG(bool, report_umrs, true, "") 290b57cec5SDimitry AndricMSAN_FLAG(bool, wrap_signals, true, "") 300b57cec5SDimitry AndricMSAN_FLAG(bool, print_stats, false, "") 310b57cec5SDimitry AndricMSAN_FLAG(bool, halt_on_error, !&__msan_keep_going, "") 320b57cec5SDimitry AndricMSAN_FLAG(bool, atexit, false, "") 330b57cec5SDimitry AndricMSAN_FLAG(int, store_context_size, 20, 340b57cec5SDimitry Andric "Like malloc_context_size, but for uninit stores.") 35