Searched refs:hist (Results 1 - 25 of 55) sorted by relevance

123

/freebsd-current/contrib/unbound/util/
H A Dtimehist.h78 * @param hist: to delete
80 void timehist_delete(struct timehist* hist);
84 * @param hist: to clear all data from
86 void timehist_clear(struct timehist* hist);
90 * @param hist: histogram
93 void timehist_insert(struct timehist* hist, struct timeval* tv);
99 * @param hist: histogram. Interpolated information is used from it.
103 double timehist_quartile(struct timehist* hist, double q);
107 * @param hist: histogram
109 void timehist_print(struct timehist* hist);
[all...]
H A Dtimehist.c72 dosetup(struct timehist* hist) argument
77 for(i=0; i<hist->num; i++) {
78 hist->buckets[i].lower = last;
80 hist->buckets[i].upper = last;
81 hist->buckets[i].count = 0;
87 struct timehist* hist = (struct timehist*)calloc(1, local
89 if(!hist)
91 hist->num = NUM_BUCKETS_HIST;
92 hist->buckets = (struct th_buck*)calloc(hist
103 timehist_delete(struct timehist* hist) argument
111 timehist_clear(struct timehist* hist) argument
118 timehist_insert(struct timehist* hist, struct timeval* tv) argument
131 timehist_print(struct timehist* hist) argument
148 timehist_log(struct timehist* hist, const char* name) argument
173 timehist_count(struct timehist* hist) argument
182 timehist_quartile(struct timehist* hist, double q) argument
212 timehist_export(struct timehist* hist, long long* array, size_t sz) argument
223 timehist_import(struct timehist* hist, long long* array, size_t sz) argument
[all...]
/freebsd-current/contrib/netbsd-tests/usr.bin/xlint/lint1/
H A Dd_nested_structs.c7 History *hist; member in struct:__anon5262
18 .command = { .el = 0, .hist = 0, },
19 .string = { .el = 0, .hist = 0, },
20 .filec = { .el = 0, .hist = 0, },
/freebsd-current/bin/sh/
H A Dmyhistedit.h34 extern History *hist;
H A Dhistedit.c66 History *hist; /* history cookie */ variable
87 if (hist == NULL || !strcmp(histsizeval(), "0"))
119 if (history(hist, &he, H_SAVE_FP, f) < 1 ||
137 if (history(hist, &he, H_LOAD, histfile) != -1 || errno == ENOENT)
152 if (!hist) {
157 hist = history_init();
160 if (hist != NULL)
185 if (hist)
186 el_set(el, EL_HIST, history, hist);
217 if (hist) {
[all...]
/freebsd-current/contrib/libedit/TEST/
H A Dtc1.c132 History *hist; local
141 hist = history_init(); /* Init the builtin history */
143 history(hist, &ev, H_SETSIZE, 100);
155 el_set(el, EL_HIST, history, hist);
217 if (history(hist, &ev, H_SET, lastevent) == -1)
219 history(hist, &ev, H_ADD , buf);
221 history(hist, &ev, H_ENTER, buf);
226 history(hist, &ev, continuation ? H_APPEND : H_ENTER, buf);
249 for (rv = history(hist, &ev, H_LAST); rv != -1;
250 rv = history(hist,
[all...]
H A Dwtc1.c114 HistoryW *hist; local
127 hist = history_winit(); /* Init built-in history */
128 history_w(hist, &ev, H_SETSIZE, 100); /* Remember 100 events */
129 history_w(hist, &ev, H_LOAD, hfile);
139 el_wset(el, EL_HIST, history_w, hist); /* FIXME - history_w? */
193 history_w(hist, &ev, continuation ? H_APPEND : H_ENTER, line);
214 for(rc = history_w(hist, &ev, H_LAST);
216 rc = history_w(hist, &ev, H_PREV))
222 history_w(hist, &ev, H_CLEAR);
228 history_w(hist,
[all...]
/freebsd-current/usr.bin/bc/
H A Dextern.h43 extern History *hist;
H A Dscan.l38 History *hist;
353 history(hist, &he, H_ENTER, bp);
/freebsd-current/sys/sys/
H A Dstats.h404 struct vss_hist_hlpr_info hist; member in union:vss_hlpr_info::__anon6217
563 #define VSD_HIST_FIELD(hist, cnst, hist_dtype, op, field) \
565 op(_VSD(cnst, crhist32, hist)->field) : \
567 op(_VSD(cnst, drhist32, hist)->field) : \
569 op(_VSD(cnst, dvhist32, hist)->field) : \
571 op(_VSD(cnst, crhist64, hist)->field) : \
573 op(_VSD(cnst, drhist64, hist)->field) : \
574 (op(_VSD(cnst, dvhist64, hist)->field)))))))
575 #define VSD_HIST_FIELDVAL(hist, hist_dtype, field) \
576 VSD_HIST_FIELD(hist, , hist_dtyp
[all...]
/freebsd-current/sys/net/
H A Dmppcd.c47 uint8_t hist[2*MPPE_HIST_LEN]; member in struct:MPPC_decomp_state
108 uint8_t *hist, *s; local
113 memcpy(state->hist, state->hist + MPPE_HIST_LEN, MPPE_HIST_LEN);
117 hist = state->hist + state->histptr;
126 (state->hist)[(state->histptr)++] = (uint8_t) val;
141 (state->hist)[(state->histptr)++] =
240 s = state->hist + state->histptr;
262 if ((hist[
[all...]
H A Dmppcc.c49 uint8_t hist[2*MPPE_HIST_LEN]; member in struct:MPPC_comp_state
148 uint8_t *hist, *sbuf, *p, *q, *r, *s; local
171 hist = state->hist + MPPE_HIST_LEN;
176 memcpy(state->hist, hist, MPPE_HIST_LEN);
179 sbuf = state->hist + state->histptr;
192 p = hist + state->hash[idx];
193 state->hash[idx] = (uint16_t) (s - hist);
/freebsd-current/usr.bin/netstat/
H A Dipsec.c221 ipsec_hist_new(const uint64_t *hist, size_t histmax, argument
230 if (hist[proto] <= 0)
244 (uintmax_t)hist[proto]);
247 (unsigned long)proto, (uintmax_t)hist[proto]);
263 #define hist(f, n, t, c) \ macro
293 hist(ahstat->ahs_hist, ipsec_ahnames,
297 #undef hist macro
322 #define hist(f, n, t, c) \ macro
353 hist(espstat->esps_hist, ipsec_espnames,
357 #undef hist macro
383 #define hist macro
414 #undef hist macro
[all...]
/freebsd-current/usr.sbin/lpr/lpc/
H A Dlpc.c139 static History *hist; local
148 hist = NULL;
153 hist = history_init();
154 history(hist, &he, H_SETSIZE, 100);
155 el_set(el, EL_HIST, history, hist);
176 history(hist, &he, H_ENTER, bp);
/freebsd-current/usr.sbin/gstat/
H A Dgstat.c98 History *hist; local
101 hist = NULL;
189 hist = history_init();
190 if (hist == NULL)
192 history(hist, &hist_ev, H_SETSIZE, 100);
198 el_set(el, EL_HIST, history, hist);
201 history(hist, &hist_ev, H_ENTER, f_s);
551 history(hist, &hist_ev, H_ENTER, line);
/freebsd-current/usr.sbin/ngctl/
H A Dmain.c294 History *hist; local
305 hist = history_init();
306 if (hist == NULL)
308 history(hist, &hev, H_SETSIZE, 100);
309 history(hist, &hev, H_SETUNIQUE, 1);
310 el_set(el, EL_HIST, history, (const char *)hist);
321 history(hist, &hev, H_ENTER, buf);
332 history_end(hist);
/freebsd-current/sys/kern/
H A Dsubr_stats.c669 struct voistatdata_hist *hist; local
711 hist = (struct voistatdata_hist *)vss->iv;
723 VSD(crhist32, hist)->bkts[bkt].lb = bkt_lb;
726 VSD(drhist32, hist)->bkts[bkt].lb = bkt_lb;
727 VSD(drhist32, hist)->bkts[bkt].ub = bkt_ub;
730 VSD(dvhist32, hist)->bkts[bkt].val = bkt_lb;
733 VSD(crhist64, hist)->bkts[bkt].lb = bkt_lb;
736 VSD(drhist64, hist)->bkts[bkt].lb = bkt_lb;
737 VSD(drhist64, hist)->bkts[bkt].ub = bkt_ub;
740 VSD(dvhist64, hist)
1773 stats_voistatdata_hist_tostr(enum vsd_dtype voi_dtype, const struct voistatdata_hist *hist, enum vsd_dtype hist_dtype, size_t hist_dsz, enum sb_str_fmt fmt, struct sbuf *buf, int objdump) argument
2382 struct voistatdata_hist *hist; local
2722 stats_v1_voi_update_hist(enum vsd_dtype voi_dtype, struct voistatdata *voival, struct voistat *vs, struct voistatdata_hist *hist) argument
[all...]
/freebsd-current/sys/contrib/openzfs/lib/libzstd/
H A DMakefile.am15 module/zstd/lib/compress/hist.c \
/freebsd-current/usr.sbin/pppctl/
H A Dpppctl.c56 History *hist; /* libedit stuff */ member in struct:thread_data
297 history(td->hist, H_ENTER, l);
299 history(td->hist, &hev, H_ENTER, l);
582 td.hist = history_init();
590 history(td.hist, H_EVENT, size);
593 history(td.hist, &hev, H_SETSIZE, size);
605 el_set(td.edit, EL_HIST, history, (const char *)td.hist);
639 history_end(td.hist);
/freebsd-current/lib/libzstd/
H A DMakefile33 hist.c \
/freebsd-current/contrib/bc/
H A Dconfigure.sh714 hist=1
747 hist=1
781 hist=1
815 hist=1
879 hist=1
930 H) hist=0 ;;
1062 disable-history) hist=0 ;;
1259 hist=0
1355 hist=0
1487 flags="$flags -DBC_ENABLE_HISTORY=$hist
[all...]
H A Dconfigure714 hist=1
747 hist=1
781 hist=1
815 hist=1
879 hist=1
930 H) hist=0 ;;
1062 disable-history) hist=0 ;;
1259 hist=0
1355 hist=0
1487 flags="$flags -DBC_ENABLE_HISTORY=$hist
[all...]
/freebsd-current/contrib/unbound/smallapp/
H A Dunbound-control.c290 struct timehist* hist; local
292 hist = timehist_setup();
293 if(!hist)
295 timehist_import(hist, s->svr.hist, NUM_BUCKETS_HIST);
296 for(i=0; i<hist->num; i++) {
298 (int)hist->buckets[i].lower.tv_sec,
299 (int)hist->buckets[i].lower.tv_usec,
300 (int)hist->buckets[i].upper.tv_sec,
301 (int)hist
[all...]
/freebsd-current/sys/ofed/drivers/infiniband/ulp/sdp/
H A Dsdp_proc.c245 #define SDPSTATS_HIST_GET(hist, hist_len, sum) ({ \
249 u32 *h = per_cpu(sdpstats, __i).hist; \
256 #define __sdpstats_seq_hist(seq, msg, hist, is_log) ({ \
258 int hist_len = ARRAY_SIZE(__get_cpu_var(sdpstats).hist);\
260 SDPSTATS_HIST_GET(hist, hist_len, tmp_hist); \
/freebsd-current/sbin/recoverdisk/
H A Drecoverdisk.c189 static off_t hist[REPORTWID]; variable
203 memset(hist, 0, sizeof hist);
212 hist[j] += k;
220 a = round(8 * (double)hist[j] / bucket);
222 if (a == 0 && hist[j])

Completed in 210 milliseconds

123