/freebsd/contrib/unbound/util/ |
H A D | timehist.c | 89 if(!hist) in timehist_setup() 92 hist->buckets = (struct th_buck*)calloc(hist->num, in timehist_setup() 95 free(hist); in timehist_setup() 99 dosetup(hist); in timehist_setup() 100 return hist; in timehist_setup() 105 if(!hist) in timehist_delete() 108 free(hist); in timehist_delete() 128 hist->buckets[hist->num-1].count++; in timehist_insert() 187 if(!hist || hist->num == 0) in timehist_quartile() 217 sz = hist->num; in timehist_export() [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 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() 250 rv = history(hist, &ev, H_PREV)) in main() 257 history(hist, &ev, H_CLEAR); in main() 264 history(hist, &ev, H_LOAD, av[2]); in main() 266 history(hist, &ev, H_SAVE, av[2]); in main() [all …]
|
H A D | wtc1.c | 114 HistoryW *hist; in main() local 127 hist = history_winit(); /* Init built-in history */ 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() 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() 231 history_w(hist, &ev, H_SAVE, in main() 271 history_w(hist, &ev, H_SAVE, hfile); in main() [all …]
|
/freebsd/bin/sh/ |
H A D | histedit.c | 152 if (!hist) { in histedit() 157 hist = history_init(); in histedit() 160 if (hist != NULL) in histedit() 185 if (hist) in histedit() 217 if (hist) { in histedit() 218 history_end(hist); in histedit() 219 hist = NULL; in histedit() 232 if (hist != NULL) { in sethistsize() 267 if (hist == NULL) in histcmd() 400 history(hist, &he, H_FIRST); in histcmd() [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 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) : \ 586 op(_VSD(cnst, crhist32, hist)->field) : \ 587 op(_VSD(cnst, crhist64, hist)->field)) 599 op(_VSD(cnst, drhist32, hist)->field) : \ 600 op(_VSD(cnst, drhist64, hist)->field)) [all …]
|
/freebsd/usr.bin/netstat/ |
H A D | ipsec.c | 230 if (hist[proto] <= 0) in ipsec_hist_new() 244 (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() 383 #define hist(f, n, t, c) \ in print_ipcompstats() macro 406 hist(ipcompstat->ipcomps_hist, ipsec_compnames, in print_ipcompstats() [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/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() 551 history(hist, &hist_ev, H_ENTER, line); in main()
|
/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/sys/kern/ |
H A D | subr_stats.c | 669 struct voistatdata_hist *hist; local 711 hist = (struct voistatdata_hist *)vss->iv; 1843 bkt_ub = VSD_CONSTCRHIST_FIELDPTR(hist, 2382 struct voistatdata_hist *hist; local 2386 hist = VSD(hist, vsd); 2737 oob32 = &VSD(crhist32, hist)->oob; 2743 oob32 = &VSD(drhist32, hist)->oob; 2749 oob32 = &VSD(dvhist32, hist)->oob; 2754 oob64 = &VSD(crhist64, hist)->oob; 2760 oob64 = &VSD(drhist64, hist)->oob; [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 | 714 hist=1 747 hist=1 781 hist=1 815 hist=1 879 hist=1 930 H) hist=0 ;; 1259 hist=0 1355 hist=0 1570 if [ "$hist" -eq 1 ]; then 1605 hist=0 [all …]
|
H A D | configure.sh | 714 hist=1 747 hist=1 781 hist=1 815 hist=1 879 hist=1 930 H) hist=0 ;; 1259 hist=0 1355 hist=0 1570 if [ "$hist" -eq 1 ]; then 1605 hist=0 [all …]
|
/freebsd/contrib/unbound/smallapp/ |
H A D | unbound-control.c | 290 struct timehist* hist; in print_hist() local 292 hist = timehist_setup(); in print_hist() 293 if(!hist) in print_hist() 295 timehist_import(hist, s->svr.hist, NUM_BUCKETS_HIST); in print_hist() 296 for(i=0; i<hist->num; i++) { in print_hist() 298 (int)hist->buckets[i].lower.tv_sec, in print_hist() 299 (int)hist->buckets[i].lower.tv_usec, in print_hist() 300 (int)hist->buckets[i].upper.tv_sec, in print_hist() 301 (int)hist->buckets[i].upper.tv_usec, in print_hist() 302 (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()
|