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 458706E454; Fri, 4 Mar 2022 22:22:27 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 458706E454 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1646421747; bh=XF5iiYQP4oorZ4HIkQZzjLN5QnVXhh3ve/kUWefQ3/4=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=pxMR6JiyGA9Tl/m560E27/RE+dn4a/dXJWka79bYNnkE2nD8lKV8VTSM4P4tyTVli knXyrpjiKEvVZvrypiE8QdtDxWbArXhQYERhJkREOF8fTZBz927NMWUCmVYMizninB orT1rmDEvVH41hJQAm1s4hvpV8MLcwi6fOvwaNJM= Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 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 A57E66E454 for ; Fri, 4 Mar 2022 22:22:25 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org A57E66E454 Received: by mail-lf1-f46.google.com with SMTP id j15so15800006lfe.11 for ; Fri, 04 Mar 2022 11:22:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=JKa2FXygTsrVG9D+HLlGEBdPvNVpff/EDtcm3AXqv90=; b=j1Iiz6l2vYcZ9hrBYT03H9TYwNpzjwLbaES2s67yMgfaQynI5ptohyxxnR1w/QrLWI GNmMMmz2aqCD9WpNDbjGxWADPr/rjKomu96YBwYQlkx4TS5KqVZtfc0HMfKL1azlX8+L RHvZdWcfB+mS0dwPTk2ti+rXbrZrYcpVFxjwP4q578OEdGMEdZI6Hl0EuvTQeyVJ2y/u KsuWdm2lwum9A3LKysOJ1Gwe0CzGG9AoKhABTzmxjxL671fcaSofqHrrrBPyyrLRpxES LfToIO0p5AqtnDdHAn0Z/Annq94wX1Pl/FjyYN7mdEXKYN/hb5Xud59/ETzsUXOx+z8W LVyQ== X-Gm-Message-State: AOAM531K8RGLbvqw1XZBbeRlC5UxyuQvqcbkwSfn0bHXGh5/n50pvQNZ TIl/azVXrnzRR7pk2gHJUMbchV+3th7fgoNxc7M= X-Google-Smtp-Source: ABdhPJy64R4YnJvc9koXzMaYioUHoBIPzo7PWFI+5ZnrQ52UiAcqltIvLE0Jjn+RnBy3Hm2dT01C1Q== X-Received: by 2002:a05:6512:23a5:b0:443:15cc:d7d4 with SMTP id c37-20020a05651223a500b0044315ccd7d4mr178581lfv.562.1646421744628; Fri, 04 Mar 2022 11:22:24 -0800 (PST) Received: from localhost.localdomain (109-252-140-49.dynamic.spd-mgts.ru. [109.252.140.49]) by smtp.gmail.com with ESMTPSA id u9-20020a056512128900b0044315b93df5sm1204687lfs.233.2022.03.04.11.22.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Mar 2022 11:22:24 -0800 (PST) X-Google-Original-From: Maxim Kokryashkin To: tarantool-patches@dev.tarantool.org, imun@tarantool.org, skaplun@tarantool.org Date: Fri, 4 Mar 2022 22:22:17 +0300 Message-Id: <20220304192219.1266071-1-m.kokryashkin@tarantool.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH luajit v5 0/2] memprof: add resolving capabilities 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: Maxim Kokryashkin via Tarantool-patches Reply-To: Maxim Kokryashkin Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" Changes in v5: - Fixed comments as per review by Sergey - Added resolution based on ELF sections - Disabled resolution for OSX - Rebased on `tarantool` branch Also, there are a few comments in the following letters. Maxim Kokryashkin (2): memprof: extend symtab with C-symbols memprof: enrich symtab with newly loaded symbols Makefile.original | 2 +- src/lj_memprof.c | 396 +++++++++++++++++- src/lj_memprof.h | 15 +- test/tarantool-tests/tools-utils-avl.test.lua | 59 +++ tools/CMakeLists.txt | 2 + tools/memprof.lua | 5 + tools/memprof/parse.lua | 19 + tools/utils/avl.lua | 118 ++++++ tools/utils/symtab.lua | 28 +- 9 files changed, 631 insertions(+), 13 deletions(-) create mode 100644 test/tarantool-tests/tools-utils-avl.test.lua create mode 100644 tools/utils/avl.lua -- 2.35.1