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.9 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,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 82E001F66E for ; Tue, 11 Aug 2020 13:44:42 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6BFB73857C72; Tue, 11 Aug 2020 13:44:41 +0000 (GMT) Received: from albireo.enyo.de (albireo.enyo.de [37.24.231.21]) by sourceware.org (Postfix) with ESMTPS id 16DC13857C70 for ; Tue, 11 Aug 2020 13:44:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 16DC13857C70 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=deneb.enyo.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=fw@deneb.enyo.de Received: from [172.17.203.2] (helo=deneb.enyo.de) by albireo.enyo.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1k5UZu-0005iy-3r; Tue, 11 Aug 2020 13:44:34 +0000 Received: from fw by deneb.enyo.de with local (Exim 4.92) (envelope-from ) id 1k5UZu-0000A5-0b; Tue, 11 Aug 2020 15:44:34 +0200 From: Florian Weimer To: dj@redhat.com Subject: Re: [PATCH] Use size_t for mallinfo fields. 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> Date: Tue, 11 Aug 2020 15:44:34 +0200 In-Reply-To: <1b64d30f-ae3e-282d-26b3-d5047cd8ae0f@suse.cz> ("Martin \=\?iso-8859-15\?Q\?Li\=A8ka\=22's\?\= message of "Mon, 27 Jul 2020 14:45:46 +0200") Message-ID: <87tux9z48t.fsf@mid.deneb.enyo.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable 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: Andreas Schwab , libc-alpha@sourceware.org Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" * Martin Li=A8ka: > On 7/27/20 2:21 PM, Florian Weimer wrote: >> * Martin Li=A8ka: >>=20 >>> 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 futur= e. >>=20 >> 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? DJ, what do you think about this patch?