Home
last modified time | relevance | path

Searched refs:hist (Results 1 – 25 of 54) sorted by relevance

123

/NextBSD/contrib/unbound/util/
HDtimehist.c71 dosetup(struct timehist* hist) in dosetup() argument
76 for(i=0; i<hist->num; i++) { in dosetup()
77 hist->buckets[i].lower = last; in dosetup()
79 hist->buckets[i].upper = last; in dosetup()
80 hist->buckets[i].count = 0; in dosetup()
86 struct timehist* hist = (struct timehist*)calloc(1, in timehist_setup() local
88 if(!hist) in timehist_setup()
90 hist->num = NUM_BUCKETS_HIST; in timehist_setup()
91 hist->buckets = (struct th_buck*)calloc(hist->num, in timehist_setup()
93 if(!hist->buckets) { in timehist_setup()
[all …]
HDtimehist.h80 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, size_t* array, size_t sz);
132 void timehist_import(struct timehist* hist, size_t* array, size_t sz);
/NextBSD/bin/sh/
HDhistedit.c67 History *hist; /* history cookie */ variable
87 if (!hist) { in histedit()
92 hist = history_init(); in histedit()
95 if (hist != NULL) in histedit()
122 if (hist) in histedit()
123 el_set(el, EL_HIST, history, hist); in histedit()
153 if (hist) { in histedit()
154 history_end(hist); in histedit()
155 hist = NULL; in histedit()
168 if (hist != NULL) { in sethistsize()
[all …]
HDmyhistedit.h35 extern History *hist;
/NextBSD/contrib/libreadline/
HDhistory.c229 history_get_time (hist) in history_get_time() argument
230 HIST_ENTRY *hist; in history_get_time()
235 if (hist == 0 || hist->timestamp == 0)
237 ts = hist->timestamp;
330 free_history_entry (hist) in free_history_entry() argument
331 HIST_ENTRY *hist; in free_history_entry()
335 if (hist == 0)
337 FREE (hist->line);
338 FREE (hist->timestamp);
339 x = hist->data;
[all …]
/NextBSD/lib/libedit/TEST/
HDtc1.c133 History *hist; in main() local
142 hist = history_init(); /* Init the builtin history */ in main()
144 history(hist, &ev, H_SETSIZE, 100); in main()
156 el_set(el, EL_HIST, history, hist); in main()
218 if (history(hist, &ev, H_SET, lastevent) == -1) in main()
220 history(hist, &ev, H_ADD , buf); in main()
222 history(hist, &ev, H_ENTER, buf); in main()
227 history(hist, &ev, continuation ? H_APPEND : H_ENTER, buf); in main()
250 for (rv = history(hist, &ev, H_LAST); rv != -1; in main()
251 rv = history(hist, &ev, H_PREV)) in main()
[all …]
HDwtc1.c117 HistoryW *hist; in main() local
130 hist = history_winit(); /* Init built-in history */ in main()
131 history_w(hist, &ev, H_SETSIZE, 100); /* Remember 100 events */ in main()
132 history_w(hist, &ev, H_LOAD, hfile); in main()
142 el_wset(el, EL_HIST, history_w, hist); /* FIXME - history_w? */ in main()
196 history_w(hist, &ev, continuation ? H_APPEND : H_ENTER, line); in main()
217 for(rc = history_w(hist, &ev, H_LAST); in main()
219 rc = history_w(hist, &ev, H_PREV)) in main()
225 history_w(hist, &ev, H_CLEAR); in main()
231 history_w(hist, &ev, H_LOAD, in main()
[all …]
/NextBSD/contrib/gcc/
HDvalue-prof.c708 histogram_value hist; in tree_divmod_values_to_profile() local
737 hist = ggc_alloc (sizeof (*hist)); in tree_divmod_values_to_profile()
738 hist->hvalue.value = divisor; in tree_divmod_values_to_profile()
739 hist->hvalue.stmt = stmt; in tree_divmod_values_to_profile()
740 hist->type = HIST_TYPE_SINGLE_VALUE; in tree_divmod_values_to_profile()
741 VEC_quick_push (histogram_value, *values, hist); in tree_divmod_values_to_profile()
750 hist = ggc_alloc (sizeof (*hist)); in tree_divmod_values_to_profile()
751 hist->hvalue.value = divisor; in tree_divmod_values_to_profile()
752 hist->hvalue.stmt = stmt; in tree_divmod_values_to_profile()
753 hist->type = HIST_TYPE_POW2; in tree_divmod_values_to_profile()
[all …]
HDprofile.c176 histogram_value hist = VEC_index (histogram_value, values, i); in instrument_values() local
177 switch (hist->type) in instrument_values()
198 if (!coverage_counter_alloc (t, hist->n_counters)) in instrument_values()
201 switch (hist->type) in instrument_values()
204 (profile_hooks->gen_interval_profiler) (hist, t, 0); in instrument_values()
208 (profile_hooks->gen_pow2_profiler) (hist, t, 0); in instrument_values()
212 (profile_hooks->gen_one_value_profiler) (hist, t, 0); in instrument_values()
216 (profile_hooks->gen_const_delta_profiler) (hist, t, 0); in instrument_values()
624 histogram_value hist = VEC_index (histogram_value, values, i); in compute_value_histograms() local
625 n_histogram_counters[(int) hist->type] += hist->n_counters; in compute_value_histograms()
[all …]
/NextBSD/usr.bin/netstat/
HDipsec.c243 ipsec_hist_new(const uint64_t *hist, size_t histmax, in ipsec_hist_new() argument
252 if (hist[proto] <= 0) in ipsec_hist_new()
266 (uintmax_t)hist[proto]); in ipsec_hist_new()
269 (unsigned long)proto, (uintmax_t)hist[proto]); in ipsec_hist_new()
285 #define hist(f, n, t, c) \ in print_ahstats() macro
315 hist(ahstat->ahs_hist, ipsec_ahnames, in print_ahstats()
319 #undef hist in print_ahstats()
344 #define hist(f, n, t, c) \ in print_espstats() macro
375 hist(espstat->esps_hist, ipsec_espnames, in print_espstats()
379 #undef hist in print_espstats()
[all …]
/NextBSD/contrib/netbsd-tests/usr.bin/xlint/lint1/
HDd_nested_structs.c7 History *hist; member
18 .command = { .el = 0, .hist = 0, },
19 .string = { .el = 0, .hist = 0, },
20 .filec = { .el = 0, .hist = 0, },
/NextBSD/contrib/binutils/gprof/po/
HDgprof.pot38 #: basic_blocks.c:128 call_graph.c:89 hist.c:105
123 #: cg_print.c:78 hist.c:466
173 #: cg_print.c:98 hist.c:492
425 #: hist.c:133
433 #: hist.c:143
441 #: hist.c:157
446 #: hist.c:194
451 #: hist.c:228
456 #: hist.c:462
461 #: hist.c:470
[all …]
HDms.po38 #: basic_blocks.c:128 call_graph.c:89 hist.c:97
138 #: cg_print.c:78 hist.c:359
194 #: cg_print.c:98 hist.c:385
458 #: hist.c:126
463 #: hist.c:142
468 #: hist.c:355
473 #: hist.c:363
482 #: hist.c:369
491 #: hist.c:374
500 #: hist.c:381
[all …]
HDPOTFILES.in22 hist.c
23 hist.h
/NextBSD/usr.sbin/gstat/
HDgstat.c94 History *hist; in main() local
97 hist = NULL; in main()
185 hist = history_init(); in main()
186 if (hist == NULL) in main()
188 history(hist, &hist_ev, H_SETSIZE, 100); in main()
194 el_set(el, EL_HIST, history, hist); in main()
197 history(hist, &hist_ev, H_ENTER, f_s); in main()
408 history(hist, &hist_ev, H_ENTER, line); in main()
/NextBSD/usr.sbin/lpr/lpc/
HDlpc.c151 static History *hist; in cmdscanner() local
160 hist = NULL; in cmdscanner()
165 hist = history_init(); in cmdscanner()
166 history(hist, &he, H_SETSIZE, 100); in cmdscanner()
167 el_set(el, EL_HIST, history, hist); in cmdscanner()
188 history(hist, &he, H_ENTER, bp); in cmdscanner()
/NextBSD/usr.sbin/ngctl/
HDmain.c297 History *hist; in DoInteractive() local
308 hist = history_init(); in DoInteractive()
309 if (hist == NULL) in DoInteractive()
311 history(hist, &hev, H_SETSIZE, 100); in DoInteractive()
312 history(hist, &hev, H_SETUNIQUE, 1); in DoInteractive()
313 el_set(el, EL_HIST, history, (const char *)hist); in DoInteractive()
324 history(hist, &hev, H_ENTER, buf); in DoInteractive()
335 history_end(hist); in DoInteractive()
/NextBSD/usr.sbin/pppctl/
HDpppctl.c57 History *hist; /* libedit stuff */ member
296 history(td->hist, H_ENTER, l); in Terminal()
298 history(td->hist, &hev, H_ENTER, l); in Terminal()
581 td.hist = history_init(); in main()
589 history(td.hist, H_EVENT, size); in main()
592 history(td.hist, &hev, H_SETSIZE, size); in main()
604 el_set(td.edit, EL_HIST, history, (const char *)td.hist); in main()
638 history_end(td.hist); in main()
/NextBSD/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
HDrange_tree.c57 uint64_t hist[RANGE_TREE_HISTOGRAM_SIZE] = { 0 }; in range_tree_stat_verify() local
65 hist[idx]++; in range_tree_stat_verify()
66 ASSERT3U(hist[idx], !=, 0); in range_tree_stat_verify()
70 if (hist[i] != rt->rt_histogram[i]) { in range_tree_stat_verify()
72 i, hist, hist[i], rt->rt_histogram[i]); in range_tree_stat_verify()
74 VERIFY3U(hist[i], ==, rt->rt_histogram[i]); in range_tree_stat_verify()
/NextBSD/lib/libasl/
HDasl_core.c400 uint32_t i, j, k, outlen, breakit, min, hist[256]; in asl_core_encode_buffer() local
407 memset(hist, 0, sizeof(hist)); in asl_core_encode_buffer()
414 hist[v]++; in asl_core_encode_buffer()
420 min = hist[1]; in asl_core_encode_buffer()
424 if (hist[i] < min) in asl_core_encode_buffer()
427 min = hist[i]; in asl_core_encode_buffer()
444 save[j] = hist[lfu[j]]; in asl_core_encode_buffer()
445 hist[lfu[j]] = (uint32_t)-1; in asl_core_encode_buffer()
/NextBSD/contrib/subversion/subversion/libsvn_repos/
HDlog.c411 svn_fs_history_t *hist; member
443 svn_fs_history_t *hist; in get_history() local
447 if (info->hist) in get_history()
451 SVN_ERR(svn_fs_history_prev2(&info->hist, info->hist, ! strict, in get_history()
454 hist = info->hist; in get_history()
464 SVN_ERR(svn_fs_node_history2(&hist, history_root, info->path->data, in get_history()
467 SVN_ERR(svn_fs_history_prev2(&hist, hist, ! strict, subpool, in get_history()
473 SVN_ERR(svn_fs_history_prev2(&hist, hist, ! strict, subpool, in get_history()
477 if (! hist) in get_history()
488 hist, subpool)); in get_history()
[all …]
/NextBSD/sys/ofed/drivers/infiniband/ulp/sdp/
HDsdp_proc.c244 #define SDPSTATS_HIST_GET(hist, hist_len, sum) ({ \ argument
248 u32 *h = per_cpu(sdpstats, __i).hist; \
255 #define __sdpstats_seq_hist(seq, msg, hist, is_log) ({ \ argument
257 int hist_len = ARRAY_SIZE(__get_cpu_var(sdpstats).hist);\
259 SDPSTATS_HIST_GET(hist, hist_len, tmp_hist); \
/NextBSD/usr.bin/tftp/
HDmain.c709 static History *hist; in command() local
718 hist = history_init(); in command()
719 history(hist, &he, H_SETSIZE, 100); in command()
720 el_set(el, EL_HIST, history, hist); in command()
733 history(hist, &he, H_ENTER, bp); in command()
/NextBSD/contrib/tnftp/src/
HDutil.c977 if (editing && el == NULL && hist == NULL) { in controlediting()
983 hist = history_init(); /* init the builtin history */ in controlediting()
984 history(hist, &ev, H_SETSIZE, 100);/* remember 100 events */ in controlediting()
985 el_set(el, EL_HIST, history, hist); /* use history */ in controlediting()
1005 if (hist) { in controlediting()
1006 history_end(hist); in controlediting()
1007 hist = NULL; in controlediting()
/NextBSD/usr.bin/bc/
HDextern.h44 extern History *hist;

123