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 DF2D86EC40; Thu, 1 Jul 2021 23:25:44 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org DF2D86EC40 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1625171145; bh=nkkcSdEwCNUlT4yu6KV5D0xcrWr0hQSqZqkQCqTBLv4=; h=To:Cc:Date:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=L5dXUzz1Q1a3TCP5JwylkkZWhaL4qsClVYDv2UwOB2mS3nEKpj0JaKxK6nS1RhDEz /R5BWgv16wEinaLtGDhCPMlVuXIH5Vez5pbZ877FhUtbSh0Wysq9INnRfN32sZAsIV KfTattxiXg9xCk7WAAQfEKsphWguHL82KwWVABaA= Received: from smtp60.i.mail.ru (smtp60.i.mail.ru [217.69.128.40]) (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 5A11C6EC40 for ; Thu, 1 Jul 2021 23:25:43 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 5A11C6EC40 Received: by smtp60.i.mail.ru with esmtpa (envelope-from ) id 1lz3Fm-0006gg-4t; Thu, 01 Jul 2021 23:25:42 +0300 To: gorcunov@tarantool.org, alyapunov@tarantool.org, skaplun@tarantool.org Cc: tarantool-patches@dev.tarantool.org, Egor Elchinov Date: Thu, 1 Jul 2021 23:24:38 +0300 Message-Id: X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD954DFF1DC42D673FBE6C6848F3EB6EB89AE0756428E32ECE9182A05F5380850401AE7B8B5C26291FF32A7DFDD7E665A6BB188595A9E413400F88933906C2C0452 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7D9C4478D0B876341EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637A8691684BB8CCFB18638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D857473D9CFFA4F5595E8985ABBB0C4E46117882F4460429724CE54428C33FAD305F5C1EE8F4F765FC974A882099E279BDA471835C12D1D9774AD6D5ED66289B52BA9C0B312567BB23117882F446042972877693876707352033AC447995A7AD18E5D25F19253116ADD2E47CDBA5A96583BA9C0B312567BB2376E601842F6C81A19E625A9149C048EE7532CA1512B81981452896749CDDA0A6D8FC6C240DEA7642DBF02ECDB25306B2B78CF848AE20165D0A6AB1C7CE11FEE36D3A1509E11137119735652A29929C6CC4224003CC836476EA7A3FFF5B025636E2021AF6380DFAD1A18204E546F3947CB11811A4A51E3B096D1867E19FE1407959CC434672EE6371089D37D7C0E48F6C8AA50765F79006379FC65886B7F75608EFF80C71ABB335746BA297DBC24807EABDAD6C7F3747799A X-B7AD71C0: AC4F5C86D027EB782CDD5689AFBDA7A2368A440D3B0F6089093C9A16E5BC824A2A04A2ABAA09D25379311020FFC8D4ADD39CE08E0D58FA78B6A346410A5C7AAB X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8186998911F362727C414F749A5E30D975CBCA6440478D4BA46F4667FC0050997015EFBBD1AB1CEF2619C2B6934AE262D3EE7EAB7254005DCED5177E3BD826A77771E0A4E2319210D9B64D260DF9561598F01A9E91200F654B02DA3D96DA0CEF5C48E8E86DC7131B365E7726E8460B7C23C X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34E9B0C12ABED55137F70CE5951D667E2B50B3E1B62E4A285487229403332779E6AFFC382BB9B66B991D7E09C32AA3244C292550C41BF6BDF2F356D55F8398E136BBA718C7E6A9E04283B48618A63566E0 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojbL9S8ysBdXhQbJZ+TAeEvzwpvyn57G/B X-Mailru-Sender: EFA0F3A8419EF2166B053C73E674FFD5C77F36DB9BEB8DCA69BB990C24AC7949E2527C969975515C67F54F2D6EFFC80BC77752E0C033A69E17841C44D9B5D58765F2F89A5AFDB6F16C18EFA0BB12DBB0 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 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