diff options
author | green <green@FreeBSD.org> | 2001-10-30 15:54:09 +0000 |
---|---|---|
committer | green <green@FreeBSD.org> | 2001-10-30 15:54:09 +0000 |
commit | 85a9f299f9ff18dd7fee037e0aee7e70d3971e7e (patch) | |
tree | 3af54369ee3af34acc584ccf59baf1a0dc95e078 /usr.bin/gprof/gprof.1 | |
parent | 0bacb7acb24b620b0199d06b1a081160742a8cd5 (diff) | |
download | FreeBSD-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.1 | 11 |
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 |