Home
last modified time | relevance | path

Searched +full:1 +full:d +full:- +full:histogram (Results 1 – 25 of 108) sorted by relevance

12345

/freebsd/tools/test/arc4random/
H A Dbiastest.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
6 * biastest.c -- bias test for arc4random_uniform().
41 fprintf(stderr, "usage: %s [-n tries] [-t upper_bound]\n", argv0); in usage()
70 fprintf(stderr, "threshold must be between 1 and %lu\n", (unsigned long)UINT32_MAX); in main()
74 sample = calloc(threshold, 1); in main()
76 perror("calloc(threshold, 1)"); in main()
94 alarm(1); in progress()
130 long long histogram[UCHAR_MAX + 1] = { 0 }, sum, n, median; in analyze_sample() local
139 histogram[sample[i]]++; in analyze_sample()
[all …]
/freebsd/contrib/unbound/contrib/
H A Dunbound_munin_5 # and use munin-node-configure (--suggest, --shell).
9 # To install; enable statistics and unbound-control in unbound.conf
10 # server: extended-statistics: yes
11 # statistics-cumulative: no
12 # statistics-interval: 0
13 # remote-control: control-enable: yes
14 # Run the command unbound-control-setup to generate the key files.
17 # unbound_conf - where the unbound.conf file is located.
18 # unbound_control - where to find unbound-control executable.
19 # spoof_warn - what level to warn about spoofing
[all …]
H A Dparseunbound.pl1 #!/usr/local/bin/perl -w
4 # Unbound supports a threading model, and outputs a multiline log-blob for
15 use constant UNBOUND_CACHE => "/var/tmp/unbound-cache.stor";
17 my $run_from_cron = @ARGV && $ARGV[0] eq "--cron" && shift;
18 my $DEBUG = -t STDERR;
24 if ( -r UNBOUND_CACHE ) {
26 if (-M _ < 3/24/60 && !$run_from_cron ) {
32 my $logfile = shift or die "Usage: parseunbound.pl --cron unboundlogfile";
44 # Stats hash containing one or more keys. for every thread, 1 key.
47 my %donestats = (); # same, but only when we got a histogram entry for it
[all …]
/freebsd/contrib/ntp/util/
H A Dhist.c19 #define NBUF 100001 /* size of basic histogram */
20 #define NSRT 20000 /* size of overflow histogram */
45 * Construct histogram in main()
51 while (1) { in main()
54 if (u - v > NCNT) in main()
56 w = u - t; in main()
59 printf("error <= 0 %ld %d %d, %d %d\n", w, ts.tv_sec, in main()
62 } else if (w > NBUF - 1) { in main()
64 if (n < NSRT - 1) in main()
74 * Write out histogram in main()
[all …]
/freebsd/sys/contrib/openzfs/cmd/zpool_influxdb/
H A DREADME.md6 stdout. In many ways, this is a metrics-friendly output of
18 |---|---|---|
19 | --execd | -e | For use with telegraf's `execd` plugin. When [enter] is pressed, the pools are sam…
20 | --no-histogram | -n | Do not print histogram information |
21 | --signed-int | -i | Use signed integer data type (default=unsigned) |
22 | --sum-histogram-buckets | -s | Sum histogram bucket values |
23 | --tags key=value[,key=value...] | -t | Add tags to data points. No tag sanity checking is perform…
24 | --help | -h | Print a short usage message |
26 #### Histogram Bucket Values
27 The histogram data collected by ZFS is stored as independent bucket values.
[all …]
H A Dzpool_influxdb.c2 * Gather top-level ZFS pool and resilver/scan statistics and print using
6 * --execd, -e run in telegraf execd input plugin mode, [CR] on
9 * --no-histograms, -n don't print histogram data (reduces cardinality
11 * --sum-histogram-buckets, -s sum histogram bucket values
14 * 1. the `inputs.execd` plugin with the `--execd` option
23 * collection -- info is printed, KISS
28 * Copyright 2018-2020 Richard Elling
30 * This software is dual-licensed MIT and CDDL.
59 * Common Development and Distribution License Version 1.0 (CDDL-1.0).
60 * You can obtain a copy of the license from the top-level file
[all …]
/freebsd/sys/contrib/openzfs/include/sys/
H A Dddt_impl.h9 * or https://opensource.org/licenses/CDDL-1.0.
39 #define DDT_VERSION_FDT (1)
51 (ddlwe)->ddlwe_key = (dde)->dde_key; \
52 (ddlwe)->ddlwe_type = (dde)->dde_type; \
53 (ddlwe)->ddlwe_class = (dde)->dde_class; \
54 memcpy(&(ddlwe)->ddlwe_phys, (dde)->dde_phys, DDT_PHYS_SIZE(ddt)); \
59 (ddlwe)->ddlwe_key = (ddle)->ddle_key; \
60 (ddlwe)->ddlwe_type = (ddle)->ddle_type; \
61 (ddlwe)->ddlwe_class = (ddle)->ddle_class; \
62 memcpy(&(ddlwe)->ddlwe_phys, (ddle)->ddle_phys, DDT_PHYS_SIZE(ddt)); \
[all …]
/freebsd/sys/netgraph/
H A Dng_vlan_rotate.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2019-2021 IKS Service GmbH
9 * 1. Redistributions of source code must retain the above copyright
85 {"histogram", &ng_vlanrotate_stat_hist},
150 counter_u64_t histogram[NG_VLANROTATE_MAX_VLANS]; member
174 vrp->conf.max = NG_VLANROTATE_MAX_VLANS; in ng_vlanrotate_constructor()
176 vrp->stats.drops = counter_u64_alloc(M_WAITOK); in ng_vlanrotate_constructor()
177 vrp->stats.excessive = counter_u64_alloc(M_WAITOK); in ng_vlanrotate_constructor()
178 vrp->stats.incomplete = counter_u64_alloc(M_WAITOK); in ng_vlanrotate_constructor()
[all …]
/freebsd/usr.bin/netstat/
H A Dpfkey.c3 /*-
4 * SPDX-License-Identifier: BSD-3-Clause
12 * 1. Redistributions of source code must retain the above copyright
33 /*-
40 * 1. Redistributions of source code must retain the above copyright
102 snprintf(buf, sizeof(buf), "#%d", x); in pfkey_msgtype_names()
119 #define p(f, m) if (pfkeystat.f || sflag <= 1) \ in pfkey_stats()
122 /* userland -> kernel */ in pfkey_stats()
123 p(out_total, "\t{:sent-requests/%ju} " in pfkey_stats()
125 p(out_bytes, "\t{:sent-bytes/%ju} " in pfkey_stats()
[all …]
H A Dinet6.c2 /*-
3 * SPDX-License-Identifier: BSD-3-Clause
11 * 1. Redistributions of source code must retain the above copyright
362 #define p(f, m) if (ip6stat.f || sflag <= 1) \ in ip6_stats()
364 #define p1a(f, m) if (ip6stat.f || sflag <= 1) \ in ip6_stats()
367 p(ip6s_total, "\t{:received-packets/%ju} " in ip6_stats()
369 p1a(ip6s_toosmall, "\t{:dropped-below-minimum-size/%ju} " in ip6_stats()
371 p1a(ip6s_tooshort, "\t{:dropped-short-packets/%ju} " in ip6_stats()
373 p1a(ip6s_badoptions, "\t{:dropped-bad-options/%ju} " in ip6_stats()
375 p1a(ip6s_badvers, "\t{:dropped-bad-version/%ju} " in ip6_stats()
[all …]
H A Dinet.c1 /*-
8 * 1. Redistributions of source code must retain the above copyright
128 return (1); in pcblist_sysctl()
138 xsb->sb_cc = sb->sb_ccc; in sbtoxsockbuf()
139 xsb->sb_hiwat = sb->sb_hiwat; in sbtoxsockbuf()
140 xsb->sb_mbcnt = sb->sb_mbcnt; in sbtoxsockbuf()
141 xsb->sb_mbmax = sb->sb_mbmax; in sbtoxsockbuf()
142 xsb->sb_lowat = sb->sb_lowat; in sbtoxsockbuf()
143 xsb->sb_flags = sb->sb_flags; in sbtoxsockbuf()
144 xsb->sb_timeo = sb->sb_timeo; in sbtoxsockbuf()
[all …]
/freebsd/sys/contrib/openzfs/man/man8/
H A Dzdb.828 .Op Fl I Ar inflight-I/O-ops
34 .Op Ar poolname Ns Op / Ns Ar dataset Ns | Ns Ar objset-ID
41 .Ar poolname Ns Op Ar / Ns Ar dataset Ns | Ns Ar objset-ID
48 .Ar poolname Ns Ar / Ns Ar objset-ID
49 .Op Ar backup-flags
103 The output of this command in general reflects the on-disk structure of a ZFS
129 .Bl -tag -width Ds
130 .It Fl b , -block-stats
134 .It Fl B , -backup
149 .Xr zfs-send 8 .
[all …]
/freebsd/contrib/unbound/util/
H A Dtimehist.c2 * util/timehist.c - make histogram of time values.
39 * This file contains functions to make a histogram of time values.
51 /** special timestwo operation for time values in histogram setup */
56 if(v->tv_sec == 0 && v->tv_usec == 0) { in timestwo()
57 v->tv_usec = 1; in timestwo()
60 v->tv_sec *= 2; in timestwo()
61 v->tv_usec *= 2; in timestwo()
62 if(v->tv_usec == 1024*1024) { in timestwo()
64 v->tv_sec = 1; in timestwo()
65 v->tv_usec = 0; in timestwo()
[all …]
H A Dtimeval_func.c2 * util/timeval_func.c - helpers to work with struct timeval values.
47 timeval_subtract(struct timeval* d, const struct timeval* end, const struct timeval* start) in timeval_subtract() argument
50 time_t end_usec = end->tv_usec; in timeval_subtract()
51 d->tv_sec = end->tv_sec - start->tv_sec; in timeval_subtract()
52 if(end_usec < start->tv_usec) { in timeval_subtract()
54 d->tv_sec--; in timeval_subtract()
56 d->tv_usec = end_usec - start->tv_usec; in timeval_subtract()
62 timeval_add(struct timeval* d, const struct timeval* add) in timeval_add() argument
65 d->tv_sec += add->tv_sec; in timeval_add()
66 d->tv_usec += add->tv_usec; in timeval_add()
[all …]
/freebsd/usr.bin/systat/
H A Diostat.c2 * SPDX-License-Identifier: BSD-3-Clause
4 * Copyright (c) 1998 Kenneth D. Merry.
10 * 1. Redistributions of source code must retain the above copyright
37 * 1. Redistributions of source code must retain the above copyright
83 static void histogram(long double, int, double);
91 return (subwin(stdscr, LINES-3-1, 0, MAINWIN_ROW, 0)); in openiostat()
111 if (dsinit(7) != 1) in initiostat()
114 return(1); in initiostat()
127 exit (1); in fetchiostat()
137 * getdevs() returns 1 when the device list has changed. in fetchiostat()
[all …]
/freebsd/contrib/elftoolchain/readelf/
H A Dreadelf.17 .\" 1. Redistributions of source code must retain the above copyright
25 .\" $Id: readelf.1 3753 2019-06-28 01:13:13Z emaste $
35 .Op Fl a | Fl -all
36 .Op Fl c | Fl -archive-index
37 .Op Fl d | Fl -dynamic
38 .Op Fl e | Fl -headers
39 .Op Fl g | Fl -section-groups
40 .Op Fl h | Fl -file-header
41 .Op Fl l | Fl -program-headers
42 .Op Fl n | Fl -notes
[all …]
/freebsd/sys/contrib/dev/athk/ath11k/
H A Ddebugfs_htt_stats.h1 /* SPDX-License-Identifier: BSD-3-Clause-Clear */
3 * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
16 HTT_STATS_TX_PDEV_UNDERRUN_TAG = 1,
129 HTT_STATS_TX_PDEV_DATA_UNDERRUN_BETWEEN_MPDU = 1,
249 * Tried_mpdu_cnt_hist is the histogram of MPDUs tries per HWQ.
253 * The histogram bins are 0-29, 30-59, 60-89 and so on. The are
254 * 10 bins in this histogram. They are defined in FW using the
465 /* element 0,1, ...7 -> NSS 1,2, ...8 */
467 /* element 0: 20 MHz, 1: 40 MHz, 2: 80 MHz, 3: 160 and 80+80 MHz */
473 * (400us, 800us, 1600us & 3200us) in each mcs (0-11)
[all …]
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dddt.c9 * or https://opensource.org/licenses/CDDL-1.0.
47 * The dedup subsystem provides block-level deduplication. When enabled, blocks
48 * to be written will have the dedup (D) bit set, which causes them to be
51 * the existing on-disk data, and a refcount bumped in the DDT instead.
64 * Within each DDT, there can be multiple storage "types" (ddt_type_t, on-disk
82 * now-removed "dedupditto" feature. These are no longer written, and will be
98 * A "live" in-memory entry (ddt_entry_t) is a node on the live tree
120 * the D bit on the block and reissue the IO as a regular write. The block will
123 * Note that this is based on the on-disk size of the dedup store. Reclaiming
131 * non-duplicate entries to make room for newer duplicate entries. The amount
[all …]
H A Dspace_map.c9 * or https://opensource.org/licenses/CDDL-1.0.
44 * DMU to keep more data in-core, and also to waste more I/O bandwidth
49 * Enabled whenever we want to stress test the use of double-word
58 * or two indirect blocks (16K-32K, rather than 128K).
82 * Iterate through the space map, invoking the callback on each (non-debug)
88 uint64_t blksz = sm->sm_blksz; in space_map_iterate()
94 dmu_prefetch(sm->sm_os, space_map_object(sm), 0, 0, end, in space_map_iterate()
102 error = dmu_buf_hold(sm->sm_os, space_map_object(sm), in space_map_iterate()
107 uint64_t *block_start = db->db_data; in space_map_iterate()
108 uint64_t block_length = MIN(end - block_base, blksz); in space_map_iterate()
[all …]
H A Dmetaslab.c9 * or https://opensource.org/licenses/CDDL-1.0.
50 * moving on to the next top-level vdev.
57 uint64_t metaslab_force_ganging = SPA_MAXBLOCKSIZE + 1;
72 int zfs_metaslab_sm_blksz_no_log = (1 << 14);
79 int zfs_metaslab_sm_blksz_with_log = (1 << 17);
82 * The in-core space map representation is more compact than its on-disk form.
83 * The zfs_condense_pct determines how much more compact the in-core
84 * space map representation must be before we compact it on-disk.
92 * MAX(1 << ashift, space_map_blksz), so a metaslab might use the
171 * in a space map to continue allocations in a first-fit fashion.
[all …]
/freebsd/sys/contrib/openzfs/cmd/zpool_influxdb/dashboards/grafana/
H A DZFS-pool-latency-heatmaps-influxdb.json4 "name": "DS_MACBOOK-INFLUX",
5 "label": "macbook-influx",
33 "id": "jdbranham-diagram-panel",
48 "builtIn": 1,
49 "datasource": "-- Grafana --",
52 "iconColor": "rgba(0, 211, 255, 1)",
58 "description": "Top-level ZFS pool latency by ZIO type",
61 "graphTooltip": 1,
68 "datasource": "${DS_MACBOOK-INFLUX}",
70 "h": 1,
[all …]
/freebsd/sys/contrib/device-tree/Bindings/display/
H A Drenesas,cmm.yaml1 # SPDX-License-Identifier: GPL-2.0-only
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Renesas R-Car Color Management Module (CMM)
10 - Laurent Pinchart <laurent.pinchart@ideasonboard.com>
11 - Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
12 - Jacopo Mondi <jacopo+renesas@jmondi.org>
15 Renesas R-Car color management module connected to R-Car DU video channels.
16 It provides image enhancement functions such as 1-D look-up tables (LUT),
17 3-D look-up tables (CLU), 1D-histogram generation (HGO), and color
[all …]
/freebsd/usr.bin/clang/llvm-readobj/
H A Dllvm-readelf.14 .nr rst2man-indent-level 0
7 \\$1 \\n[an-margin]
8 level \\n[rst2man-indent-level]
9 level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
10 -
11 \\n[rst2man-indent0]
12 \\n[rst2man-indent1]
13 \\n[rst2man-indent2]
17 . RS \\$1
18 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zdb/
H A Dzdb_block_size_histogram.ksh1 #!/bin/ksh -p
27 # 1. Create pool
29 # 3. Run zdb -Pbbb on pool
41 if [ $# -ne 1 ]; then
43 log_fail "hptp: 1 requested $# received"
45 typeset pool=$1
47 set -A recordsizes
48 typeset -i min_rsbits=9 #512
49 typeset -i max_rsbits=SPA_MAXBLOCKSHIFT #16 MiB
50 typeset -i sum_filesizes=0
[all …]
/freebsd/sys/netipsec/
H A Dah_var.h2 /*-
4 * Angelos D. Keromytis (kermit@csd.uch.gr) and
5 * Niels Provos (provos@physnet.uni-hamburg.de).
11 * by Angelos D. Keromytis.
13 * Additional transforms and features in 1997 and 1998 by Angelos D. Keromytis
16 * Additional features in 1999 by Angelos D. Keromytis.
19 * Angelos D. Keromytis and Niels Provos.
20 * Copyright (c) 2001 Angelos D. Keromytis.
42 * These define the algorithm indices into the histogram. They're
69 uint64_t ahs_hist[AH_ALG_MAX]; /* Per-algorithm op count */
[all …]

12345