/freebsd/contrib/unbound/util/ |
H A D | timehist.c | 72 dosetup(struct timehist* hist) in dosetup() argument 77 for(i=0; i<hist->num; i++) { in dosetup() 78 hist->buckets[i].lower = last; in dosetup() 80 hist->buckets[i].upper = last; in dosetup() 81 hist->buckets[i].count = 0; in dosetup() 87 struct timehist* hist = (struct timehist*)calloc(1, in timehist_setup() local 89 if(!hist) in timehist_setup() 91 hist->num = NUM_BUCKETS_HIST; in timehist_setup() 92 hist->buckets = (struct th_buck*)calloc(hist->num, in timehist_setup() 94 if(!hist->buckets) { in timehist_setup() [all …]
|
H A D | timehist.h | 80 void timehist_delete(struct timehist* hist); 86 void timehist_clear(struct timehist* hist); 93 void timehist_insert(struct timehist* hist, struct timeval* tv); 103 double timehist_quartile(struct timehist* hist, double q); 109 void timehist_print(struct timehist* hist); 116 void timehist_log(struct timehist* hist, const char* name); 124 void timehist_export(struct timehist* hist, long long* array, size_t sz); 132 void timehist_import(struct timehist* hist, long long* array, size_t sz);
|
/freebsd/contrib/libedit/TEST/ |
H A D | tc1.c | 132 History *hist; in main() local 141 hist = history_init(); /* Init the builtin history */ in main() 143 history(hist, &ev, H_SETSIZE, 100); in main() 155 el_set(el, EL_HIST, history, hist); in main() 217 if (history(hist, &ev, H_SET, lastevent) == -1) in main() 219 history(hist, &ev, H_ADD , buf); in main() 221 history(hist, &ev, H_ENTER, buf); in main() 226 history(hist, &ev, continuation ? H_APPEND : H_ENTER, buf); in main() 249 for (rv = history(hist, &ev, H_LAST); rv != -1; in main() 250 rv = history(hist, &ev, H_PREV)) in main() [all …]
|
H A D | wtc1.c | 114 HistoryW *hist; in main() local 127 hist = history_winit(); /* Init built-in history */ in main() 128 history_w(hist, &ev, H_SETSIZE, 100); /* Remember 100 events */ in main() 129 history_w(hist, &ev, H_LOAD, hfile); in main() 139 el_wset(el, EL_HIST, history_w, hist); /* FIXME - history_w? */ in main() 193 history_w(hist, &ev, continuation ? H_APPEND : H_ENTER, line); in main() 214 for(rc = history_w(hist, &ev, H_LAST); in main() 216 rc = history_w(hist, &ev, H_PREV)) in main() 222 history_w(hist, &ev, H_CLEAR); in main() 228 history_w(hist, &ev, H_LOAD, in main() [all …]
|
/freebsd/bin/sh/ |
H A D | histedit.c | 66 History *hist; /* history cookie */ variable 87 if (hist == NULL || !strcmp(histsizeval(), "0")) in get_histfile() 119 if (history(hist, &he, H_SAVE_FP, f) < 1 || in histsave() 137 if (history(hist, &he, H_LOAD, histfile) != -1 || errno == ENOENT) in histload() 152 if (!hist) { in histedit() 157 hist = history_init(); in histedit() 160 if (hist != NULL) in histedit() 185 if (hist) in histedit() 186 el_set(el, EL_HIST, history, hist); in histedit() 217 if (hist) { in histedit() [all …]
|
H A D | myhistedit.h | 34 extern History *hist;
|
/freebsd/sys/sys/ |
H A D | stats.h | 404 struct vss_hist_hlpr_info hist; member 563 #define VSD_HIST_FIELD(hist, cnst, hist_dtype, op, field) \ argument 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) \ argument 576 VSD_HIST_FIELD(hist, , hist_dtype, ,field) [all …]
|
/freebsd/usr.bin/netstat/ |
H A D | ipsec.c | 221 ipsec_hist_new(const uint64_t *hist, size_t histmax, in ipsec_hist_new() argument 230 if (hist[proto] <= 0) in ipsec_hist_new() 244 (uintmax_t)hist[proto]); in ipsec_hist_new() 247 (unsigned long)proto, (uintmax_t)hist[proto]); in ipsec_hist_new() 263 #define hist(f, n, t, c) \ in print_ahstats() macro 293 hist(ahstat->ahs_hist, ipsec_ahnames, in print_ahstats() 297 #undef hist in print_ahstats() 322 #define hist(f, n, t, c) \ in print_espstats() macro 353 hist(espstat->esps_hist, ipsec_espnames, in print_espstats() 357 #undef hist in print_espstats() [all …]
|
/freebsd/sys/net/ |
H A D | mppcd.c | 47 uint8_t hist[2*MPPE_HIST_LEN]; member 108 uint8_t *hist, *s; in MPPC_Decompress() local 113 memcpy(state->hist, state->hist + MPPE_HIST_LEN, MPPE_HIST_LEN); in MPPC_Decompress() 117 hist = state->hist + state->histptr; in MPPC_Decompress() 126 (state->hist)[(state->histptr)++] = (uint8_t) val; in MPPC_Decompress() 141 (state->hist)[(state->histptr)++] = in MPPC_Decompress() 240 s = state->hist + state->histptr; in MPPC_Decompress() 262 if ((hist[0] & 0x01) != 0) { in MPPC_Decompress() 270 memcpy(*dst, hist, olen); in MPPC_Decompress()
|
H A D | mppcc.c | 49 uint8_t hist[2*MPPE_HIST_LEN]; member 148 uint8_t *hist, *sbuf, *p, *q, *r, *s; in MPPC_Compress() local 171 hist = state->hist + MPPE_HIST_LEN; in MPPC_Compress() 176 memcpy(state->hist, hist, MPPE_HIST_LEN); in MPPC_Compress() 179 sbuf = state->hist + state->histptr; in MPPC_Compress() 192 p = hist + state->hash[idx]; in MPPC_Compress() 193 state->hash[idx] = (uint16_t) (s - hist); in MPPC_Compress()
|
/freebsd/contrib/netbsd-tests/usr.bin/xlint/lint1/ |
H A D | d_nested_structs.c | 7 History *hist; member 18 .command = { .el = 0, .hist = 0, }, 19 .string = { .el = 0, .hist = 0, }, 20 .filec = { .el = 0, .hist = 0, },
|
/freebsd/usr.sbin/lpr/lpc/ |
H A D | lpc.c | 139 static History *hist; in cmdscanner() local 148 hist = NULL; in cmdscanner() 153 hist = history_init(); in cmdscanner() 154 history(hist, &he, H_SETSIZE, 100); in cmdscanner() 155 el_set(el, EL_HIST, history, hist); in cmdscanner() 176 history(hist, &he, H_ENTER, bp); in cmdscanner()
|
/freebsd/usr.sbin/ngctl/ |
H A D | main.c | 294 History *hist; in DoInteractive() local 305 hist = history_init(); in DoInteractive() 306 if (hist == NULL) in DoInteractive() 308 history(hist, &hev, H_SETSIZE, 100); in DoInteractive() 309 history(hist, &hev, H_SETUNIQUE, 1); in DoInteractive() 310 el_set(el, EL_HIST, history, (const char *)hist); in DoInteractive() 321 history(hist, &hev, H_ENTER, buf); in DoInteractive() 332 history_end(hist); in DoInteractive()
|
/freebsd/usr.sbin/gstat/ |
H A D | gstat.c | 98 History *hist; in main() local 101 hist = NULL; in main() 189 hist = history_init(); in main() 190 if (hist == NULL) in main() 192 history(hist, &hist_ev, H_SETSIZE, 100); in main() 198 el_set(el, EL_HIST, history, hist); in main() 201 history(hist, &hist_ev, H_ENTER, f_s); in main() 571 history(hist, &hist_ev, H_ENTER, line); in main()
|
/freebsd/sys/kern/ |
H A D | subr_stats.c | 669 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)->bkts[bkt].val = bkt_lb; [all …]
|
/freebsd/usr.sbin/pppctl/ |
H A D | pppctl.c | 56 History *hist; /* libedit stuff */ member 297 history(td->hist, H_ENTER, l); in Terminal() 299 history(td->hist, &hev, H_ENTER, l); in Terminal() 582 td.hist = history_init(); in main() 590 history(td.hist, H_EVENT, size); in main() 593 history(td.hist, &hev, H_SETSIZE, size); in main() 605 el_set(td.edit, EL_HIST, history, (const char *)td.hist); in main() 639 history_end(td.hist); in main()
|
/freebsd/contrib/bc/ |
H A D | configure | 716 hist=1 750 hist=1 786 hist=1 822 hist=1 887 hist=1 939 H) hist=0 ;; 1072 disable-history) hist=0 ;; 1270 hist=0 1409 hist=0 1540 flags="$flags -DBC_ENABLE_HISTORY=$hist [all...] |
H A D | configure.sh | 716 hist=1 750 hist=1 786 hist=1 822 hist=1 887 hist=1 939 H) hist=0 ;; 1072 disable-history) hist=0 ;; 1270 hist=0 1409 hist=0 1540 flags="$flags -DBC_ENABLE_HISTORY=$hist -DBC_ENABLE_LIBRARY=0 -DBC_ENABLE_AFL=0" [all …]
|
/freebsd/contrib/unbound/smallapp/ |
H A D | unbound-control.c | 304 struct timehist* hist; in print_hist() local 306 hist = timehist_setup(); in print_hist() 307 if(!hist) in print_hist() 309 timehist_import(hist, s->svr.hist, NUM_BUCKETS_HIST); in print_hist() 310 for(i=0; i<hist->num; i++) { in print_hist() 312 (int)hist->buckets[i].lower.tv_sec, in print_hist() 313 (int)hist->buckets[i].lower.tv_usec, in print_hist() 314 (int)hist->buckets[i].upper.tv_sec, in print_hist() 315 (int)hist->buckets[i].upper.tv_usec, in print_hist() 316 (unsigned long)hist->buckets[i].count); in print_hist() [all …]
|
/freebsd/sys/contrib/openzfs/contrib/bpftrace/ |
H A D | taskqlatency.bt | 27 hist((nsecs - @birth[@tq_name[tid], @tqent_id[tid]])/1000); 37 hist((nsecs - @start[@tq_name[tid], @tqent_id[tid]])/1000);
|
/freebsd/sbin/recoverdisk/ |
H A D | recoverdisk.c | 189 static off_t hist[REPORTWID]; variable 203 memset(hist, 0, sizeof hist); in report_histogram() 212 hist[j] += k; in report_histogram() 220 a = round(8 * (double)hist[j] / bucket); in report_histogram() 222 if (a == 0 && hist[j]) in report_histogram()
|
/freebsd/usr.bin/tftp/ |
H A D | main.c | 169 static History *hist; in main() local 180 hist = history_init(); in main() 181 history(hist, &he, H_SETSIZE, 100); in main() 182 el_set(el, EL_HIST, history, hist); in main() 208 command(interactive, el, hist, &he); in main() 733 command(bool interactive, EditLine *el, History *hist, HistEvent *hep) in command() argument 748 history(hist, hep, H_ENTER, bp); in command()
|
/freebsd/sys/ofed/drivers/infiniband/ulp/sdp/ |
H A D | sdp_proc.c | 245 #define SDPSTATS_HIST_GET(hist, hist_len, sum) ({ \ argument 249 u32 *h = per_cpu(sdpstats, __i).hist; \ 256 #define __sdpstats_seq_hist(seq, msg, hist, is_log) ({ \ argument 258 int hist_len = ARRAY_SIZE(__get_cpu_var(sdpstats).hist);\ 260 SDPSTATS_HIST_GET(hist, hist_len, tmp_hist); \
|
/freebsd/contrib/llvm-project/libunwind/src/ |
H A D | Unwind-seh.cpp | 396 UNWIND_HISTORY_TABLE hist; in _Unwind_Resume() local 399 memset(&hist, 0, sizeof(hist)); in _Unwind_Resume() 409 exception_object, &ms_ctx, &hist); in _Unwind_Resume()
|
/freebsd/contrib/llvm-project/openmp/runtime/src/ |
H A D | kmp_stats.h | 411 logHistogram hist; variable 421 collectingHist(o.collectingHist), hist(o.hist) {} in statistic() 432 logHistogram const *getHist() const { return &hist; } in getHist() 442 hist.reset(); in reset() 451 std::string formatHist(char unit) const { return hist.format(unit); } in formatHist()
|