Home
last modified time | relevance | path

Searched refs:cg (Results 1 – 25 of 101) sorted by relevance

12345

/openbsd/gnu/usr.bin/binutils/gprof/
H A Dcg_arcs.c166 return left->cg.top_order - right->cg.top_order;
194 if (parent->cg.cyc.num == child->cg.cyc.num)
198 if (parent->cg.top_order <= child->cg.top_order)
206 if (parent->cg.top_order <= child->cg.top_order)
236 parent->cg.cyc.head->cg.child_time += share;
387 child->cg.print_flag |= parent->cg.print_flag;
425 head->cg.prop.fract += parent->cg.prop.fract
432 member->cg.print_flag = head->cg.print_flag;
433 member->cg.prop.fract = head->cg.prop.fract;
472 child->cg.print_flag, child->cg.prop.fract));
[all …]
H A Dcg_dfn.c66 return child->cg.top_order != DFN_NAN && child->cg.top_order != DFN_BUSY;
77 if (child->cg.top_order == DFN_NAN)
107 if (child->cg.cyc.head != child && child->cg.cyc.head == head)
155 for (tail = head; tail->cg.cyc.next; tail = tail->cg.cyc.next)
170 head = head->cg.cyc.head;
178 if (child->cg.cyc.head == child)
184 tail->cg.cyc.next = child;
185 child->cg.cyc.head = head;
191 for (tail = child; tail->cg.cyc.next; tail = tail->cg.cyc.next)
193 tail->cg.cyc.next->cg.cyc.head = head;
[all …]
H A Dcg_print.c121 100 * (cyc->cg.prop.self + cyc->cg.prop.child) / print_time,
122 cyc->cg.prop.self / hz, cyc->cg.prop.child / hz, cyc->ncalls);
140 double left_time = left->cg.prop.self + left->cg.prop.child;
183 doing->cg.cyc.next = prev->cg.cyc.next;
259 && left_parent->cg.cyc.num == left_child->cg.cyc.num)
263 && right_parent->cg.cyc.num == right_child->cg.cyc.num)
284 && right_parent->cg.cyc.num == right_child->cg.cyc.num)
375 && parent->cg.cyc.num == child->cg.cyc.num))
450 && child->cg.cyc.num == parent->cg.cyc.num))
486 100 * (np->cg.prop.self + np->cg.prop.child) / print_time,
[all …]
H A Dutils.c94 DBG (DFNDEBUG, printf ("{%d} ", self->cg.top_order));
95 DBG (PROPDEBUG, printf ("%4.0f%% ", 100.0 * self->cg.prop.fract));
107 if (self->cg.cyc.num != 0)
109 printf (_(" <cycle %d>"), self->cg.cyc.num);
111 if (self->cg.index != 0)
113 if (self->cg.print_flag)
115 printf (" [%d]", self->cg.index);
119 printf (" (%d)", self->cg.index);
H A Dgprof.c190 Sym **cg = 0; local
633 cg = cg_assemble ();
654 if (cg && (output_style & STYLE_CALL_GRAPH) && bsd_style_output)
656 cg_print (cg); /* print the dynamic profile */
664 if (cg && (output_style & STYLE_CALL_GRAPH))
668 cg_print (cg); /* print the dynamic profile */
/openbsd/gnu/usr.bin/binutils-2.17/gprof/
H A Dcg_arcs.c159 return left->cg.top_order - right->cg.top_order; in cmp_topo()
186 if (parent->cg.cyc.num == child->cg.cyc.num) in propagate_time()
190 if (parent->cg.top_order <= child->cg.top_order) in propagate_time()
198 if (parent->cg.top_order <= child->cg.top_order) in propagate_time()
228 parent->cg.cyc.head->cg.child_time += share; in propagate_time()
378 child->cg.print_flag |= parent->cg.print_flag; in inherit_flags()
416 head->cg.prop.fract += parent->cg.prop.fract in inherit_flags()
423 member->cg.print_flag = head->cg.print_flag; in inherit_flags()
424 member->cg.prop.fract = head->cg.prop.fract; in inherit_flags()
462 child->cg.print_flag, child->cg.prop.fract)); in propagate_flags()
[all …]
H A Dcg_dfn.c65 return child->cg.top_order != DFN_NAN && child->cg.top_order != DFN_BUSY; in is_numbered()
75 if (child->cg.top_order == DFN_NAN) in is_busy()
104 if (child->cg.cyc.head != child && child->cg.cyc.head == head) in find_cycle()
152 for (tail = head; tail->cg.cyc.next; tail = tail->cg.cyc.next) in find_cycle()
167 head = head->cg.cyc.head; in find_cycle()
175 if (child->cg.cyc.head == child) in find_cycle()
181 tail->cg.cyc.next = child; in find_cycle()
182 child->cg.cyc.head = head; in find_cycle()
188 for (tail = child; tail->cg.cyc.next; tail = tail->cg.cyc.next) in find_cycle()
190 tail->cg.cyc.next->cg.cyc.head = head; in find_cycle()
[all …]
H A Dcg_print.c120 100 * (cyc->cg.prop.self + cyc->cg.prop.child) / print_time, in print_cycle()
121 cyc->cg.prop.self / hz, cyc->cg.prop.child / hz, cyc->ncalls); in print_cycle()
137 double left_time = left->cg.prop.self + left->cg.prop.child; in cmp_member()
179 doing->cg.cyc.next = prev->cg.cyc.next; in sort_members()
252 && left_parent->cg.cyc.num == left_child->cg.cyc.num) in cmp_arc()
256 && right_parent->cg.cyc.num == right_child->cg.cyc.num) in cmp_arc()
277 && right_parent->cg.cyc.num == right_child->cg.cyc.num) in cmp_arc()
366 && parent->cg.cyc.num == child->cg.cyc.num)) in print_parents()
439 && child->cg.cyc.num == parent->cg.cyc.num)) in print_children()
474 100 * (np->cg.prop.self + np->cg.prop.child) / print_time, in print_line()
[all …]
H A Dutils.c93 DBG (DFNDEBUG, printf ("{%d} ", self->cg.top_order)); in print_name_only()
94 DBG (PROPDEBUG, printf ("%4.0f%% ", 100.0 * self->cg.prop.fract)); in print_name_only()
105 if (self->cg.cyc.num != 0) in print_name()
107 printf (_(" <cycle %d>"), self->cg.cyc.num); in print_name()
109 if (self->cg.index != 0) in print_name()
111 if (self->cg.print_flag) in print_name()
113 printf (" [%d]", self->cg.index); in print_name()
117 printf (" (%d)", self->cg.index); in print_name()
H A Dgprof.c183 Sym **cg = 0; in main() local
569 cg = cg_assemble (); in main()
588 if (cg && (output_style & STYLE_CALL_GRAPH) && bsd_style_output) in main()
591 cg_print (cg); in main()
600 if (cg && (output_style & STYLE_CALL_GRAPH)) in main()
605 cg_print (cg); in main()
/openbsd/gnu/llvm/llvm/tools/lto/
H A Dlto.cpp372 void lto_codegen_dispose(lto_code_gen_t cg) { delete unwrap(cg); } in lto_codegen_dispose() argument
407 return unwrap(cg)->setCpu(cpu); in lto_codegen_set_cpu()
428 lto_add_attrs(cg); in maybeParseOptions()
434 maybeParseOptions(cg); in lto_codegen_write_merged_modules()
439 maybeParseOptions(cg); in lto_codegen_compile()
449 maybeParseOptions(cg); in lto_codegen_optimize()
450 return !unwrap(cg)->optimize(); in lto_codegen_optimize()
454 maybeParseOptions(cg); in lto_codegen_compile_optimized()
464 maybeParseOptions(cg); in lto_codegen_compile_to_file()
539 void thinlto_codegen_dispose(thinlto_code_gen_t cg) { delete unwrap(cg); } in thinlto_codegen_dispose() argument
[all …]
/openbsd/gnu/llvm/llvm/include/llvm-c/
H A Dlto.h404 lto_codegen_add_module(lto_code_gen_t cg, lto_module_t mod);
415 lto_codegen_set_module(lto_code_gen_t cg, lto_module_t mod);
441 lto_codegen_set_cpu(lto_code_gen_t cg, const char *cpu);
494 lto_codegen_compile(lto_code_gen_t cg, size_t* length);
514 lto_codegen_optimize(lto_code_gen_t cg);
565 lto_codegen_debug_options(lto_code_gen_t cg, const char *);
592 lto_codegen_set_should_internalize(lto_code_gen_t cg,
604 lto_codegen_set_should_embed_uselists(lto_code_gen_t cg,
695 extern void thinlto_codegen_dispose(thinlto_code_gen_t cg);
718 extern void thinlto_codegen_process(thinlto_code_gen_t cg);
[all …]
/openbsd/usr.sbin/makefs/ffs/
H A Dffs_alloc.c90 int cg; in ffs_alloc() local
146 int cg; in ffs_blkpref_ufs1() local
166 for (cg = startcg; cg < fs->fs_ncg; cg++) in ffs_blkpref_ufs1()
169 for (cg = 0; cg <= startcg; cg++) in ffs_blkpref_ufs1()
184 int cg; in ffs_blkpref_ufs2() local
204 for (cg = startcg; cg < fs->fs_ncg; cg++) in ffs_blkpref_ufs2()
208 for (cg = 0; cg < startcg; cg++) in ffs_blkpref_ufs2()
250 cg += i; in ffs_hashalloc()
267 cg++; in ffs_hashalloc()
269 cg = 0; in ffs_hashalloc()
[all …]
/openbsd/sys/ufs/ext2fs/
H A Dext2fs_alloc.c85 int cg; in ext2fs_alloc() local
139 int cg, error; in ext2fs_inode_alloc() local
198 for (cg = 0; cg < fs->e2fs_ncg; cg++) in ext2fs_dirpref()
201 mincg = cg; in ext2fs_dirpref()
223 int cg, i; in ext2fs_blkpref() local
268 int i, icg = cg; in ext2fs_hashalloc()
281 cg += i; in ext2fs_hashalloc()
298 cg++; in ext2fs_hashalloc()
300 cg = 0; in ext2fs_hashalloc()
465 int error, cg; in ext2fs_blkfree() local
[all …]
/openbsd/sys/ufs/ffs/
H A Dffs_alloc.c473 for (cg = prefcg; cg < fs->fs_ncg; cg++) in ffs_dirpref()
480 for (cg = 0; cg < prefcg; cg++) in ffs_dirpref()
541 for (cg = prefcg; cg < fs->fs_ncg; cg++) in ffs_dirpref()
548 for (cg = 0; cg < prefcg; cg++) in ffs_dirpref()
558 for (cg = prefcg; cg < fs->fs_ncg; cg++) in ffs_dirpref()
561 for (cg = 0; cg < prefcg; cg++) in ffs_dirpref()
672 for (cg = startcg; cg < fs->fs_ncg; cg++) in ffs1_blkpref()
677 for (cg = 0; cg <= startcg; cg++) in ffs1_blkpref()
776 for (cg = startcg; cg < fs->fs_ncg; cg++) in ffs2_blkpref()
780 for (cg = 0; cg < startcg; cg++) in ffs2_blkpref()
[all …]
/openbsd/sbin/fsck_ffs/
H A Dpass5.c76 struct cg *newcg = (struct cg *)buf; in pass5()
78 struct cg *cg; in pass5() local
161 basesize = sizeof(struct cg); in pass5()
184 cg = cgbp->b_un.b_cg; in pass5()
185 if (!cg_chkmagic(cg)) in pass5()
191 newcg->cg_time = cg->cg_time; in pass5()
206 newcg->cg_rotor = cg->cg_rotor; in pass5()
209 if (cg->cg_frotor >= 0 && cg->cg_frotor < newcg->cg_ndblk) in pass5()
216 newcg->cg_niblk = cg->cg_niblk; in pass5()
217 if (cg->cg_irotor >= 0 && in pass5()
[all …]
H A Dinode.c588 struct cg *cgp; in allocino()
589 int cg; in allocino() local
602 cg = ino_to_cg(&sblock, ino); in allocino()
614 memmove(info, inostathead[cg].il_stat, in allocino()
615 inostathead[cg].il_numalloced * sizeof(*info)); in allocino()
619 if (inostathead[cg].il_numalloced) in allocino()
620 free(inostathead[cg].il_stat); in allocino()
621 inostathead[cg].il_stat = info; in allocino()
622 inostathead[cg].il_numalloced = newalloced; in allocino()
625 cgbp = cglookup(cg); in allocino()
[all …]
H A Dutilities.c185 cglookup(u_int cg) in cglookup() argument
188 struct cg *cgp; in cglookup()
195 cgbp = &cgbufs[cg]; in cglookup()
202 getblk(&cgblk, cgtod(&sblock, cg), sblock.fs_cgsize); in cglookup()
207 getblk(cgbp, cgtod(&sblock, cg), sblock.fs_cgsize); in cglookup()
445 int j, k, cg; in allocblk() local
447 struct cg *cgp; in allocblk()
462 cg = dtog(&sblock, i + j); in allocblk()
463 cgbp = cglookup(cg); in allocblk()
466 pfatal("CG %d: BAD MAGIC NUMBER\n", cg); in allocblk()
H A Dsetup.c90 uint32_t cg, inopb; in setup() local
183 for (cg = 0; cg < proto.fs_ncg; cg++) { in setup()
184 bflag = fsbtodb(&proto, cgsblock(&proto, cg)); in setup()
191 for (cg = 0; cg < proto.fs_ncg; cg++) { in setup()
192 bflag = fsbtodb(&proto, cgsblock(&proto, cg)); in setup()
198 if (cg >= proto.fs_ncg) { in setup()
/openbsd/sbin/badsect/
H A Dbadsect.c67 struct cg cg; member
70 #define acg ucg.cg
143 int cg; in chkuse() local
152 cg = dtog(fs, fsbn); in chkuse()
153 if (fsbn < cgdmin(fs, cg)) { in chkuse()
154 if (cg == 0 || (fsbn+cnt) > cgsblock(fs, cg)) { in chkuse()
160 if ((fsbn+cnt) > cgbase(fs, cg+1)) { in chkuse()
166 rdfs(fsbtodb(fs, cgtod(fs, cg)), (int)sblock.fs_cgsize, in chkuse()
169 fprintf(stderr, "cg %d: bad magic number\n", cg); in chkuse()
/openbsd/sbin/fsirand/
H A Dfsirand.c105 u_int cg; in fsirand() local
191 for (cg = 0; cg < sblock->fs_ncg; cg++) { in fsirand()
192 dblk = fsbtodb(sblock, cgsblock(sblock, cg)); in fsirand()
198 cg + 1, devpath, (n < SBSIZE) ? "short read" in fsirand()
205 cg + 1, devpath); in fsirand()
210 cg + 1, devpath); in fsirand()
260 for (cg = 0, inumber = 0; cg < sblock->fs_ncg; cg++) { in fsirand()
263 dblk = fsbtodb(sblock, cgsblock(sblock, cg)); in fsirand()
272 cg + 1, devpath, (n < SBSIZE) ? "short write" in fsirand()
/openbsd/sbin/growfs/
H A Dgrowfs.c89 struct cg cg; member
171 u_int cg; in growfs() local
218 for (cg = osblock.fs_ncg; cg < sblock.fs_ncg; cg++) { in growfs()
308 for (cg = 0; cg < sblock.fs_ncg; cg++) { in growfs()
354 cs = &fscs[cg]; in initcg()
358 acg.cg_cgx = cg; in initcg()
402 if (cg == 0) { in initcg()
408 if (cg > 0) { in initcg()
671 cs = fscs + cg; in updjcg()
848 u_int cg, inc; in updcsloc() local
[all …]
/openbsd/sbin/dumpfs/
H A Ddumpfs.c66 struct cg cg; member
69 #define acg cgun.cg
165 u_int cg; in dumpfs() local
308 for (cg = 0; cg < afs.fs_ncg; cg++) { in dumpfs()
309 struct csum *cs = &afs.fs_cs(&afs, cg); in dumpfs()
324 for (cg = 0; cg < afs.fs_ncg; cg++) in dumpfs()
325 if (dumpcg(name, fd, cg)) in dumpfs()
/openbsd/sbin/newfs/
H A Dmkfs.c116 struct cg cg; member
119 #define acg cgun->cg
174 u_int cg; in mkfs() local
561 for (cg = 0; cg < sblock.fs_ncg; cg++) { in mkfs()
563 initcg(cg, utime); in mkfs()
644 if (cg == 0) in initcg()
646 cs = &fscs[cg]; in initcg()
650 acg.cg_cgx = cg; in initcg()
655 start = sizeof(struct cg); in initcg()
681 if (cg == 0) { in initcg()
[all …]
/openbsd/sbin/fsck_ext2fs/
H A Dsetup.c69 long cg, asked, i; in setup() local
143 for (cg = 1; cg < proto.e2fs_ncg; cg++) { in setup()
145 cg * proto.e2fs.e2fs_bpg + proto.e2fs.e2fs_first_dblock); in setup()
149 if (cg >= proto.e2fs_ncg) { in setup()
250 for (numdirs = 0, cg = 0; cg < sblock.e2fs_ncg; cg++) { in setup()
251 numdirs += letoh16(sblock.e2fs_gd[cg].ext2bgd_ndirs); in setup()

12345