Tarantool development patches archive
 help / color / mirror / Atom feed
* [Tarantool-patches] [PATCH 0/2] [draft] fiber: introduce fiber creation backtrace
@ 2021-06-04 11:13 Egor Elchinov via Tarantool-patches
  2021-06-04 11:13 ` [Tarantool-patches] [PATCH 1/2] fiber: add PoC for " Egor Elchinov via Tarantool-patches
  2021-06-04 11:13 ` [Tarantool-patches] [PATCH 2/2] fiber: fix DARWIN build Egor Elchinov via Tarantool-patches
  0 siblings, 2 replies; 5+ messages in thread
From: Egor Elchinov via Tarantool-patches @ 2021-06-04 11:13 UTC (permalink / raw)
  To: gorcunov, tarantool-patches; +Cc: Egor2001

From: Egor2001 <elchinov.es@gmail.com>

This patchset is a proof-of-concept for the fiber creation backtrace.

For testing convenience, parent backtrace is 
temporarily moved to the separate lua subtable
backtrace_parent of fiber.info.

For now only C backtrace is implemented.
For the Lua parts of backtrace parent lua state 
needs to be somehow introduced to the new fiber.
Proper solution to this issue needs to be discussed.

Issue: https://github.com/tarantool/tarantool/issues/4002
PR draft: https://github.com/tarantool/tarantool/pull/6124

Egor2001 (2):
  fiber: add PoC for fiber creation backtrace
  fiber: fix DARWIN build

 src/lib/core/backtrace.cc                     | 94 ++++++++++++++++++-
 src/lib/core/backtrace.h                      |  8 +-
 src/lib/core/crash.c                          |  2 +-
 src/lib/core/fiber.c                          |  8 ++
 src/lib/core/fiber.h                          | 16 ++++
 src/lua/fiber.c                               |  9 ++
 .../gh-4002-fiber-creation-backtrace.result   | 55 +++++++++++
 .../gh-4002-fiber-creation-backtrace.test.lua | 25 +++++
 8 files changed, 213 insertions(+), 4 deletions(-)
 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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-06-07 16:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-04 11:13 [Tarantool-patches] [PATCH 0/2] [draft] fiber: introduce fiber creation backtrace Egor Elchinov via Tarantool-patches
2021-06-04 11:13 ` [Tarantool-patches] [PATCH 1/2] fiber: add PoC for " Egor Elchinov via Tarantool-patches
2021-06-07  8:28   ` Cyrill Gorcunov via Tarantool-patches
2021-06-07 16:39     ` Egor Elchinov via Tarantool-patches
2021-06-04 11:13 ` [Tarantool-patches] [PATCH 2/2] fiber: fix DARWIN build Egor Elchinov via Tarantool-patches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox