/dragonfly/sbin/hammer/ |
H A D | cmd_history.c | 82 struct hammer_ioc_history hist; in hammer_do_history() local 93 bzero(&hist, sizeof(hist)); in hammer_do_history() 94 hist.beg_tid = HAMMER_MIN_TID; in hammer_do_history() 95 hist.end_tid = HAMMER_MAX_TID; in hammer_do_history() 98 hist.head.flags |= HAMMER_IOC_HISTORY_ATKEY; in hammer_do_history() 99 hist.key = off; in hammer_do_history() 100 hist.nxt_key = off + 1; in hammer_do_history() 113 for (i = 0; i < hist.count; ++i) { in hammer_do_history() 117 path, (uintmax_t)hist.hist_ary[i].tid); in hammer_do_history() 119 (uintmax_t)hist.hist_ary[i].tid, in hammer_do_history() [all …]
|
/dragonfly/contrib/gcc-8.0/gcc/ |
H A D | value-prof.c | 123 return hist; in gimple_alloc_histogram_value() 156 if (!hist) in set_histogram_value() 162 *loc = hist; in set_histogram_value() 206 memset (hist, 0xab, sizeof (*hist)); in gimple_remove_histogram_value() 207 free (hist); in gimple_remove_histogram_value() 217 for (hist = gimple_histogram_value (fun, stmt); hist; in gimple_histogram_value_of_type() 218 hist = hist->hvalue.next) in gimple_histogram_value_of_type() 446 for (hist = gimple_histogram_value (fun, stmt); hist; hist = hist->hvalue.next) in dump_histograms_for_stmt() 534 for (hist = gimple_histogram_value (cfun, stmt); hist; in verify_histograms() 535 hist = hist->hvalue.next) in verify_histograms() [all …]
|
H A D | profile.c | 166 histogram_value hist = values[i]; in instrument_values() local 172 switch (hist->type) in instrument_values() 179 gimple_gen_pow2_profiler (hist, t, 0); in instrument_values() 188 gimple_gen_ic_profiler (hist, t, 0); in instrument_values() 196 gimple_gen_ior_profiler (hist, t, 0); in instrument_values() 855 histogram_value hist = values[i]; in compute_value_histograms() local 856 n_histogram_counters[(int) hist->type] += hist->n_counters; in compute_value_histograms() 881 histogram_value hist = values[i]; in compute_value_histograms() local 882 gimple *stmt = hist->hvalue.stmt; in compute_value_histograms() 884 t = (int) hist->type; in compute_value_histograms() [all …]
|
H A D | gimple-streamer-out.c | 65 histogram_value hist; in output_gimple_stmt() local 82 hist = gimple_histogram_value (cfun, stmt); in output_gimple_stmt() 83 bp_pack_value (&bp, hist != NULL, 1); in output_gimple_stmt() 194 if (hist) in output_gimple_stmt() 195 stream_out_histogram_value (ob, hist); in output_gimple_stmt()
|
H A D | auto-profile.c | 1003 histogram_value hist = gimple_alloc_histogram_value ( in afdo_indirect_call() local 1005 hist->n_counters = 3; in afdo_indirect_call() 1006 hist->hvalue.counters = XNEWVEC (gcov_type, hist->n_counters); in afdo_indirect_call() 1007 gimple_add_histogram_value (cfun, stmt, hist); in afdo_indirect_call() 1020 hist->hvalue.counters[0] in afdo_indirect_call() 1022 hist->hvalue.counters[1] = max_iter->second; in afdo_indirect_call() 1023 hist->hvalue.counters[2] = total; in afdo_indirect_call() 1031 get_identifier ((const char *) hist->hvalue.counters[0])); in afdo_indirect_call() 1066 gimple_remove_histogram_value (cfun, stmt, hist); in afdo_indirect_call()
|
/dragonfly/bin/sh/ |
H A D | histedit.c | 87 if (!hist) { in histedit() 92 hist = history_init(); in histedit() 95 if (hist != NULL) in histedit() 120 if (hist) in histedit() 151 if (hist) { in histedit() 152 history_end(hist); in histedit() 153 hist = NULL; in histedit() 166 if (hist != NULL) { in sethistsize() 202 if (hist == NULL) in histcmd() 331 history(hist, &he, H_FIRST); in histcmd() [all …]
|
H A D | myhistedit.h | 37 extern History *hist;
|
/dragonfly/contrib/gcc-4.7/gcc/ |
H A D | value-prof.c | 134 if (!hist) in set_histogram_value() 140 *loc = hist; in set_histogram_value() 184 memset (hist, 0xab, sizeof (*hist)); in gimple_remove_histogram_value() 186 free (hist); in gimple_remove_histogram_value() 197 for (hist = gimple_histogram_value (fun, stmt); hist; in gimple_histogram_value_of_type() 198 hist = hist->hvalue.next) in gimple_histogram_value_of_type() 313 for (hist = gimple_histogram_value (fun, stmt); hist; hist = hist->hvalue.next) in dump_histograms_for_stmt() 402 for (hist = gimple_histogram_value (cfun, stmt); hist; in verify_histograms() 403 hist = hist->hvalue.next) in verify_histograms() 432 memset (hist, 0xab, sizeof (*hist)); in free_hist() [all …]
|
H A D | profile.c | 156 switch (hist->type) in instrument_values() 192 switch (hist->type) in instrument_values() 199 gimple_gen_pow2_profiler (hist, t, 0); in instrument_values() 211 gimple_gen_ic_profiler (hist, t, 0); in instrument_values() 215 gimple_gen_average_profiler (hist, t, 0); in instrument_values() 219 gimple_gen_ior_profiler (hist, t, 0); in instrument_values() 833 n_histogram_counters[(int) hist->type] += hist->n_counters; in compute_value_histograms() 859 gimple stmt = hist->hvalue.stmt; in compute_value_histograms() 861 t = (int) hist->type; in compute_value_histograms() 864 act_count[t] += hist->n_counters; in compute_value_histograms() [all …]
|
/dragonfly/sys/vfs/hammer/ |
H A D | hammer_ioctl.c | 294 if (hist->beg_tid > hist->end_tid) in hammer_ioc_gethistory() 297 if (hist->key > hist->nxt_key) in hammer_ioc_gethistory() 301 hist->obj_id = ip->obj_id; in hammer_ioc_gethistory() 302 hist->count = 0; in hammer_ioc_gethistory() 303 hist->nxt_tid = hist->end_tid; in hammer_ioc_gethistory() 345 cursor.key_beg.key = hist->key; in hammer_ioc_gethistory() 390 add_history(ip, hist, elm); in hammer_ioc_gethistory() 465 i = hist->count; in add_history() 477 ++hist->count; in add_history() 489 i = hist->count; in add_history() [all …]
|
/dragonfly/contrib/gdb-7/readline/ |
H A D | history.c | 229 HIST_ENTRY *hist; in history_get_time() 234 if (hist == 0 || hist->timestamp == 0) 332 HIST_ENTRY *hist; in free_history_entry() 336 if (hist == 0) 338 FREE (hist->line); 340 x = hist->data; 341 xfree (hist); 347 HIST_ENTRY *hist; in copy_history_entry() 352 if (hist == 0) 353 return hist; [all …]
|
/dragonfly/contrib/binutils-2.34/gprof/ |
H A D | hist.c | 302 sym->hist.scaled_addr = sym->addr / sizeof (UNIT); in scale_and_align_entries() 313 (unsigned long) sym->hist.scaled_addr, in scale_and_align_entries() 314 (unsigned long) (sym->hist.scaled_addr in scale_and_align_entries() 316 sym->hist.scaled_addr += UNITS_TO_CODE; in scale_and_align_entries() 397 sym_low_pc = symtab.base[j].hist.scaled_addr; in hist_assign_samples_1() 398 sym_high_pc = symtab.base[j + 1].hist.scaled_addr; in hist_assign_samples_1() 432 symtab.base[j].hist.time += credit; in hist_assign_samples_1() 506 accum_time += sym->hist.time; in print_line() 511 accum_time / hz, sym->hist.time / hz); in print_line() 515 accum_time / hz, sym->hist.time / hz); in print_line() [all …]
|
H A D | cg_arcs.c | 210 arc->time = child->hist.time * (((double) arc->count) in propagate_time() 234 printf (" with %f %f %lu/%lu\n", child->hist.time, in propagate_time() 264 cyc->hist.time += member->hist.time; in cycle_time() 266 cyc->cg.prop.self = cyc->cg.prop.fract * cyc->hist.time; in cycle_time() 518 child->cg.prop.self = child->hist.time * child->cg.prop.fract; in propagate_flags() 526 child->hist.time, child->cg.prop.self, print_time)); in propagate_flags()
|
H A D | symtab.h | 72 hist; member
|
/dragonfly/contrib/binutils-2.27/gprof/ |
H A D | hist.c | 302 sym->hist.scaled_addr = sym->addr / sizeof (UNIT); in scale_and_align_entries() 313 (unsigned long) sym->hist.scaled_addr, in scale_and_align_entries() 314 (unsigned long) (sym->hist.scaled_addr in scale_and_align_entries() 316 sym->hist.scaled_addr += UNITS_TO_CODE; in scale_and_align_entries() 397 sym_low_pc = symtab.base[j].hist.scaled_addr; in hist_assign_samples_1() 398 sym_high_pc = symtab.base[j + 1].hist.scaled_addr; in hist_assign_samples_1() 432 symtab.base[j].hist.time += credit; in hist_assign_samples_1() 506 accum_time += sym->hist.time; in print_line() 511 accum_time / hz, sym->hist.time / hz); in print_line() 515 accum_time / hz, sym->hist.time / hz); in print_line() [all …]
|
H A D | cg_arcs.c | 210 arc->time = child->hist.time * (((double) arc->count) in propagate_time() 234 printf (" with %f %f %lu/%lu\n", child->hist.time, in propagate_time() 264 cyc->hist.time += member->hist.time; in cycle_time() 266 cyc->cg.prop.self = cyc->cg.prop.fract * cyc->hist.time; in cycle_time() 518 child->cg.prop.self = child->hist.time * child->cg.prop.fract; in propagate_flags() 526 child->hist.time, child->cg.prop.self, print_time)); in propagate_flags()
|
/dragonfly/usr.bin/undo/ |
H A D | undo.c | 555 struct hammer_ioc_history hist; in __collect_history() local 563 bzero(&hist, sizeof(hist)); in __collect_history() 564 hist.beg_tid = HAMMER_MIN_TID; in __collect_history() 565 hist.end_tid = HAMMER_MAX_TID; in __collect_history() 567 hist.key = 0; in __collect_history() 568 hist.nxt_key = HAMMER_MAX_KEY; in __collect_history() 586 for (i = 0; i < hist.count; ++i) { in __collect_history() 588 tse->tse = hist.hist_ary[i]; in __collect_history() 597 hist.key = hist.nxt_key; in __collect_history() 598 hist.nxt_key = HAMMER_MAX_KEY; in __collect_history() [all …]
|
/dragonfly/sbin/vinum/ |
H A D | v.c | 63 FILE *hist; /* history file */ variable 139 hist = fopen(historyfile, "a+"); in main() 140 if (hist != NULL) { in main() 142 fprintf(hist, "*** " VINUMMOD " started ***\n"); in main() 224 if (hist) in main() 225 fflush(hist); in main() 319 fprintf(hist, "%s ", argv[i]); in parseline() 320 fputs("\n", hist); in parseline() 535 if (hist) { in make_devices() 537 fprintf(hist, "*** Created devices ***\n"); in make_devices() [all …]
|
/dragonfly/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()
|
/dragonfly/usr.sbin/pppctl/ |
H A D | pppctl.c | 396 History *hist; in main() local 401 hist = history_init(); in main() 408 history(hist, &he, H_SETSIZE, size); in main() 419 el_set(edit, EL_HIST, history, (const char *)hist); in main() 422 history(hist, &he, H_ENTER, l); in main() 429 history_end(hist); in main()
|
/dragonfly/sbin/fsdb/ |
H A D | fsdb.c | 212 History *hist; in cmdloop() local 220 hist = history_init(); in cmdloop() 221 history(hist, &he, H_SETSIZE, 100); /* 100 elt history buffer */ in cmdloop() 226 el_set(elptr, EL_HIST, history, hist); in cmdloop() 233 history(hist, &he, H_ENTER, elline); in cmdloop() 270 history_end(hist); in cmdloop()
|
/dragonfly/usr.bin/tftp/ |
H A D | main.c | 580 static History *hist; in command() local 588 hist = history_init(); in command() 589 history(hist, &he, H_SETSIZE, 100); in command() 590 el_set(el, EL_HIST, history, hist); in command() 603 history(hist, &he, H_ENTER, bp); in command()
|
/dragonfly/contrib/tnftp/src/ |
H A D | util.c | 1009 if (editing && el == NULL && hist == NULL) { in controlediting() 1015 hist = history_init(); /* init the builtin history */ in controlediting() 1016 history(hist, &ev, H_SETSIZE, 100);/* remember 100 events */ in controlediting() 1017 el_set(el, EL_HIST, history, hist); /* use history */ in controlediting() 1037 if (hist) { in controlediting() 1038 history_end(hist); in controlediting() 1039 hist = NULL; in controlediting()
|
/dragonfly/usr.bin/bc/ |
H A D | extern.h | 50 extern History *hist;
|
H A D | scan.l | 39 History *hist; variable 352 history(hist, &he, H_ENTER, bp);
|