diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2025-01-22 00:01:31 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2025-01-22 00:50:46 +0300 |
commit | fbaf25eeb4ece3eafbc5f111ff230d1124b86cab (patch) | |
tree | 71dd0e3ef41781ef5a605f74ccc7d49828b32505 | |
parent | 509f362768699c4fe45d6d5254014c85a3cbdc99 (diff) | |
download | ydb-fbaf25eeb4ece3eafbc5f111ff230d1124b86cab.tar.gz |
Intermediate changes
commit_hash:fc89f1f32015861d4d8e8547fa1441796a23ec86
-rw-r--r-- | yt/yt/library/program/program.cpp | 24 | ||||
-rw-r--r-- | yt/yt/library/program/program.h | 2 |
2 files changed, 0 insertions, 26 deletions
diff --git a/yt/yt/library/program/program.cpp b/yt/yt/library/program/program.cpp index 2dc58dc175..6b2e012afe 100644 --- a/yt/yt/library/program/program.cpp +++ b/yt/yt/library/program/program.cpp @@ -29,10 +29,6 @@ #include <util/system/thread.h> #include <util/system/sigset.h> -#include <util/string/subst.h> - -#include <thread> - #include <stdlib.h> #ifdef _unix_ @@ -46,11 +42,6 @@ #include <sys/prctl.h> #endif -#if defined(_linux_) && defined(CLANG_COVERAGE) -extern "C" int __llvm_profile_write_file(void); -extern "C" void __llvm_profile_set_filename(const char* name); -#endif - namespace NYT { using namespace NYson; @@ -96,8 +87,6 @@ TProgram::TProgram() .NoArgument() .StoreValue(&PrintBuild_, true); Opts_.SetFreeArgsNum(0); - - ConfigureCoverageOutput(); } TProgram::~TProgram() = default; @@ -276,19 +265,6 @@ void ConfigureUids() #endif } -void ConfigureCoverageOutput() -{ -#if defined(_linux_) && defined(CLANG_COVERAGE) - // YT tests use pid namespaces. We can't use process id as unique identifier for output file. - if (auto profileFile = getenv("LLVM_PROFILE_FILE")) { - TString fixedProfile{profileFile}; - SubstGlobal(fixedProfile, "%e", "ytserver-all"); - SubstGlobal(fixedProfile, "%p", ToString(TInstant::Now().NanoSeconds())); - __llvm_profile_set_filename(fixedProfile.c_str()); - } -#endif -} - void ConfigureIgnoreSigpipe() { #ifdef _unix_ diff --git a/yt/yt/library/program/program.h b/yt/yt/library/program/program.h index 7104326bda..e60d374574 100644 --- a/yt/yt/library/program/program.h +++ b/yt/yt/library/program/program.h @@ -126,8 +126,6 @@ NYson::TYsonString CheckYsonArgMapper(const TString& arg); //! Drop privileges and save them if running with suid-bit. void ConfigureUids(); -void ConfigureCoverageOutput(); - void ConfigureIgnoreSigpipe(); //! Intercepts standard crash signals (see signal_registry.h for full list) with a nice handler. |