Tarantool development patches archive
 help / color / mirror / Atom feed
From: Egor Elchinov via Tarantool-patches <tarantool-patches@dev.tarantool.org>
To: gorcunov@tarantool.org, tarantool-patches@dev.tarantool.org
Cc: Egor2001 <elchinov.es@gmail.com>
Subject: [Tarantool-patches] [PATCH 0/2] [draft] fiber: introduce fiber creation backtrace
Date: Fri,  4 Jun 2021 14:13:09 +0300	[thread overview]
Message-ID: <cover.1622792861.git.elchinov.es@gmail.com> (raw)

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


             reply	other threads:[~2021-06-04 11:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-04 11:13 Egor Elchinov via Tarantool-patches [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1622792861.git.elchinov.es@gmail.com \
    --to=tarantool-patches@dev.tarantool.org \
    --cc=eelchinov@tarantool.org \
    --cc=elchinov.es@gmail.com \
    --cc=gorcunov@tarantool.org \
    --subject='Re: [Tarantool-patches] [PATCH 0/2] [draft] fiber: introduce fiber creation backtrace' \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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