]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gprof: Copy a simple test from glibc
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 6 Mar 2025 22:42:18 +0000 (06:42 +0800)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 7 Mar 2025 01:15:49 +0000 (09:15 +0800)
commitd07a59a5ca830bf74705471f6bea6db1a47da2b5
treeccfcffcec2d2fdc960a696dd496f1a832864b0d7
parent1a764289c7ce57552a1bdf48ed92ac89b04caa4e
gprof: Copy a simple test from glibc

Copy a simple gprof test from glibc to test the basic gprof functionality.

1. Tested natively on Linux/x86-64 and Linux/i686.
2. Tested for the x86_64-solaris cross target without cross-compiler.
3. Tested for the aarch64-linux-gnu cross target with cross-compiler.

PR gprof/32764
* Makefile.am (SUBDIRS): Add testsuite
* configure.ac (AC_CONFIG_FILES): Removed.
(AC_OUTPUT): Add Makefile testsuite/Makefile
po/Makefile.in:po/Make-in.
(AM_CONDITIONAL): Add NATIVE.
* Makefile.in: Regenerated.
* configure: Likewise.
* testsuite/Makefile.am: New file.
* testsuite/tst-gmon-gprof.sh: Likewise.
* testsuite/tst-gmon.c: Likewise.
* testsuite/Makefile.in: Generated.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
gprof/Makefile.am
gprof/Makefile.in
gprof/configure
gprof/configure.ac
gprof/testsuite/Makefile.am [new file with mode: 0644]
gprof/testsuite/Makefile.in [new file with mode: 0644]
gprof/testsuite/tst-gmon-gprof.sh [new file with mode: 0755]
gprof/testsuite/tst-gmon.c [new file with mode: 0644]