Deleted Added
full compact
xray_profiling_flags.h (341825) xray_profiling_flags.h (353358)
1//===-- xray_profiling_flags.h ----------------------------------*- C++ -*-===//
2//
1//===-- xray_profiling_flags.h ----------------------------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
4//
6//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This file is a part of XRay, a dynamic runtime instrumentation system.
11//
12// XRay profiling runtime flags.
13//===----------------------------------------------------------------------===//
14
15#ifndef XRAY_PROFILER_FLAGS_H
16#define XRAY_PROFILER_FLAGS_H
17
18#include "sanitizer_common/sanitizer_flag_parser.h"
19#include "sanitizer_common/sanitizer_internal_defs.h"
20
21namespace __xray {
22
23struct ProfilerFlags {
24#define XRAY_FLAG(Type, Name, DefaultValue, Description) Type Name;
25#include "xray_profiling_flags.inc"
26#undef XRAY_FLAG
27
28 void setDefaults();
29};
30
31extern ProfilerFlags xray_profiling_flags_dont_use_directly;
32inline ProfilerFlags *profilingFlags() {
33 return &xray_profiling_flags_dont_use_directly;
34}
35void registerProfilerFlags(FlagParser *P, ProfilerFlags *F);
36
37} // namespace __xray
38
39#endif // XRAY_PROFILER_FLAGS_H
7//===----------------------------------------------------------------------===//
8//
9// This file is a part of XRay, a dynamic runtime instrumentation system.
10//
11// XRay profiling runtime flags.
12//===----------------------------------------------------------------------===//
13
14#ifndef XRAY_PROFILER_FLAGS_H
15#define XRAY_PROFILER_FLAGS_H
16
17#include "sanitizer_common/sanitizer_flag_parser.h"
18#include "sanitizer_common/sanitizer_internal_defs.h"
19
20namespace __xray {
21
22struct ProfilerFlags {
23#define XRAY_FLAG(Type, Name, DefaultValue, Description) Type Name;
24#include "xray_profiling_flags.inc"
25#undef XRAY_FLAG
26
27 void setDefaults();
28};
29
30extern ProfilerFlags xray_profiling_flags_dont_use_directly;
31inline ProfilerFlags *profilingFlags() {
32 return &xray_profiling_flags_dont_use_directly;
33}
34void registerProfilerFlags(FlagParser *P, ProfilerFlags *F);
35
36} // namespace __xray
37
38#endif // XRAY_PROFILER_FLAGS_H