From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id EF2AA6EC40; Thu, 1 Jul 2021 18:55:11 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org EF2AA6EC40 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1625154912; bh=VGj7NrbBdppxnN/LFJYYMOtRmvsNOcgNvsAy9Z02zUw=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=ObgVRW1Zu/dT3yn2d5hWhRUSth+lLJnXNytzS/Z7werj6+/k2sK1sAVv2Vp1iT5Vs j4kwxB/Gk2lZpsu/geead07j6U7bBo2TR6ilzxjinVpT0U/57et2DdNTuHTbXI9NU7 DgG3ibyE1fkq5/CSF300g1wAgFJIp6en/0/tnhN4= Received: from smtp31.i.mail.ru (smtp31.i.mail.ru [94.100.177.91]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 2A5016EC40 for ; Thu, 1 Jul 2021 18:55:10 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 2A5016EC40 Received: by smtp31.i.mail.ru with esmtpa (envelope-from ) id 1lyz1w-0006YJ-Sm; Thu, 01 Jul 2021 18:55:09 +0300 To: tarantool-patches@dev.tarantool.org Date: Thu, 1 Jul 2021 18:54:43 +0300 Message-Id: X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-7564579A: 78E4E2B564C1792B X-77F55803: 4F1203BC0FB41BD954DFF1DC42D673FB703477AD6D36A6E3513B6A65BE508F5F182A05F5380850407A3A219723320FEECA6EC775869F9538E3954BD9BC361E4AADE02BE1462A9D6A X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE70043D879A87EF1BCEA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F79006379CBE0668FF2CDAD68638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D8E1C9AA7B99708BBC9D27C3C071CFCAA7117882F4460429724CE54428C33FAD305F5C1EE8F4F765FC974A882099E279BDA471835C12D1D9774AD6D5ED66289B52BA9C0B312567BB23117882F44604297287769387670735201E561CDFBCA1751F618001F51B5FD3F9D2E47CDBA5A96583BA9C0B312567BB2376E601842F6C81A19E625A9149C048EE599709FD55CB46A628F6BDBBAB179F4ED8FC6C240DEA7642DBF02ECDB25306B2B78CF848AE20165D0A6AB1C7CE11FEE31F9513A7CA91E555C0837EA9F3D19764C4224003CC836476EA7A3FFF5B025636E2021AF6380DFAD1A18204E546F3947CB11811A4A51E3B096D1867E19FE1407959CC434672EE6371089D37D7C0E48F6C8AA50765F79006375C79DA22B1A023C3EFF80C71ABB335746BA297DBC24807EABDAD6C7F3747799A X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8186998911F362727C414F749A5E30D975CA007D7800FCDDA2748680A4CEA98EC47F69D7C30A344D9189C2B6934AE262D3EE7EAB7254005DCED556CBE7F905700A49510FB958DCE06DB6ED91DBE5ABE359A7EE5648E065588D41F9270390973918F93EDB24507CE13387DFF0A840B692CF8 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34B5900AD87B4159A43F584EFC83EC0C120A05B8328F357516F017FE0F2080C3DE7E2C313DE2956D831D7E09C32AA3244CCF4065418BA9DE765390AE2E96AADBB33E8609A02908F27183B48618A63566E0 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojbL9S8ysBdXgzbH4gLt0SRm1YSVqHEhqP X-Mailru-Sender: EFA0F3A8419EF2166B053C73E674FFD56E471EF7ACEFBA42F72334ECEBE28CB1E2527C969975515C67F54F2D6EFFC80BC77752E0C033A69E17841C44D9B5D58765F2F89A5AFDB6F16C18EFA0BB12DBB0 X-Mras: Ok Subject: [Tarantool-patches] [PATCH 0/7] fiber: introduce creation backtrace X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Egor Elchinov via Tarantool-patches Reply-To: eelchinov@tarantool.org Cc: gorcunov@tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" From: Egor Elchinov 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. https://github.com/tarantool/tarantool/issues/4002 https://github.com/tarantool/tarantool/tree/Egor2001/gh-4002-fiber-creation-backtrace Egor Elchinov (7): fiber: add PoC for fiber creation backtrace fiber: fix DARWIN build fiber: apply fix patch fiber: add PoC for Lua parent backtrace fiber: add dynamic option for parent backtrace fiber: refactor lua backtrace routine fiber: refactor C backtrace and add changelog .../gh-4002-fiber-creation-backtrace.md | 8 + src/lib/core/backtrace.cc | 247 +++++++++++++++--- 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 | 235 ++++++++++++++--- src/lua/fiber.h | 19 ++ .../gh-4002-fiber-creation-backtrace.result | 78 ++++++ .../gh-4002-fiber-creation-backtrace.test.lua | 34 +++ 10 files changed, 626 insertions(+), 76 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