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 7C7886ECC0; Wed, 6 Apr 2022 16:17:02 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 7C7886ECC0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1649251022; bh=Ouoqi7yzeENyKDk8kKaDy9x4uS6Qnr5sKS8S+l+HGZY=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=Mna4VLoyQKtbFbB91RYmkfnw2HB3gdxXljDofrpdB6qrS7aI66j3gCx+g9Zu9tDG6 lVWDYwElrpJptY9cc/FgF7cSefUM1gTZRqZLOHPKP2HfAIZNzg8TPEZzsig8u0VN3f 54SE62/Rg0M2+JSb4ELtwegdzzeDwlTEfT85guRY= Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com [209.85.167.44]) (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 B83EB6ECC0 for ; Wed, 6 Apr 2022 16:17:01 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org B83EB6ECC0 Received: by mail-lf1-f44.google.com with SMTP id 5so4081669lfp.1 for ; Wed, 06 Apr 2022 06:17:01 -0700 (PDT) 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=1vgp4gAKmsBIT0IjnH16Yd8qq0Ys96j41z6kBEzvY1s=; b=n57V19hxBIPpoXd9IkqUq894YCyBbZnybx8rujhnhy0Di2ecww0p8Sn1kGiOXKwzA+ 13ylgIfxOTHFSCw4n69DylxEL40aaDSSKlJUrByRJeQ5x2EOGUW7IrL4r2gBvtcy8/pa iRp9Lii81bMGqypHN9RWb+zJ+UcIOae4toxzsAsITmOxyacmGQLsAo+iySZVnuWpvHjN 8Ng0Jlw7BIiliaZbO2UVmazg1In8J1aiMdZvn07rcxUlV1jY4plWNgYghddEIJqTuNcD b8+q142pQhFQShbaGyCMJ8j3THEHB+IVy/4bTG42VNndkqQkO88HylbsanR3QcF3c1ff cKDQ== X-Gm-Message-State: AOAM531M9Q9QgwrdgUL7gkUqK5fCsQ3oltOOxwyBj4BkuAHYPWdUXCgZ nMx+7hgHiEP0lztxGFhIdcKwzvrxVHw59Q== X-Google-Smtp-Source: ABdhPJwyD4n0Nq7No5JwbxQee8TXWZmFdmq3ScVhgYjGsLPasMWEuRHfjdLuhl//HK2DVBYyjVCB0Q== X-Received: by 2002:ac2:55a7:0:b0:44a:9bdc:4656 with SMTP id y7-20020ac255a7000000b0044a9bdc4656mr5962975lfg.328.1649251020957; Wed, 06 Apr 2022 06:17:00 -0700 (PDT) Received: from localhost.localdomain ([93.175.28.20]) by smtp.gmail.com with ESMTPSA id i4-20020a056512318400b0044a31d60589sm1832994lfe.86.2022.04.06.06.16.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 06:17:00 -0700 (PDT) X-Google-Original-From: Maxim Kokryashkin To: tarantool-patches@dev.tarantool.org, imun@tarantool.org, skaplun@tarantool.org Date: Wed, 6 Apr 2022 16:16:54 +0300 Message-Id: X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH luajit v7 0/2] memprof: C-symbols resolving 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 v7: - Fixed comments as per review by Sergey - Added tests for different types of hash sections. Maxim Kokryashkin (2): memprof: extend symtab with C-symbols memprof: enrich symtab with newly loaded symbols Makefile.original | 2 +- src/lj_memprof.c | 405 +++++++++++++++++- src/lj_memprof.h | 17 +- test/tarantool-tests/CMakeLists.txt | 4 + .../gh-5813-resolving-of-c-symbols.test.lua | 91 ++++ .../both/CMakeLists.txt | 4 + .../both/resboth.c | 17 + .../gnuhash/CMakeLists.txt | 4 + .../gnuhash/resgnuhash.c | 17 + .../hash/CMakeLists.txt | 4 + .../hash/reshash.c | 17 + .../stripped/CMakeLists.txt | 4 + .../stripped/resstripped.c | 17 + test/tarantool-tests/tools-utils-avl.test.lua | 52 +++ tools/CMakeLists.txt | 2 + tools/memprof.lua | 5 + tools/memprof/parse.lua | 15 + tools/utils/avl.lua | 113 +++++ tools/utils/symtab.lua | 29 +- 19 files changed, 805 insertions(+), 14 deletions(-) create mode 100644 test/tarantool-tests/gh-5813-resolving-of-c-symbols.test.lua create mode 100644 test/tarantool-tests/gh-5813-resolving-of-c-symbols/both/CMakeLists.txt create mode 100644 test/tarantool-tests/gh-5813-resolving-of-c-symbols/both/resboth.c create mode 100644 test/tarantool-tests/gh-5813-resolving-of-c-symbols/gnuhash/CMakeLists.txt create mode 100644 test/tarantool-tests/gh-5813-resolving-of-c-symbols/gnuhash/resgnuhash.c create mode 100644 test/tarantool-tests/gh-5813-resolving-of-c-symbols/hash/CMakeLists.txt create mode 100644 test/tarantool-tests/gh-5813-resolving-of-c-symbols/hash/reshash.c create mode 100644 test/tarantool-tests/gh-5813-resolving-of-c-symbols/stripped/CMakeLists.txt create mode 100644 test/tarantool-tests/gh-5813-resolving-of-c-symbols/stripped/resstripped.c create mode 100644 test/tarantool-tests/tools-utils-avl.test.lua create mode 100644 tools/utils/avl.lua -- 2.35.1