summaryrefslogtreecommitdiffstats
path: root/usr.bin/gprof/gprof.1
diff options
context:
space:
mode:
authorgreen <green@FreeBSD.org>2001-10-30 15:54:09 +0000
committergreen <green@FreeBSD.org>2001-10-30 15:54:09 +0000
commit85a9f299f9ff18dd7fee037e0aee7e70d3971e7e (patch)
tree3af54369ee3af34acc584ccf59baf1a0dc95e078 /usr.bin/gprof/gprof.1
parent0bacb7acb24b620b0199d06b1a081160742a8cd5 (diff)
downloadFreeBSD-src-85a9f299f9ff18dd7fee037e0aee7e70d3971e7e.zip
FreeBSD-src-85a9f299f9ff18dd7fee037e0aee7e70d3971e7e.tar.gz
Add -K support to gprof(1), which enables dynamic symbol resolution from
the currently-running kernel (and supercedes an executable file argument given). With this change, properly-compiled KLD modules are now able to be profiled. Obtained from: NAI Labs CBOSS project Funded by: DARPA
Diffstat (limited to 'usr.bin/gprof/gprof.1')
-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 f421221..fa45baa 100644
--- a/usr.bin/gprof/gprof.1
+++ b/usr.bin/gprof/gprof.1
@@ -208,6 +208,17 @@ option may be given.
Only one pair of routine names may be given with each
.Fl k
option.
+.It Fl K
+Gather information about symbols from the currently-running kernel using the
+.Xr sysctl 3
+and
+.Xr kldsym 2
+interfaces.
+This forces the
+.Pa a.out
+argument to be ignored, and allows for symbols in
+.Xr kld 4
+modules to be used.
.It Fl l
Suppresses the printing of the call-graph profile.
.It Fl L
OpenPOWER on IntegriCloud