From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id B785F1F66E for ; Tue, 11 Aug 2020 12:26:44 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8A612386182E; Tue, 11 Aug 2020 12:26:43 +0000 (GMT) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by sourceware.org (Postfix) with ESMTPS id 185A73850423 for ; Tue, 11 Aug 2020 12:26:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 185A73850423 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mliska@suse.cz X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 00C0AAF30; Tue, 11 Aug 2020 12:27:00 +0000 (UTC) Subject: Re: [PATCH] Use size_t for mallinfo fields. From: =?UTF-8?Q?Martin_Li=c5=a1ka?= To: Florian Weimer References: <87tuyja59i.fsf@igel.home> <87v9izxwo7.fsf@oldenburg2.str.redhat.com> <87lfjvxv58.fsf@oldenburg2.str.redhat.com> <093814cf-0b7d-1011-08e7-4d5c3e56b423@suse.cz> <20200723143835.GJ7127@arm.com> <940c96e9-5162-88b7-d765-59656978117d@suse.cz> <87o8o1up1o.fsf@oldenburg2.str.redhat.com> <1b64d30f-ae3e-282d-26b3-d5047cd8ae0f@suse.cz> Message-ID: Date: Tue, 11 Aug 2020 14:26:38 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <1b64d30f-ae3e-282d-26b3-d5047cd8ae0f@suse.cz> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: libc-alpha@sourceware.org, Andreas Schwab Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" PING^1 On 7/27/20 2:45 PM, Martin Liška wrote: > On 7/27/20 2:21 PM, Florian Weimer wrote: >> * Martin Liška: >> >>> All right, I agree with that. So something like: >>> >>> enum malloc_info >>> { >>>    ARENA_BYTES, >>>    ... >>> }; >>> >>> size_t get_mallinfo (malloc_info type) ? >>> >>> That would allow adding new enum values that can supported in the future. >> >> It does not allow to obtain a consistent snapshot of multiple values, >> though. > > Good point! > > So are we back to mallinfo2 which I suggested in patch? > Can you please make an opinion about it? > > Thanks, > Martin > >> >> Thanks, >> Florian >> >