Path: blob/main/contrib/llvm-project/compiler-rt/lib/xray/xray_fdr_flags.h
35263 views
//===-- xray_fdr_flags.h ---------------------------------------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//7//8// This file is a part of XRay, a dynamic runtime instrumentation system.9//10// This file defines the flags for the flight-data-recorder mode implementation.11//12//===----------------------------------------------------------------------===//13#ifndef XRAY_FDR_FLAGS_H14#define XRAY_FDR_FLAGS_H1516#include "sanitizer_common/sanitizer_flag_parser.h"17#include "sanitizer_common/sanitizer_internal_defs.h"1819namespace __xray {2021struct FDRFlags {22#define XRAY_FLAG(Type, Name, DefaultValue, Description) Type Name;23#include "xray_fdr_flags.inc"24#undef XRAY_FLAG2526void setDefaults();27};2829extern FDRFlags xray_fdr_flags_dont_use_directly;30extern void registerXRayFDRFlags(FlagParser *P, FDRFlags *F);31const char *useCompilerDefinedFDRFlags();32inline FDRFlags *fdrFlags() { return &xray_fdr_flags_dont_use_directly; }3334} // namespace __xray3536#endif // XRAY_FDR_FLAGS_H373839