[Tarantool-patches] [PATCH 3/3] test: adapt memprof tests to new symbol table format
Maxim Kokryashkin
max.kokryashkin at gmail.com
Fri Jul 23 15:39:52 MSK 2021
Since memprof's symbol table format has changed to support demangling, it is
necessary to adapt tests to it.
Closes tarantool/tarantool#5813
---
test/tarantool-tests/misclib-memprof-lapi.test.lua | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/test/tarantool-tests/misclib-memprof-lapi.test.lua b/test/tarantool-tests/misclib-memprof-lapi.test.lua
index 06d96b3b..65b6afa6 100644
--- a/test/tarantool-tests/misclib-memprof-lapi.test.lua
+++ b/test/tarantool-tests/misclib-memprof-lapi.test.lua
@@ -53,6 +53,7 @@ local function generate_output(filename)
end
local function fill_ev_type(events, symbols, event_type)
+ local SYMTAB_LFUNC = 0
local ev_type = {}
for _, event in pairs(events[event_type]) do
local addr = event.loc.addr
@@ -61,10 +62,10 @@ local function fill_ev_type(events, symbols, event_type)
name = "INTERNAL",
num = event.num,
}
- elseif symbols[addr] then
+ elseif symbols[SYMTAB_LFUNC][addr] then
ev_type[event.loc.line] = {
name = string.format(
- "%s:%d", symbols[addr].source, symbols[addr].linedefined
+ "%s:%d", symbols[SYMTAB_LFUNC][addr].source, symbols[SYMTAB_LFUNC][addr].linedefined
),
num = event.num,
}
--
2.32.0
More information about the Tarantool-patches
mailing list