diff options
author | gnn <gnn@FreeBSD.org> | 2016-05-19 19:51:39 +0000 |
---|---|---|
committer | gnn <gnn@FreeBSD.org> | 2016-05-19 19:51:39 +0000 |
commit | f6dffc405c7096f010b1b300da305496e6eccfbf (patch) | |
tree | d8ae9764a9fe69885151446bd98bb00d10a96f32 /cddl/contrib/dtracetoolkit/Cpu/loads.d | |
parent | 6dc0fa9057a5a2eda45ab244907043956d7cbead (diff) | |
download | FreeBSD-src-f6dffc405c7096f010b1b300da305496e6eccfbf.zip FreeBSD-src-f6dffc405c7096f010b1b300da305496e6eccfbf.tar.gz |
Remove the old version of the DTraceToolkit from the source tree.
The DTraceToolkit is part of the Open DTrace effort and is supported
on FreeBSD as a port (sysutils/DTraceToolkit) which has been updated
to properly track toolkit development upstream.
Sponsored by: DARPA, AFRL
Diffstat (limited to 'cddl/contrib/dtracetoolkit/Cpu/loads.d')
-rwxr-xr-x | cddl/contrib/dtracetoolkit/Cpu/loads.d | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/cddl/contrib/dtracetoolkit/Cpu/loads.d b/cddl/contrib/dtracetoolkit/Cpu/loads.d deleted file mode 100755 index 681e8f6..0000000 --- a/cddl/contrib/dtracetoolkit/Cpu/loads.d +++ /dev/null @@ -1,58 +0,0 @@ -#!/usr/sbin/dtrace -s -/* - * loads.d - print load averages. Written using DTrace (Solaris 10 3/05). - * - * These are the same load averages that the "uptime" command prints. - * The purpose of this script is to demonstrate fetching these values - * from the DTrace language. - * - * $Id: loads.d 3 2007-08-01 10:50:08Z brendan $ - * - * USAGE: loads.d - * - * SEE ALSO: uptime(1) - * - * The first field is the 1 minute average, the second is the 5 minute, - * and the third is the 15 minute average. The value represents the average - * number of runnable threads in the system, a value higher than your - * CPU (core/hwthread) count may be a sign of CPU saturation. - * - * COPYRIGHT: Copyright (c) 2005 Brendan Gregg. - * - * CDDL HEADER START - * - * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. - * - * You can obtain a copy of the license at Docs/cddl1.txt - * or http://www.opensolaris.org/os/licensing. - * See the License for the specific language governing permissions - * and limitations under the License. - * - * CDDL HEADER END - * - * 10-Jun-2005 Brendan Gregg Created this. - * 10-Jun-2005 " " Last update. - */ - -#pragma D option quiet - -dtrace:::BEGIN -{ - /* fetch load averages */ - this->load1a = `hp_avenrun[0] / 65536; - this->load5a = `hp_avenrun[1] / 65536; - this->load15a = `hp_avenrun[2] / 65536; - this->load1b = ((`hp_avenrun[0] % 65536) * 100) / 65536; - this->load5b = ((`hp_avenrun[1] % 65536) * 100) / 65536; - this->load15b = ((`hp_avenrun[2] % 65536) * 100) / 65536; - - /* print load average */ - printf("%Y, load average: %d.%02d, %d.%02d, %d.%02d\n", - walltimestamp, this->load1a, this->load1b, this->load5a, - this->load5b, this->load15a, this->load15b); - - exit(0); -} |