From patchwork Fri Sep 1 20:42:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 719523 Delivered-To: patch@linaro.org Received: by 2002:adf:d08b:0:b0:31d:da82:a3b4 with SMTP id y11csp467113wrh; Fri, 1 Sep 2023 13:44:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFMAnRH8qcJnpy22ROQyoi0q0fybsxJ0LaJIZJDnzDq5dNo/YAzj7IJDRdGbL/btxEKYrCl X-Received: by 2002:a05:622a:3d3:b0:407:613a:c383 with SMTP id k19-20020a05622a03d300b00407613ac383mr5656323qtx.67.1693601061359; Fri, 01 Sep 2023 13:44:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693601061; cv=none; d=google.com; s=arc-20160816; b=mTZhuzo/WBDfJukNdH64541ZIQZWk+JyiD1oowdIIroMhQ0o91SxJp07m6QA+Ba0/B YdOiJZLLGxvmRbi9amosHeYIyD8IUHBL2zxcBCwHAH7wv3K/LF8jPbfWPdW3bKIRSaS0 OSzyy7qpO/FiytIXKSS0SQB/bSzTmgAyqjAALzAR7USuMuZ8PvWGmzXbecuAwfatWDaL 5kJP1rmdXyqjRk6hMtYRI28Jc66xGYdnzysaDsZOqcwgXmkzSZx/2rcTxbDNHxtzGPJJ 1eJV1cV++p0OCKrHIDJ8AXoGkB7uSwOQ31ndTGQIzkCy8KPYNQdnQMv+84YY9ni5IgDM S0aQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender: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:cc:to :from:dkim-signature; bh=0iqggZ/kUA5XzQ6SOnvjK327/KaVNo8nl6UgLS2s/bg=; fh=FC7nc2cUwJgFcj2hBYd16CauO1xSDGC/usFm7Dz4sAo=; b=hNNn3N+clxbXPo5dNZU9nuVzl8xGFcz7SYMf2A7vZNSJs7+5Xad9IgRfhssfGnPakg edcsGzaFS4P8X+DfHotOMay2nl3C6AGbNh111TBsyoEbzf4PWUkAeIsNorIKdpj3zzR+ tOxx8IEzD4NfFsa44WQhJWrLknyQXyWuB+NfMQKP5Z5qIEwasHNZoPyONyNUs/9B/NT1 fX/rW9GeOfXSq2kOryqUXOMOWizkJYCA1esIPjhFwRrksdKigFQlI74xXq4Jk6RRPtSb No+aV8a7jhX4xXzrkUFmTgq/2r5s9dE93B7OUg0IaI9mrEqYEJX8FPImSo+pjYIE5iih 5g/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DlZ9HJrE; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id s21-20020a05622a1a9500b0040681c1920esi3120484qtc.343.2023.09.01.13.44.21 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 01 Sep 2023 13:44:21 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DlZ9HJrE; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qcAzE-0007DK-K7; Fri, 01 Sep 2023 16:43:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qcAyt-0006yX-7R for qemu-devel@nongnu.org; Fri, 01 Sep 2023 16:43:03 -0400 Received: from mail-pf1-x436.google.com ([2607:f8b0:4864:20::436]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qcAyq-0001xa-9h for qemu-devel@nongnu.org; Fri, 01 Sep 2023 16:43:02 -0400 Received: by mail-pf1-x436.google.com with SMTP id d2e1a72fcca58-68a410316a2so2030461b3a.0 for ; Fri, 01 Sep 2023 13:42:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693600979; x=1694205779; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=0iqggZ/kUA5XzQ6SOnvjK327/KaVNo8nl6UgLS2s/bg=; b=DlZ9HJrESRXlyfxOWl61Wi/5iq42dknbSyrqwMWe9baERQaQEhyLttui/+FsWUjzgp MqjMrGRWUbSO6fmA2GNt31iP7r15FgJEsW0EL3z8rJpErYqeR+TdVBV8M4uxP9DSjq3s 4RssjGjFvBBJKPDD6NRh3/SH8y9q9ZmDseuQvFEOsavSDEuI7fa3pf3rSA2yXrQGX++/ wI+QtoK01lIkBMxysPtn07bTXCEMmSlUE5pDLR95QF7HfcE45jDA3yq5VcLXPqzw22h7 G5QLOKOabUqsoPwNyckVL3ZoLbaEpFTcIGt14c2UK8YqrmBJl1qEMBcgGKX8KDUGotoB 3Vng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693600979; x=1694205779; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0iqggZ/kUA5XzQ6SOnvjK327/KaVNo8nl6UgLS2s/bg=; b=e+VUQX+nr4/8Vd9BJ8V74fkc28zuq0nGLtL2oXOP2YEu9yJ0xzO8yUeAYauqs1OoBH J2jJLFM1X+we21YYZuXNBy7YPJEcPsfBot1hLaDVJKghH24+VyqAYQwZTCneRWJUat+Z RTwKZ/i4kfx/vFag3zNhNN3HTJs+N0xMITlN+CWA7nfN1oHkKkb8Hm4JoWhO384hwZXz GbOOd5OS6ql5YQIsdY+z9sHqWubjkfnBsiwnERPByXtX6XbaFGlSndwfVp+KuLh1ncL5 460PXEao99t16AVd93EscrjTEiE12JNbdZxNcrAbzOMX2N3JcrscBBaN++OnH/ihSRv0 MhQA== X-Gm-Message-State: AOJu0YzjLW5tlLaH5WXQg4ZgJl97hmgMEGOmQ5huUNgU9G/wX1glgZuX ZEfUzO12umn6n4f/nLSxs6cHwPcC50hDX+PCB9U= X-Received: by 2002:a05:6a21:6da0:b0:14e:509:1d7b with SMTP id wl32-20020a056a216da000b0014e05091d7bmr4934665pzb.8.1693600979002; Fri, 01 Sep 2023 13:42:59 -0700 (PDT) Received: from stoup.. ([71.212.131.115]) by smtp.gmail.com with ESMTPSA id j15-20020aa78d0f000000b0068c97a4eb0dsm3320666pfe.191.2023.09.01.13.42.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Sep 2023 13:42:58 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Helge Deller , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Ilya Leoshkevich Subject: [PULL 07/13] linux-user: Show heap address in /proc/pid/maps Date: Fri, 1 Sep 2023 13:42:45 -0700 Message-Id: <20230901204251.137307-8-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230901204251.137307-1-richard.henderson@linaro.org> References: <20230901204251.137307-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::436; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x436.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Tested-by: Helge Deller Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Ilya Leoshkevich Signed-off-by: Richard Henderson --- linux-user/syscall.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 0b91f996b7..0641d8f433 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -8125,6 +8125,8 @@ static void open_self_maps_4(const struct open_self_maps_data *d, if (test_stack(start, end, info->stack_limit)) { path = "[stack]"; + } else if (start == info->brk) { + path = "[heap]"; } /* Except null device (MAP_ANON), adjust offset for this fragment. */