summaryrefslogtreecommitdiffstats
path: root/usr.bin/gprof
diff options
context:
space:
mode:
authorschweikh <schweikh@FreeBSD.org>2001-08-14 17:48:29 +0000
committerschweikh <schweikh@FreeBSD.org>2001-08-14 17:48:29 +0000
commit93c81003304a338ef8abf4324a7131976c9c8f37 (patch)
treefad8b16282bae758c6fcdccc153b781aefc3302c /usr.bin/gprof
parentde3feff3f8839f8f26a69dfb7cd667332a8536dc (diff)
downloadFreeBSD-src-93c81003304a338ef8abf4324a7131976c9c8f37.zip
FreeBSD-src-93c81003304a338ef8abf4324a7131976c9c8f37.tar.gz
Add hint about how we name profiled libraries (append _p at the right place).
PR: 8061 Submitted by: Brandon Gillespie <brandon@ice.cold.org> Reviewed by: joerg, ru MFC after: 5 weeks
Diffstat (limited to 'usr.bin/gprof')
-rw-r--r--usr.bin/gprof/gprof.111
1 files changed, 11 insertions, 0 deletions
diff --git a/usr.bin/gprof/gprof.1 b/usr.bin/gprof/gprof.1
index 7619046..f421221 100644
--- a/usr.bin/gprof/gprof.1
+++ b/usr.bin/gprof/gprof.1
@@ -58,6 +58,17 @@ The
.Fl pg
option also links in versions of the library routines
that are compiled for profiling.
+By convention these libraries have their name suffixed with
+.Pa _p ,
+i.e. the profiled version of
+.Pa libc.a
+is
+.Pa libc_p.a
+and if you specify libraries directly to the
+compiler or linker you can use
+.Fl l Ns Ar c_p
+instead of
+.Fl l Ns Ar c .
.Nm Gprof
reads the given object file (the default is
.Pa a.out)
OpenPOWER on IntegriCloud