Message ID | 20231101125611.208544-6-adhemerval.zanella@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a5d:538f:0:b0:32d:baff:b0ca with SMTP id d15csp267663wrv; Wed, 1 Nov 2023 05:57:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHw66xyRZTM8//cxyrFFjuAOCZxu6D2WJiNIx4Br9xZfendWlGnhGkBVD8McM4SOufNr0fy X-Received: by 2002:a05:622a:1493:b0:417:9994:eb75 with SMTP id t19-20020a05622a149300b004179994eb75mr19131694qtx.21.1698843442034; Wed, 01 Nov 2023 05:57:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698843442; cv=pass; d=google.com; s=arc-20160816; b=SSJ+ekuLttGJwHX1VRLHGq3+ZUbODy9EXVgvLgdb6vrkYUk8vR8LXkv2PzhISUlIIq DhjAmNwDZ7GKYISZ+t8EOmNvADt8ZVe0d+RIHsVsqfEVLE/yxVI6hUYB7m79l3ggxqPN OUc0eMSlekjCOFQNNxL+PfpH35l9v1bjMiJytiZCaUgwiPdmcPWT7yv5VWSild7N+1G2 z46kq13qlXCB1QYs8mrkInDhY18YgEIbApPOEKPVAo7zaRTyUHa1ijpbVZRHyNL+bY6i 3as21mw6C5AC3lvjiCPMQg/1lq30BxjZfqvzLhp+RE53rMq+Q3lNs9vGl4MV6QOJ/vJS /Ymw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=xLM6XTFrju2h0P2Jp6D87i92a5MTlqzEcCSkMAXExHA=; fh=wOialSeEyZrL0Zmx/XQW8gMhKHOwjxYz8NEgiPSksGI=; b=v/0A1kXXBPcDvJ5U/2TQTBJ/iRQKx7Ef8HWhKJ4bhxquriVQFWXQVkfxmLiCRAwyxs PsUOOPgCdc90+AWE3pEYHXXCyKoAjXaJ2roUZN8PI/31WGTahKLLvmy1yP6mJizwi2t5 BP3IGL13hAVW5ckglwXTBZ4Ru6fDeQPtCck6JGUQHMg7X/BgK7YBgwxbq7+rH38WeYzK zidSGwCV27DWi9fORDJ4HLocCwvBg1sO7hulksX2eIKoc88LwA574qKelWX2XrQ/RrK7 vCFs+3SrMjdELBoZno1k8otld8GsXpoSdIGQ6XfeOryIgNFti0rrSpD4mZd2ftOCEmaf lphg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mBhXRWNY; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <libc-alpha-bounces+patch=linaro.org@sourceware.org> Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id l9-20020a05622a174900b0041971a2b466si2624085qtk.715.2023.11.01.05.57.21 for <patch@linaro.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 05:57:22 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mBhXRWNY; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A842D3857722 for <patch@linaro.org>; Wed, 1 Nov 2023 12:57:21 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-yw1-x112d.google.com (mail-yw1-x112d.google.com [IPv6:2607:f8b0:4864:20::112d]) by sourceware.org (Postfix) with ESMTPS id 213A33857C44 for <libc-alpha@sourceware.org>; Wed, 1 Nov 2023 12:56:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 213A33857C44 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 213A33857C44 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::112d ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698843400; cv=none; b=HaSHfXcUUSbHRNnMo1DmFsMr1g9NyoYrWWekeWwosUbmqAM8VB4t/2Cc17jfOOrRG8uifUmb9x9mG6UCsmMBQnsq1+Vx/PTGWYQQNpUVLBPKPtsB3+cHGQBg3/1YdwZOnfxK+ZGq2XEmoezcqonq9bpBRmUcKH4BV5l77bEG9Gk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698843400; c=relaxed/simple; bh=7IU+K49IxS1kn/ocnc54WSjSZ3Q/mkS/5hQqscvWxMA=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=KY4t1i0yaxadKnQ9RTXpNtnADuKx0iIT2ygTKpGH78ZOTWbn6X+uM+Mw0hyj8TFSGnAlmDczdcWgfxdv7CbLXyer51PuPWsKopvipdahyK1rk/cS6bD/4X9wTNTPKXjwoXihzNgO0QG8muTAqJJ6iX7jyU3W/w7gO6SviTdbT+w= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-yw1-x112d.google.com with SMTP id 00721157ae682-5afa5dbc378so52536957b3.0 for <libc-alpha@sourceware.org>; Wed, 01 Nov 2023 05:56:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698843389; x=1699448189; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=xLM6XTFrju2h0P2Jp6D87i92a5MTlqzEcCSkMAXExHA=; b=mBhXRWNYIzTwI5KeY7fNin+XHqQpVLpF8PES5Sr/cIWn3lx8JKFAfimHS8SGESFKhh Kjk+B+dfl8yXKTjwm4E4Coje8SFjUWIUdAb+QHazYP1v5DCv58Ua33kA1CmrKqLuDAmW EgI+YFMVSn1jjx624Ev+Un/ID6KcPMKLt/TmWJ82uhbHCM9HROpogZSgkH8LCtDT9yhx 1lAzRe6EE14NGPH+zmiUlibuIjtarNYo8T5AB5AT5E6Llk12a7CfXeIFEPie5m+toWiE cFOKGk/D8oTxWisl2YYmeGTpmUwoaJKXBo2W4zAi/V9xxdN02CKvnZT0Vm7Vh0YAmtTy 6S8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698843389; x=1699448189; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xLM6XTFrju2h0P2Jp6D87i92a5MTlqzEcCSkMAXExHA=; b=sKqh0Jp42b3DuVXX+7AvtKN19b62tZyTpJckFvBbG4ScnQt0fGaTiz6qNpNYUF+BEg wd1iIwgnLVKoPNSA/4VpAoY9Pb9MZWZi1MtvHgfuKfNNoATggX0m337O81GKt3OwdppK j5IrWb/rfLoOr5BEtPQ7NrXdsFcrSvjH1+pNs41RERLZ9ifJ87A56DABVJBCc/Lh7jYf 3Y5OrGVzBaA2l6xy7qjoDRdqjBejw6lRX9mFbrfLDsCa4MbwI8pZVod4sRDiGpewrx7+ g5kgzX4fcYzWxdDW26IwTMShRpfXnqid5R8BkXnOoQeFnLihp5wvLGtMU6UJBgUzEMBB 2T3Q== X-Gm-Message-State: AOJu0YwbTcPKxgHRV8wr6kkdrMQn1U+jpUzCRonO0ALTQrNob7+BBlAA EYD7deXjr180hvVgGIvLDR96rLhg/VhSwNRn/giLaw== X-Received: by 2002:a25:40c5:0:b0:da0:c887:36cb with SMTP id n188-20020a2540c5000000b00da0c88736cbmr12731553yba.45.1698843388811; Wed, 01 Nov 2023 05:56:28 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c0:a715:15ac:c4b6:7a0e:f5c5]) by smtp.gmail.com with ESMTPSA id w11-20020a5b08cb000000b00da034601e2esm1888100ybq.52.2023.11.01.05.56.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 05:56:28 -0700 (PDT) From: Adhemerval Zanella <adhemerval.zanella@linaro.org> To: libc-alpha@sourceware.org, DJ Delorie <dj@redhat.com>, Ian Rogers <irogers@google.com>, Francesco Nigro <fnigro@redhat.com>, Carlos O'Donell <carlos@redhat.com> Subject: [PATCH v3 5/7] assert: Decorate error message buffer Date: Wed, 1 Nov 2023 09:56:09 -0300 Message-Id: <20231101125611.208544-6-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231101125611.208544-1-adhemerval.zanella@linaro.org> References: <20231101125611.208544-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list <libc-alpha.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=subscribe> Errors-To: libc-alpha-bounces+patch=linaro.org@sourceware.org |
Series |
Add a tunable to decorate anonymous memory maps
|
expand
|
diff --git a/assert/assert.c b/assert/assert.c index b7c7a4a1ba..bf0f4a69f5 100644 --- a/assert/assert.c +++ b/assert/assert.c @@ -24,6 +24,7 @@ #include <sysdep.h> #include <unistd.h> #include <sys/mman.h> +#include <setvmaname.h> extern const char *__progname; @@ -71,6 +72,7 @@ __assert_fail_base (const char *fmt, const char *assertion, const char *file, { buf->size = total; strcpy (buf->msg, str); + __set_vma_name (buf, total, " glibc: assert"); /* We have to free the old buffer since the application might catch the SIGABRT signal. */