aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/execprofile
diff options
context:
space:
mode:
authoralbert <albert@yandex-team.ru>2022-02-10 16:48:15 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:15 +0300
commita817f5de12611ec73085eba17f8ec7740a46bdb7 (patch)
treeb222e5ac2e2e98872661c51ccceee5da0d291e13 /library/cpp/execprofile
parent9f25ef3232c288ca664ceee6c376cf64e4349a2e (diff)
downloadydb-a817f5de12611ec73085eba17f8ec7740a46bdb7.tar.gz
Restoring authorship annotation for <albert@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/execprofile')
-rw-r--r--library/cpp/execprofile/profile.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/execprofile/profile.cpp b/library/cpp/execprofile/profile.cpp
index 9c42114106..d05de20203 100644
--- a/library/cpp/execprofile/profile.cpp
+++ b/library/cpp/execprofile/profile.cpp
@@ -7,11 +7,11 @@
#include <signal.h>
#include <sys/time.h>
#include <sys/resource.h>
-#if defined(_darwin_)
-#include <sys/ucontext.h>
-#else
+#if defined(_darwin_)
+#include <sys/ucontext.h>
+#else
#include <ucontext.h>
-#endif
+#endif
#include <dlfcn.h>
#include <util/system/platform.h>
@@ -186,18 +186,18 @@ private:
#else
return (void*)mctx->gregs[REG_EIP];
#endif
-#elif defined _darwin_
+#elif defined _darwin_
#if defined _64_
#if defined(_arm_)
return (void*)(*mctx)->__ss.__pc;
#else
- return (void*)(*mctx)->__ss.__rip;
+ return (void*)(*mctx)->__ss.__rip;
#endif
#else
#if defined(__IOS__)
return (void*)(*mctx)->__ss.__pc;
#else
- return (void*)(*mctx)->__ss.__eip;
+ return (void*)(*mctx)->__ss.__eip;
#endif
#endif
#endif