From e5a68998b7dc2e7baecfaf26ca87de78ec2f94c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Thu, 8 Sep 2016 02:20:32 +0200 Subject: [profiler} Don't crash if a zero sampling frequency is given. --- man/mprof-report.1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'man') diff --git a/man/mprof-report.1 b/man/mprof-report.1 index c2020a74450..c4fd545dd10 100644 --- a/man/mprof-report.1 +++ b/man/mprof-report.1 @@ -143,8 +143,8 @@ to the control port program behaviour. The default is to collect a 100 times per second (100 Hz) the instruction pointer. -This is equivalent to the value \[lq]cycles/100\[rq] for -\f[I]TYPE\f[]. +This is equivalent to the value \[lq]cycles/100\[rq]. +A value of zero for \f[I]FREQ\f[] effectively disables sampling. On some systems, like with recent Linux kernels, it is possible to cause the sampling to happen for other events provided by the performance counters of the cpu. -- cgit v1.2.3