Message ID | CAMe9rOr5m+G1yOmQdBtQRvBywGoSdOhYiigwZQsxeNaZ1_dc1w@mail.gmail.com |
---|---|
State | New |
Headers |
Return-Path: <binutils-bounces~patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 30D953858C31 for <patchwork@sourceware.org>; Mon, 10 Mar 2025 15:15:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 30D953858C31 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=CAUGCnJX X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-yw1-x1133.google.com (mail-yw1-x1133.google.com [IPv6:2607:f8b0:4864:20::1133]) by sourceware.org (Postfix) with ESMTPS id D27A83858C2C for <binutils@sourceware.org>; Mon, 10 Mar 2025 15:14:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D27A83858C2C Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org D27A83858C2C Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::1133 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1741619672; cv=none; b=nLWODzng+f1IwFpsWZRs7Z587scisNnuQRUoq8M6AMscDXKz39LivpI+PJxQp9e0tKbl8EVvEeJfYlsKOGTqHILjvx7RfwvmWYh6kJZ5JB6hqtvjcHuepEGHD+eA/hScrbsgu1QSX5EOYjseQLh/NDdFiiz/Wt3tawlclVAu6aw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1741619672; c=relaxed/simple; bh=adBr8TcNHcIH9zxXCdCrrxr4qSxOG1Dr7L5Ko/vsYsQ=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=O0NRXAHfz0oskfLb3znTq/ZTtiVEV1+rYUAeoiPicw+PZf9gtznd4Xa2myg35xdsaYpLiGw8is8E3snq0W2M7xgPh0Qu36OqdFz8rScU7kzC8e5qpa52HnwJ/LHn9iT1f+C6Hl1tfm4ZkGECL6W++PL01/UC/ieGbFG14hApkbw= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D27A83858C2C Received: by mail-yw1-x1133.google.com with SMTP id 00721157ae682-6febf391132so30343897b3.1 for <binutils@sourceware.org>; Mon, 10 Mar 2025 08:14:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741619672; x=1742224472; darn=sourceware.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=rTpBCl4A9KqdqIxQZiUz/1UBzQwCc0aS4+DzYzw2qOQ=; b=CAUGCnJXL2zouGbEO5OUUIfHjiGxcT3/6D1NAuaE2zV00GOaN8HQv8ZfgAYd8Mt438 03S2rH+ZBiQaAIrqTPiLZbAYl4GHT5agrsuke5nyFiAC2rTSC1brmSqL5OGYBRC+JcLX VhtFM/KJeDBP48tOFb3R9jQLhsezQT/xfLmd8fx5PrTbD7QJwTc4vMgMRCWzjf9HoVNg d0qUm5bSS9GMFLsEXv/IDJdjsW1Lw5ocjgKAf6DxMExU6b99QyBaweJs9eyb7zYZMhvj NKK5smclhEBuOnQlAVwQ8OwlGMZ4TYBIEMMXI17JG4wZi7FwL2Yeq5gc2im8F5zUHJN7 CkfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741619672; x=1742224472; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=rTpBCl4A9KqdqIxQZiUz/1UBzQwCc0aS4+DzYzw2qOQ=; b=TI354sGv8D0bdiAavfyOms/CrgzWJg+luu0gbq5Kbqyef2u5StaN8ddWDI/+AqNeGs zf8JMNC/cOj1BI40uUljAwrK4plfGBOG9TkBfojUumuzTlT57xYk0BFvj5ScT4YCLR+l noxTQ7/DzxwNyAtovXBWOrSWeMh1EITRQJOTGkdpYGuJMWjkeJ+vEvPUlAJiT//V19L5 l8LmRQqRzTuHGnrr/6TVvvQeAQinpqhNrBHydgfQx15f6jLNV9lOJIxCzY7fmmooT1sm ht1I5LJe1zQyib9XQ1koYvZnYyENX6NK2Pt607qsOXD/o1ir2+AxtDJaZOO8i0b9q3nv riDA== X-Gm-Message-State: AOJu0YwoE2S8cVc+4Wx520TFyr7K7p+HjT9p5L4bjgxTqBQx40wuRCBB W8bMnuxh1mwq1ObjVjLsMeYOd6ERV6AQiZSrnheAgQgTEwKmnuzLMaJBC10qfn5uFhnHAXU5DL7 xkpALNKnonKeQ6cqy1t/hjtwEut7IL1VM X-Gm-Gg: ASbGncuj9NLMwOH9xN+GSFAv7WIeuoQFotLBKh2erpgscm6a+KvVZl9K1LzoVcW1py4 3AP6giJ+1Lm3J7evhfcDbKNkpsrseC6pLbibusIZgZjEfvcieIR2YJWsEhie2T7QbQ5wTMvpX3U NL9NO8svBwrFeb5sihqWSzSW+bLg== X-Google-Smtp-Source: AGHT+IFdq8bsMm2hZ3/aAOlphxGDfEJsupV1JgIX//AlhE+FgShRAWQ6M/PaW9AqCpoJrA8DG/si9D+SD/oJ6NUgnpg= X-Received: by 2002:a05:690c:6382:b0:6f8:cedc:570d with SMTP id 00721157ae682-6febf27f8d9mr210835557b3.6.1741619672049; Mon, 10 Mar 2025 08:14:32 -0700 (PDT) MIME-Version: 1.0 References: <20250309153452.1326128-1-hjl.tools@gmail.com> <87h641iw6n.fsf@gentoo.org> <CAMe9rOreDxNcBWVShFuu3z0mrpt7_Bf+OBTrc939cT6ZW9x_qw@mail.gmail.com> <87tt81h659.fsf@gentoo.org> <CAMe9rOqq1X6FADm4tN-JbSoTJVOsuCzbWq_J-Wzf3+tzoYLbSQ@mail.gmail.com> In-Reply-To: <CAMe9rOqq1X6FADm4tN-JbSoTJVOsuCzbWq_J-Wzf3+tzoYLbSQ@mail.gmail.com> From: "H.J. Lu" <hjl.tools@gmail.com> Date: Mon, 10 Mar 2025 08:13:53 -0700 X-Gm-Features: AQ5f1JoNdTYmxdvEV5J0cfYyNIrmZdyxUFakoraYE3zs_TSDCS0s82voq1L1qeQ Message-ID: <CAMe9rOr5m+G1yOmQdBtQRvBywGoSdOhYiigwZQsxeNaZ1_dc1w@mail.gmail.com> Subject: [PATCH, COMMITTED] gprof: Append -l to tst-gmon-gprof-l.sh data files To: Sam James <sam@gentoo.org> Cc: Binutils <binutils@sourceware.org> Content-Type: multipart/mixed; boundary="000000000000e3201a062ffe6d30" X-Spam-Status: No, score=-3015.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP 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: binutils@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils mailing list <binutils.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/binutils>, <mailto:binutils-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/binutils/> List-Post: <mailto:binutils@sourceware.org> List-Help: <mailto:binutils-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/binutils>, <mailto:binutils-request@sourceware.org?subject=subscribe> Errors-To: binutils-bounces~patchwork=sourceware.org@sourceware.org |
Series |
[COMMITTED] gprof: Append -l to tst-gmon-gprof-l.sh data files
|
|
Checks
Context | Check | Description |
---|---|---|
linaro-tcwg-bot/tcwg_binutils_build--master-arm | fail | Patch failed to apply |
linaro-tcwg-bot/tcwg_binutils_build--master-aarch64 | fail | Patch failed to apply |
Commit Message
H.J. Lu
March 10, 2025, 3:13 p.m. UTC
On Mon, Mar 10, 2025 at 6:40 AM H.J. Lu <hjl.tools@gmail.com> wrote: > > On Sun, Mar 9, 2025 at 9:16 PM Sam James <sam@gentoo.org> wrote: > > > > "H.J. Lu" <hjl.tools@gmail.com> writes: > > > > > On Sun, Mar 9, 2025 at 5:08 PM Sam James <sam@gentoo.org> wrote: > > >> > > >> "H.J. Lu" <hjl.tools@gmail.com> writes: > > >> > > >> > Verify that "gprof -l" works properly. > > >> > > > >> > * testsuite/Makefile.am (check_SCRIPTS): Add tst-gmon-gprof-l.sh. > > >> > * testsuite/Makefile.in: Regenerated. > > >> > * testsuite/tst-gmon-gprof-l.sh: New. > > >> > > > >> > > >> It looks good. > > >> > > >> > Signed-off-by: H.J. Lu <hjl.tools@gmail.com> > > >> > --- > > >> > gprof/testsuite/Makefile.am | 5 ++ > > >> > gprof/testsuite/Makefile.in | 13 ++++- > > >> > gprof/testsuite/tst-gmon-gprof-l.sh | 74 +++++++++++++++++++++++++++++ > > >> > 3 files changed, 90 insertions(+), 2 deletions(-) > > >> > create mode 100755 gprof/testsuite/tst-gmon-gprof-l.sh > > >> > > > >> > diff --git a/gprof/testsuite/Makefile.am b/gprof/testsuite/Makefile.am > > >> > index 6a3eb726294..c4d6c41fcf4 100644 > > >> > --- a/gprof/testsuite/Makefile.am > > >> > +++ b/gprof/testsuite/Makefile.am > > >> > @@ -35,4 +35,9 @@ tst-gmon: tst-gmon.$(OBJEXT) > > >> > tst-gmon-gprof.out: tst-gmon$(EXEEXT) $(GPROF) > > >> > $(srcdir)/tst-gmon-gprof.sh $(GPROF) tst-gmon$(EXEEXT) > > >> > > > >> > +check_SCRIPTS += tst-gmon-gprof-l.sh > > >> > +check_DATA += tst-gmon-gprof-l.out > > >> > +tst-gmon-gprof-l.out: tst-gmon$(EXEEXT) $(GPROF) > > >> > + $(srcdir)/tst-gmon-gprof-l.sh $(GPROF) tst-gmon$(EXEEXT) > > >> > + > > >> > endif NATIVE > > >> > diff --git a/gprof/testsuite/Makefile.in b/gprof/testsuite/Makefile.in > > >> > index 3e26c2c952c..008f6be879e 100644 > > >> > --- a/gprof/testsuite/Makefile.in > > >> > +++ b/gprof/testsuite/Makefile.in > > >> > @@ -90,8 +90,8 @@ POST_UNINSTALL = : > > >> > build_triplet = @build@ > > >> > host_triplet = @host@ > > >> > target_triplet = @target@ > > >> > -@NATIVE_TRUE@am__append_1 = tst-gmon-gprof.sh > > >> > -@NATIVE_TRUE@am__append_2 = tst-gmon-gprof.out > > >> > +@NATIVE_TRUE@am__append_1 = tst-gmon-gprof.sh tst-gmon-gprof-l.sh > > >> > +@NATIVE_TRUE@am__append_2 = tst-gmon-gprof.out tst-gmon-gprof-l.out > > >> > @NATIVE_TRUE@am__append_3 = tst-gmon.$(OBJEXT) tst-gmon$(EXEEXT) gmon.out > > >> > subdir = testsuite > > >> > ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 > > >> > @@ -705,6 +705,13 @@ tst-gmon-gprof.sh.log: tst-gmon-gprof.sh > > >> > --log-file $$b.log --trs-file $$b.trs \ > > >> > $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ > > >> > "$$tst" $(AM_TESTS_FD_REDIRECT) > > >> > +tst-gmon-gprof-l.sh.log: tst-gmon-gprof-l.sh > > >> > + @p='tst-gmon-gprof-l.sh'; \ > > >> > + b='tst-gmon-gprof-l.sh'; \ > > >> > + $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ > > >> > + --log-file $$b.log --trs-file $$b.trs \ > > >> > + $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ > > >> > + "$$tst" $(AM_TESTS_FD_REDIRECT) > > >> > .test.log: > > >> > @p='$<'; \ > > >> > $(am__set_b); \ > > >> > @@ -879,6 +886,8 @@ uninstall-am: > > >> > @NATIVE_TRUE@ $(LINK) tst-gmon.$(OBJEXT) > > >> > @NATIVE_TRUE@tst-gmon-gprof.out: tst-gmon$(EXEEXT) $(GPROF) > > >> > @NATIVE_TRUE@ $(srcdir)/tst-gmon-gprof.sh $(GPROF) tst-gmon$(EXEEXT) > > >> > +@NATIVE_TRUE@tst-gmon-gprof-l.out: tst-gmon$(EXEEXT) $(GPROF) > > >> > +@NATIVE_TRUE@ $(srcdir)/tst-gmon-gprof-l.sh $(GPROF) tst-gmon$(EXEEXT) > > >> > > > >> > # Tell versions [3.59,3.63) of GNU make to not export all variables. > > >> > # Otherwise a system limit (for SysV at least) may be exceeded. > > >> > diff --git a/gprof/testsuite/tst-gmon-gprof-l.sh b/gprof/testsuite/tst-gmon-gprof-l.sh > > >> > new file mode 100755 > > >> > index 00000000000..3e54da6b4f7 > > >> > --- /dev/null > > >> > +++ b/gprof/testsuite/tst-gmon-gprof-l.sh > > >> > @@ -0,0 +1,74 @@ > > >> > +#!/bin/sh > > >> > +# Check the output of gprof against a carfully crafted binary. > > >> > +# Copyright (C) 2017-2025 Free Software Foundation, Inc. > > >> > +# This file is part of the GNU C Library. > > >> > + > > >> > +# The GNU C Library is free software; you can redistribute it and/or > > >> > +# modify it under the terms of the GNU Lesser General Public > > >> > +# License as published by the Free Software Foundation; either > > >> > +# version 2.1 of the License, or (at your option) any later version. > > >> > + > > >> > +# The GNU C Library is distributed in the hope that it will be useful, > > >> > +# but WITHOUT ANY WARRANTY; without even the implied warranty of > > >> > +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU > > >> > +# Lesser General Public License for more details. > > >> > + > > >> > +# You should have received a copy of the GNU Lesser General Public > > >> > +# License along with the GNU C Library; if not, see > > >> > +# <https://www.gnu.org/licenses/>. > > >> > + > > >> > +GPROF="$1" > > >> > +if test -z "$GPROF"; then > > >> > + # Exit 0 for automake test script run. > > >> > + exit 0 > > >> > > >> I think we may want 'exit 77' here to SKIP. > > > > > > Since automake always runs tst-gmon-gprof-l.sh without > > > any arguments, I used "exit 0" to avoid any confusion. > > > > Oh, I see. Thanks. > > I am checking it in. > > -- > H.J. I checked in this to avoid conflicts with tst-gmon-gprof.sh data files.
From 72088cbe294598b957a43d923cf070ecf49afe52 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" <hjl.tools@gmail.com> Date: Mon, 10 Mar 2025 08:07:17 -0700 Subject: [PATCH] gprof: Append -l to tst-gmon-gprof-l.sh data files Append -l to tst-gmon-gprof-l.sh data files to avoid conflicts with tst-gmon-gprof.sh data files. * testsuite/tst-gmon-gprof-l.sh (actual): Append -l. (expected): Likewise. (expected_dot): Likewise. Signed-off-by: H.J. Lu <hjl.tools@gmail.com> --- gprof/testsuite/tst-gmon-gprof-l.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gprof/testsuite/tst-gmon-gprof-l.sh b/gprof/testsuite/tst-gmon-gprof-l.sh index 3e54da6b4f7..530d022e472 100755 --- a/gprof/testsuite/tst-gmon-gprof-l.sh +++ b/gprof/testsuite/tst-gmon-gprof-l.sh @@ -38,9 +38,9 @@ export LC_ALL set -e exec 2>&1 -actual=${program}.actual -expected=${program}.expected -expected_dot=${program}.expected_dot +actual=${program}.actual-l +expected=${program}.expected-l +expected_dot=${program}.expected_dot-l cleanup () { rm -f "$actual" rm -f "$expected" -- 2.48.1