From patchwork Fri May 10 23:43:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: DJ Delorie X-Patchwork-Id: 32641 Received: (qmail 34169 invoked by alias); 10 May 2019 23:43:49 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 34161 invoked by uid 89); 10 May 2019 23:43:49 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-17.0 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS autolearn=ham version=3.3.1 spammy=speak X-HELO: mx1.redhat.com Date: Fri, 10 May 2019 19:43:44 -0400 Message-Id: From: DJ Delorie To: libc-alpha@sourceware.org Subject: [patch] Add various constants to malloc_info output. It was easier to add this than do manually figure these out... ;-) I'm not an XML expert so if there's a better choice of schema for these, speak up. * malloc/malloc.c (__malloc_info): Add various constants to the output. diff --git a/malloc/malloc.c b/malloc/malloc.c index b8baaa2706..0ec0dcc8cf 100644 --- a/malloc/malloc.c +++ b/malloc/malloc.c @@ -5387,6 +5387,16 @@ __malloc_info (int options, FILE *fp) fputs ("\n", fp); + fprintf (fp, "\n", (long) MALLOC_ALIGNMENT); + fprintf (fp, "\n", (long) MIN_CHUNK_SIZE); + fprintf (fp, "\n", (long) MAX_FAST_SIZE); + fprintf (fp, "\n", (long) MAX_TCACHE_SIZE); + fprintf (fp, "\n", (long) MIN_LARGE_SIZE); + fprintf (fp, "\n", (long) DEFAULT_MMAP_THRESHOLD); + fprintf (fp, "\n", (long) DEFAULT_MMAP_THRESHOLD_MAX); + fprintf (fp, "\n", (long) HEAP_MIN_SIZE); + fprintf (fp, "\n", (long) HEAP_MAX_SIZE); + /* Iterate over all arenas currently in use. */ mstate ar_ptr = &main_arena; do