summaryrefslogtreecommitdiffstats
path: root/share/man/man4/hwpmc.4
diff options
context:
space:
mode:
authorjkoshy <jkoshy@FreeBSD.org>2007-12-07 08:29:46 +0000
committerjkoshy <jkoshy@FreeBSD.org>2007-12-07 08:29:46 +0000
commitbfdf2301d6612113cb49ecee050f37b0d061b217 (patch)
treea7ca838f0b3a6acdd114548fa6991f4b2e35090d /share/man/man4/hwpmc.4
parent2aef7957ec96361c7cf73dee65ee4512b39e1de5 (diff)
downloadFreeBSD-src-bfdf2301d6612113cb49ecee050f37b0d061b217.zip
FreeBSD-src-bfdf2301d6612113cb49ecee050f37b0d061b217.tar.gz
Document the PMC_F_CALLCHAIN flag and the kern.hwpmc.callchaindepth
tunable. Sponsored by: FreeBSD Foundation and Google Inc.
Diffstat (limited to 'share/man/man4/hwpmc.4')
-rw-r--r--share/man/man4/hwpmc.423
1 files changed, 19 insertions, 4 deletions
diff --git a/share/man/man4/hwpmc.4 b/share/man/man4/hwpmc.4
index 563c6f8..31a6918 100644
--- a/share/man/man4/hwpmc.4
+++ b/share/man/man4/hwpmc.4
@@ -1,6 +1,10 @@
.\" Copyright (c) 2003-2007 Joseph Koshy
+.\" Copyright (c) 2007 The FreeBSD Foundation
.\" All rights reserved.
.\"
+.\" Portions of this software were developed by A. Joseph Koshy under
+.\" sponsorship from the FreeBSD Foundation and Google, Inc.
+.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
@@ -76,10 +80,11 @@ system call on all architectures.
Some architectures offer faster methods of reading these counts.
.It Em Sampling
In sampling modes, the PMCs are configured to sample the CPU
-instruction pointer after a configurable number of hardware events
-have been observed.
-These instruction pointer samples are usually directed to a log file
-for subsequent analysis.
+instruction pointer (and optionally to capture the call chain leading
+upto the sampled instruction pointer) after a configurable number of
+hardware events have been observed.
+Instruction pointer samples and call chain records are usually
+directed to a log file for subsequent analysis.
.El
.Pp
Scope and operational mode are orthogonal; a PMC may thus be
@@ -181,6 +186,13 @@ The
operation supports the following flags that modify the behavior
of an allocated PMC:
.Bl -tag -width indent
+.It Dv PMC_F_CALLCHAIN
+This modifier informs sampling PMCs to record a callchain when
+capturing a sample.
+The maximum depth to which call chains are recorded is specified
+by the
+.Va "kern.hwpmc.callchaindepth"
+kernel tunable.
.It Dv PMC_F_DESCENDANTS
This modifier is valid only for a PMC being allocated in process-private
mode.
@@ -391,6 +403,9 @@ and
.Xr loader 8
tunables:
.Bl -tag -width indent
+.It Va kern.hwpmc.callchaindepth Pq integer, read-only
+The maximum number of call chain records to capture per sample.
+The default is 8.
.It Va kern.hwpmc.debugflags Pq string, read-write
(Only available if the
.Nm
OpenPOWER on IntegriCloud