[Tarantool-patches] [PATCH v3 0/4] fiber: introduce creation backtrace
eelchinov at tarantool.org
eelchinov at tarantool.org
Wed Jul 14 14:12:48 MSK 2021
From: Egor Elchinov <elchinov.es at gmail.com>
This patchset adds the subtable `backtrace_parent()`
to `fiber.info()` holding backtraces of fiber
creation and introduces `fiber.parent_bt_enable()`
and `fiber.parent_bt_disable()` procedures managing
the runtime ability to collect parent backtraces for
newly created fibers.
Changes in v2:
- first 3 patches merged together
- unnecessary changes in `ENABLE_BACKTRACE` usages reverted
Changes in v3:
- strncpy() and snprintf() usages fixed
- error check for dladdr() under macos added
https://github.com/tarantool/tarantool/issues/4002
https://github.com/tarantool/tarantool/tree/Egor2001/gh-4002-fiber-creation-backtrace
Egor Elchinov (4):
fiber: add PoC for fiber creation backtrace
fiber: add option and PoC for Lua parent backtrace
fiber: refactor lua backtrace routines
fiber: refactor C backtrace and add changelog
.../gh-4002-fiber-creation-backtrace.md | 8 +
src/lib/core/backtrace.cc | 250 +++++++++++++++---
src/lib/core/backtrace.h | 10 +-
src/lib/core/crash.c | 2 +-
src/lib/core/fiber.c | 35 +++
src/lib/core/fiber.h | 34 +++
src/lua/fiber.c | 232 +++++++++++++---
src/lua/fiber.h | 19 ++
.../gh-4002-fiber-creation-backtrace.result | 78 ++++++
.../gh-4002-fiber-creation-backtrace.test.lua | 34 +++
10 files changed, 631 insertions(+), 71 deletions(-)
create mode 100644 changelogs/unreleased/gh-4002-fiber-creation-backtrace.md
create mode 100644 test/app/gh-4002-fiber-creation-backtrace.result
create mode 100644 test/app/gh-4002-fiber-creation-backtrace.test.lua
--
2.31.1
More information about the Tarantool-patches
mailing list