diff options
author | Anton Samokhvalov <pg83@yandex.ru> | 2022-02-10 16:45:15 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:15 +0300 |
commit | 72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch) | |
tree | da2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /contrib/libs/linuxvdso/interface.cpp | |
parent | 778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff) | |
download | ydb-72cb13b4aff9bc9cf22e49251bc8fd143f82538f.tar.gz |
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs/linuxvdso/interface.cpp')
-rw-r--r-- | contrib/libs/linuxvdso/interface.cpp | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/contrib/libs/linuxvdso/interface.cpp b/contrib/libs/linuxvdso/interface.cpp index 1c8b92ad25..49bf3b6707 100644 --- a/contrib/libs/linuxvdso/interface.cpp +++ b/contrib/libs/linuxvdso/interface.cpp @@ -1,32 +1,32 @@ -#include "interface.h" -#include "original/vdso_support.h" - +#include "interface.h" +#include "original/vdso_support.h" + #ifdef HAVE_VDSO_SUPPORT - -size_t NVdso::Enumerate(TSymbol* s, size_t len) { - if (!len) { - return 0; - } - - base::VDSOSupport vdso; - - if (!vdso.IsPresent()) { - return 0; - } - - size_t n = 0; - - for (base::VDSOSupport::SymbolIterator it = vdso.begin(); it != vdso.end(); ++it) { - *s++ = TSymbol(it->name, (void*)it->address); - ++n; - - if (!--len) { - break; - } - } - - return n; -} + +size_t NVdso::Enumerate(TSymbol* s, size_t len) { + if (!len) { + return 0; + } + + base::VDSOSupport vdso; + + if (!vdso.IsPresent()) { + return 0; + } + + size_t n = 0; + + for (base::VDSOSupport::SymbolIterator it = vdso.begin(); it != vdso.end(); ++it) { + *s++ = TSymbol(it->name, (void*)it->address); + ++n; + + if (!--len) { + break; + } + } + + return n; +} void* NVdso::Function(const char* name, const char* version) { base::VDSOSupport::SymbolInfo info; |