From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2177AA0597; Wed, 8 Apr 2020 07:10:54 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 897A33195; Wed, 8 Apr 2020 07:10:53 +0200 (CEST) Received: from mail-pf1-f195.google.com (mail-pf1-f195.google.com [209.85.210.195]) by dpdk.org (Postfix) with ESMTP id 54F9F2BE9 for ; Wed, 8 Apr 2020 07:10:52 +0200 (CEST) Received: by mail-pf1-f195.google.com with SMTP id k15so1877112pfh.6 for ; Tue, 07 Apr 2020 22:10:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TUzOpZVkxW0AQYyVc4G6CEoKa1+kb2hxzrEyFxe4daQ=; b=KRR/eVk4pnqQwy9eCz7X6C+dxxuTD0baKqL03V8eoZo4L1L4tWfRC7vWSXJoOFJm6S wSymo4UoB72jtprXWXWXhZLYsPSme8quzg2uwVvWGR3BHcl61piNG+qtqB1fVPNv48T9 Yu93bg2MaACH1mpV96M1QCs0LQZwpEMmTMMo3AtsBXTZdFfXWBd2F/ofg8QXhfxmwoOC U2f/0V4JOqPQIeH2A855mm23Bm+L8VZRx7pW88cXcXE9ZSxZ9qOMPeL+c+fiVEwCuqXI DJAPZDoUCpR36Cty5FFK7WmsxZbFtp59Y9z8xvZiUQ0YeapAnD490041VCXH0z3Gw3P7 fSpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TUzOpZVkxW0AQYyVc4G6CEoKa1+kb2hxzrEyFxe4daQ=; b=mBd7M+6KV/oHk61/8uSOUKZEAjewOiRSrnX926SJGxcaKo6VQi3OAO4FVF2K67HAP9 jNqwwDzX+6f/i96lf4dCKsDZ7phTT/0Baz2kK1Uo1j/dbqaXg+vlyXPgOGLusWglLbAF WiJ/UqfweLUZC1H2QsNNdh4uR4c0ZmMnAD2ZyzjAdCTB2E2m9XgnjDcvpQd0ghUDHFaC cQM5kpS1b5qMfi9nvc8EpeODbIpwJACYA4/T6WTg+Z+DotmQBJhMfQgdhR3xNMgHi0bj BKeZI98kOPBTUvWGXYU032kZd7oHZ8c2YurJ+1Cu/2a7mLF2XRGMaKBxGRfzG0LCi9gD lYbA== X-Gm-Message-State: AGi0PuYYBpkrE2mEwMMelWtENp2ZoYp8Mllcc6aWhbqKaNtGYbB5cjhE 6AzQTa8O/22+jAuzV+2qEaKVpg== X-Google-Smtp-Source: APiQypLbh5At/taEmembYHmk+ntm+zHbt7DMVSSYQuWxOmM6IDVcTWPBSxuSb/So11n067q6nW1Rug== X-Received: by 2002:a63:7b5e:: with SMTP id k30mr5288765pgn.209.1586322651406; Tue, 07 Apr 2020 22:10:51 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id q91sm3127875pjb.11.2020.04.07.22.10.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Apr 2020 22:10:51 -0700 (PDT) Date: Tue, 7 Apr 2020 22:10:46 -0700 From: Stephen Hemminger To: Xueming Li Cc: Anatoly Burakov , Ferruh Yigit , dev@dpdk.org, Asaf Penso Message-ID: <20200407221046.323800f3@hermes.lan> In-Reply-To: <1586318694-31358-2-git-send-email-xuemingl@mellanox.com> References: <1586318694-31358-1-git-send-email-xuemingl@mellanox.com> <1586318694-31358-2-git-send-email-xuemingl@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v1 1/2] malloc: support malloc and free tracking log X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Wed, 8 Apr 2020 04:04:53 +0000 Xueming Li wrote: > int n_alloc_free = 0; > + int n_alloc = 0; > + int n_free_alloc = 0; > + int n_free = 0; > + size_t alloc_leak = 0; All statistics should be unsigned, size_t or uint64_t to avoid any wraparound issues.