Page MenuHomeFreeBSD

Clean up gprof
ClosedPublic

Authored by andrew on Sep 9 2020, 10:24 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 6, 4:54 PM
Unknown Object (File)
Sat, Nov 29, 6:54 AM
Unknown Object (File)
Wed, Nov 26, 8:01 PM
Unknown Object (File)
Wed, Nov 26, 5:06 PM
Unknown Object (File)
Nov 17 2025, 3:27 PM
Unknown Object (File)
Nov 11 2025, 11:38 PM
Unknown Object (File)
Nov 6 2025, 8:39 AM
Unknown Object (File)
Nov 6 2025, 6:59 AM
Subscribers

Details

Summary
  • Remove identical or almost identical headers
  • List the architectures where aout.c builds rather than where to not build it
  • Enable on all architectures

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

andrew created this revision.
imp added inline comments.
usr.bin/gprof/Makefile
8 ↗(On Diff #76801)

We switched to ELF in FreeBSD 3.2. which means only i386 ever had a.out (though there were prototypes for FreeBSD/alpha with a.out iirc, that's not relevant here).

This should read simply

.if ${MACHINE_CPUARCH} == "i386"

usr.bin/gprof/Makefile
8 ↗(On Diff #76801)

<kib> we support i386 a.out on amd64 s/we/I/

Only support aout.c on i386 & amd64

Only support aout.c on i386 & amd64

Crazy question: Do we support building and profiling a.out even at all? Maybe we just drop it entirely?

I have no idea, although if we remove it I think it should be a second change that could be easily reverted if needed.

This revision was not accepted when it landed; it landed in state Needs Review.Sep 14 2020, 4:19 PM
Closed by commit rS365727: Cleanups for gprof: (authored by andrew). · Explain Why
This revision was automatically updated to reflect the committed changes.