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 85E7170AC2E; Tue, 28 Nov 2023 17:58:29 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 85E7170AC2E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1701183509; bh=Wtfjl1xlWKvJZVFDBa4XbSeNeGIy6+huzpeaHkkeUXQ=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=FCJsfrEv/NaYhPGly61M96t4Vt7gJO9aJuhkffeZ2YW6IvgUrrjLDpPU9haew/kVV 3aNxfC3W0ItlpJSjVtFKTH5GyIK7NmtBzKtJu7p2hOdpXrT2p2cqmvWnBYjLXrFiU5 pIGzxsIqSSci4uDSBL8MyvPsE7nX+gHRO3JHmYwI= Received: from smtp34.i.mail.ru (smtp34.i.mail.ru [95.163.41.75]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 7180E5D3A3A for ; Tue, 28 Nov 2023 17:58:28 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 7180E5D3A3A Received: by smtp34.i.mail.ru with esmtpa (envelope-from ) id 1r7zXf-004VGe-23; Tue, 28 Nov 2023 17:58:28 +0300 To: Maxim Kokryashkin , Sergey Kaplun Date: Tue, 28 Nov 2023 14:53:15 +0000 Message-Id: X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailru-Src: smtp X-7564579A: B8F34718100C35BD X-77F55803: 4F1203BC0FB41BD9D2A6479154BC7F417A3ADCF799DE78622B6E7AFD5C732E26182A05F53808504084CF31080319B9326A04A3EB3E1717605795C228C42ED150E34F028CBD70F6F4 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE72F22E6DC541F75D9EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637BB680D3A894950458638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D86CC6E26CB328211E5C7EBC63D8ACACF0117882F4460429724CE54428C33FAD305F5C1EE8F4F765FCECADA55FE5B58BB7A471835C12D1D9774AD6D5ED66289B52BA9C0B312567BB23117882F44604297287769387670735201E561CDFBCA1751FC26CFBAC0749D213D2E47CDBA5A96583BA9C0B312567BB2376E601842F6C81A19E625A9149C048EEB28585415E75ADA9436E4CC186B5AB2DD8FC6C240DEA76429C9F4D5AE37F343AA9539A8B242431040A6AB1C7CE11FEE389DDFE3E282F3DD12D242C3BD2E3F4C6C4224003CC836476E2F48590F00D11D6E2021AF6380DFAD1A18204E546F3947CA9FF340AA05FB58C2E808ACE2090B5E1725E5C173C3A84C3C5EA940A35A165FF2DBA43225CD8A89F616AD31D0D18CD5C35872C767BF85DA2F004C90652538430E4A6367B16DE6309 X-C1DE0DAB: 0D63561A33F958A50B65DF9D5C526288BD0C6543F236F6CAF14EACCBD8745D1AF87CCE6106E1FC07E67D4AC08A07B9B0DB8A315C1FF4794DC79554A2A72441328621D336A7BC284946AD531847A6065A535571D14F44ED41 X-C8649E89: 1C3962B70DF3F0ADBF74143AD284FC7177DD89D51EBB7742DC8270968E61249B1004E42C50DC4CA955A7F0CF078B5EC49A30900B95165D342B8615F5CFAD9D02A584213041731DFE029F86A1B2972037804C78D8F073C93EBBE8207190291CE51D7E09C32AA3244C8BAF16C3DE09E12DA44134CACEE083C76C24832127668422BAD658CF5C8AB4025DA084F8E80FEBD376A4ED3E9341DC2FCD72808BE417F3B9E0E7457915DAA85F X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojbL9S8ysBdXiYdsKp7SjW7QP+fbt4tx5Q X-Mailru-Sender: 2FEBA92C8E508479FE7B9A1DF348D5315AFA72D76FC8D606F58F478B934C4E03BCDDC5CA5ACF5CC02326FE6F2A341ACE0FB9F97486540B4CD9E8847AB8CFED4D9ABF8A61C016C2CFB0DAF586E7D11B3E67EA787935ED9F1B X-Mras: Ok Subject: [Tarantool-patches] [PATCH luajit 0/2] Use ptrace for sysprof tests 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: Igor Munkin via Tarantool-patches Reply-To: Igor Munkin Cc: tarantool-patches@dev.tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" Hello there, The latter patch of the patchset provides the new approach for deterministic testing for our sampling profiler. See more info in the commit message. The first patch fixes the issue occurred while reimplementing the sysprof test via fork(3) + ptrace(2): the output for prove was buffered and hence duplicated when fork is done. I decided to turn of buffering at all, since there is little sense in it for tests and nobody wants to debug many (still unrevealed) related problems. I hope the approach will be moved to our utils for tests written in C, but I do not see the whole picture at the moment, so the approach is implemented for the only test being affected by the patch for #8594. Branch: https://github.com/tarantool/luajit/commits/imun/sysprof-ptrace-ffunc-test CI: https://github.com/tarantool/luajit/commit/b48b905 Tarantool CI: https://github.com/tarantool/tarantool/pull/9424 Related issues: * https://github.com/tarantool/tarantool/issues/9387 * https://github.com/tarantool/tarantool/issues/8594 * https://github.com/tarantool/tarantool/issues/7900 Igor Munkin (2): test: disable buffering for the C test engine test: rewrite sysprof test using managed execution .../gh-8594-sysprof-ffunc-crash.test.c | 269 ++++++++++++++++++ test/tarantool-c-tests/test.c | 6 + .../gh-8594-sysprof-ffunc-crash.test.lua | 55 ---- 3 files changed, 275 insertions(+), 55 deletions(-) create mode 100644 test/tarantool-c-tests/gh-8594-sysprof-ffunc-crash.test.c delete mode 100644 test/tarantool-tests/gh-8594-sysprof-ffunc-crash.test.lua -- 2.39.2