Home
last modified time | relevance | path

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

123456

/netbsd-src/external/gpl3/binutils.old/dist/gprof/
H A Dcg_arcs.c70 for (arc = parent->cg.children; arc; arc = arc->next_child) in arc_lookup()
144 arc->next_child = parent->cg.children; in arc_add()
145 parent->cg.children = arc; in arc_add()
148 arc->next_parent = child->cg.parents; in arc_add()
149 child->cg.parents = arc; in arc_add()
159 return left->cg.top_order - right->cg.top_order; in cmp_topo()
170 if (parent->cg.prop.fract == 0.0) in propagate_time()
177 for (arc = parent->cg.children; arc; arc = arc->next_child) in propagate_time()
180 if (arc->count == 0 || child == parent || child->cg.prop.fract == 0) in propagate_time()
184 if (child->cg.cyc.head != child) in propagate_time()
[all …]
H A Dcg_print.c120 sprintf (buf, "[%d]", cyc->cg.index); in print_cycle()
124 100 * (cyc->cg.prop.self + cyc->cg.prop.child) / print_time, in print_cycle()
125 cyc->cg.prop.self / hz, cyc->cg.prop.child / hz, cyc->ncalls); in print_cycle()
127 if (cyc->cg.self_calls != 0) in print_cycle()
128 printf ("+%-7lu", cyc->cg.self_calls); in print_cycle()
132 printf (_(" <cycle %d as a whole> [%d]\n"), cyc->cg.cyc.num, cyc->cg.index); in print_cycle()
141 double left_time = left->cg.prop.self + left->cg.prop.child; in cmp_member()
142 double right_time = right->cg.prop.self + right->cg.prop.child; in cmp_member()
143 unsigned long left_calls = left->ncalls + left->cg.self_calls; in cmp_member()
144 unsigned long right_calls = right->ncalls + right->cg.self_calls; in cmp_member()
[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()
165 if (head->cg.cyc.head != head) 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()
[all …]
H A Dutils.c91 DBG (DFNDEBUG, printf ("{%d} ", self->cg.top_order)); in print_name_only()
92 DBG (PROPDEBUG, printf ("%4.0f%% ", 100.0 * self->cg.prop.fract)); in print_name_only()
103 if (self->cg.cyc.num != 0) in print_name()
105 printf (_(" <cycle %d>"), self->cg.cyc.num); in print_name()
107 if (self->cg.index != 0) in print_name()
109 if (self->cg.print_flag) in print_name()
111 printf (" [%d]", self->cg.index); in print_name()
115 printf (" (%d)", self->cg.index); in print_name()
H A Dgprof.c189 Sym **cg = 0; in main() local
593 cg = cg_assemble (); in main()
612 if (cg && (output_style & STYLE_CALL_GRAPH) && bsd_style_output) in main()
615 cg_print (cg); in main()
624 if (cg && (output_style & STYLE_CALL_GRAPH)) in main()
629 cg_print (cg); in main()
/netbsd-src/external/gpl3/binutils/dist/gprof/
H A Dcg_arcs.c71 for (arc = parent->cg.children; arc; arc = arc->next_child) in arc_lookup()
145 arc->next_child = parent->cg.children; in arc_add()
146 parent->cg.children = arc; in arc_add()
149 arc->next_parent = child->cg.parents; in arc_add()
150 child->cg.parents = arc; in arc_add()
160 return left->cg.top_order - right->cg.top_order; in cmp_topo()
171 if (parent->cg.prop.fract == 0.0) in propagate_time()
178 for (arc = parent->cg.children; arc; arc = arc->next_child) in propagate_time()
181 if (arc->count == 0 || child == parent || child->cg.prop.fract == 0) in propagate_time()
185 if (child->cg.cyc.head != child) in propagate_time()
[all …]
H A Dcg_print.c120 sprintf (buf, "[%d]", cyc->cg.index); in print_cycle()
124 100 * (cyc->cg.prop.self + cyc->cg.prop.child) / print_time, in print_cycle()
125 cyc->cg.prop.self / hz, cyc->cg.prop.child / hz, cyc->ncalls); in print_cycle()
127 if (cyc->cg.self_calls != 0) in print_cycle()
128 printf ("+%-7lu", cyc->cg.self_calls); in print_cycle()
132 printf (_(" <cycle %d as a whole> [%d]\n"), cyc->cg.cyc.num, cyc->cg.index); in print_cycle()
141 double left_time = left->cg.prop.self + left->cg.prop.child; in cmp_member()
142 double right_time = right->cg.prop.self + right->cg.prop.child; in cmp_member()
143 unsigned long left_calls = left->ncalls + left->cg.self_calls; in cmp_member()
144 unsigned long right_calls = right->ncalls + right->cg.self_calls; in cmp_member()
[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()
165 if (head->cg.cyc.head != head) 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()
[all …]
H A Dutils.c91 DBG (DFNDEBUG, printf ("{%d} ", self->cg.top_order)); in print_name_only()
92 DBG (PROPDEBUG, printf ("%4.0f%% ", 100.0 * self->cg.prop.fract)); in print_name_only()
103 if (self->cg.cyc.num != 0) in print_name()
105 printf (_(" <cycle %d>"), self->cg.cyc.num); in print_name()
107 if (self->cg.index != 0) in print_name()
109 if (self->cg.print_flag) in print_name()
111 printf (" [%d]", self->cg.index); in print_name()
115 printf (" (%d)", self->cg.index); in print_name()
H A Dgprof.c189 Sym **cg = 0; in main() local
593 cg = cg_assemble (); in main()
612 if (cg && (output_style & STYLE_CALL_GRAPH) && bsd_style_output) in main()
615 cg_print (cg); in main()
624 if (cg && (output_style & STYLE_CALL_GRAPH)) in main()
629 cg_print (cg); in main()
/netbsd-src/external/apache2/llvm/dist/llvm/tools/lto/
H A Dlto.cpp151 static void lto_add_attrs(lto_code_gen_t cg) { in DEFINE_SIMPLE_CONVERSION_FUNCTIONS()
152 LTOCodeGenerator *CG = unwrap(cg); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS()
289 lto_code_gen_t cg) { in lto_module_create_in_codegen_context() argument
294 unwrap(cg)->getContext(), mem, length, Options, StringRef(path)); in lto_module_create_in_codegen_context()
346 void lto_codegen_set_diagnostic_handler(lto_code_gen_t cg, in lto_codegen_set_diagnostic_handler() argument
349 unwrap(cg)->setDiagnosticHandler(diag_handler, ctxt); in lto_codegen_set_diagnostic_handler()
372 void lto_codegen_dispose(lto_code_gen_t cg) { delete unwrap(cg); } in lto_codegen_dispose() argument
374 bool lto_codegen_add_module(lto_code_gen_t cg, lto_module_t mod) { in lto_codegen_add_module() argument
375 return !unwrap(cg)->addModule(unwrap(mod)); in lto_codegen_add_module()
378 void lto_codegen_set_module(lto_code_gen_t cg, lto_module_t mod) { in lto_codegen_set_module() argument
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm-c/
H A Dlto.h219 const char *path, lto_code_gen_t cg);
394 lto_codegen_add_module(lto_code_gen_t cg, lto_module_t mod);
405 lto_codegen_set_module(lto_code_gen_t cg, lto_module_t mod);
414 lto_codegen_set_debug_model(lto_code_gen_t cg, lto_debug_model);
423 lto_codegen_set_pic_model(lto_code_gen_t cg, lto_codegen_model);
431 lto_codegen_set_cpu(lto_code_gen_t cg, const char *cpu);
440 lto_codegen_set_assembler_path(lto_code_gen_t cg, const char* path);
448 lto_codegen_set_assembler_args(lto_code_gen_t cg, const char **args,
459 lto_codegen_add_must_preserve_symbol(lto_code_gen_t cg, const char* symbol);
469 lto_codegen_write_merged_modules(lto_code_gen_t cg, const char* path);
[all …]
/netbsd-src/sys/ufs/ext2fs/
H A Dext2fs_alloc.c122 int cg; in ext2fs_alloc() local
139 cg = ino_to_cg(fs, ip->i_number); in ext2fs_alloc()
141 cg = dtog(fs, bpref); in ext2fs_alloc()
142 bno = (daddr_t)ext2fs_hashalloc(ip, cg, bpref, fs->e2fs_bsize, in ext2fs_alloc()
177 int cg; in ext2fs_valloc() local
185 cg = ext2fs_dirpref(fs); in ext2fs_valloc()
187 cg = ino_to_cg(fs, pip->i_number); in ext2fs_valloc()
188 ipref = cg * fs->e2fs.e2fs_ipg + 1; in ext2fs_valloc()
189 ino = (ino_t)ext2fs_hashalloc(pip, cg, (long)ipref, mode, ext2fs_nodealloccg); in ext2fs_valloc()
212 int cg, maxspace, mincg, avgifree; in ext2fs_dirpref() local
[all …]
/netbsd-src/usr.sbin/makefs/ffs/
H A Dffs_alloc.c75 static int32_t ffs_mapsearch(struct fs *, struct cg *, daddr_t, int);
106 int cg; in ffs_alloc() local
118 cg = ino_to_cg(fs, ip->i_number); in ffs_alloc()
120 cg = dtog(fs, bpref); in ffs_alloc()
121 bno = ffs_hashalloc(ip, cg, bpref, size, ffs_alloccg); in ffs_alloc()
162 uint32_t cg, startcg; in ffs_blkpref_ufs1() local
168 cg = ino_to_cg(fs, ip->i_number); in ffs_blkpref_ufs1()
169 return (fs->fs_fpg * cg + fs->fs_frag); in ffs_blkpref_ufs1()
183 for (cg = startcg; cg < fs->fs_ncg; cg++) in ffs_blkpref_ufs1()
184 if (fs->fs_cs(fs, cg).cs_nbfree >= avgbfree) in ffs_blkpref_ufs1()
[all …]
H A Dffs_extern.h56 void ffs_clusteracct(struct fs *, struct cg *, int32_t, int);
66 void ffs_cg_swap(struct cg *, struct cg *, struct fs *);
/netbsd-src/sys/ufs/ffs/
H A Dffs_alloc.c118 static int32_t ffs_mapsearch(struct fs *, struct cg *,
182 u_int cg; in ffs_alloc() local
255 cg = ino_to_cg(fs, ip->i_number); in ffs_alloc()
257 cg = dtog(fs, bpref); in ffs_alloc()
258 bno = ffs_hashalloc(ip, cg, bpref, size, 0, flags, ffs_alloccg); in ffs_alloc()
314 u_int cg, request; in ffs_realloccg() local
404 cg = dtog(fs, bprev); in ffs_realloccg()
406 if ((bno = ffs_fragextend(ip, cg, bprev, osize, nsize)) != 0) { in ffs_realloccg()
490 bno = ffs_hashalloc(ip, cg, bpref, request, nsize, 0, ffs_alloccg); in ffs_realloccg()
575 u_int cg; in ffs_valloc() local
[all …]
/netbsd-src/sbin/resize_ffs/
H A Dresize_ffs.c113 static struct cg **cgs;
330 uint32_t cg; in loadcgs() local
338 for (cg = 0; cg < oldsb->fs_ncg; cg++) { in loadcgs()
339 cgs[cg] = (struct cg *) cgp; in loadcgs()
340 readat(FFS_FSBTODB(oldsb, cgtod(oldsb, cg)), cgp, cgblksz); in loadcgs()
342 ffs_cg_swap(cgs[cg],cgs[cg],oldsb); in loadcgs()
343 cgflags[cg] = 0; in loadcgs()
465 struct cg *cg; /* The in-core cg, of course */ in initcg() local
474 cg = cgs[cgn]; in initcg()
482 start = (unsigned char *)&cg->cg_space[0] - (unsigned char *) cg; in initcg()
[all …]
/netbsd-src/sbin/fsck_ffs/
H A Dpass4.c67 uint32_t cg; in pass4() local
73 for (cg = 0; cg < sblock->fs_ncg; cg++) { in pass4()
77 cdevname(), cg, sblock->fs_ncg, in pass4()
78 cg * 100 / sblock->fs_ncg); in pass4()
83 cg, sblock->fs_ncg); in pass4()
85 inumber = cg * sblock->fs_ipg; in pass4()
86 for (i = 0; i < inostathead[cg].il_numalloced; i++, inumber++) { in pass4()
163 int cg, nfrags, res = KEEPON; in pass4check() local
165 struct cg *cgp = cgrp; in pass4check()
167 cg = dtog(sblock, blkno); in pass4check()
[all …]
H A Dpass5.c76 struct cg *newcg = (struct cg *)buf; in pass5()
78 struct cg *cg = cgrp, *ncg; in pass5() local
121 cg = cgrp = ncg; in pass5()
218 memcpy(cg, cgblk.b_un.b_cg, fs->fs_cgsize); in pass5()
220 ffs_cg_swap(cgblk.b_un.b_cg, cg, sblock); in pass5()
221 if (!doinglevel1 && !cg_chkmagic(cg, 0)) in pass5()
272 newcg->cg_time = cg->cg_time; in pass5()
273 newcg->cg_old_time = cg->cg_old_time; in pass5()
297 if (cg->cg_rotor < newcg->cg_ndblk) in pass5()
298 newcg->cg_rotor = cg->cg_rotor; in pass5()
[all …]
H A Dinode.c716 struct cg *cgp = cgrp; in allocino()
717 int cg; in allocino() local
732 cg = ino_to_cg(sblock, ino); in allocino()
734 if ((ino % sblock->fs_ipg) >= inostathead[cg].il_numalloced) { in allocino()
737 MAX(2 * inostathead[cg].il_numalloced, 10)); in allocino()
744 memmove(info, inostathead[cg].il_stat, in allocino()
745 inostathead[cg].il_numalloced * sizeof(*info)); in allocino()
746 for (i = inostathead[cg].il_numalloced; i < newalloced; i++) { in allocino()
749 if (inostathead[cg].il_numalloced) in allocino()
750 free(inostathead[cg].il_stat); in allocino()
[all …]
/netbsd-src/sbin/badsect/
H A Dbadsect.c79 struct cg cg; member
82 #define acg ucg.cg
206 int cg; in chkuse() local
217 cg = (int)dtog(fs, fsbn); in chkuse()
218 if (fsbn < cgdmin(fs, cg)) { in chkuse()
219 if (cg == 0 || fsbe > cgsblock(fs, cg)) { in chkuse()
225 if (fsbe > cgbase(fs, cg + 1)) { in chkuse()
232 rdfs(FFS_FSBTODB(fs, cgtod(fs, cg)), (int)sblock.fs_cgsize, &acg); in chkuse()
235 warnx("cg %d: bad magic number", cg); in chkuse()
/netbsd-src/sbin/dump/
H A Dffs_inode.c172 int i, cg, inosused; in fs_mapinodes() local
173 struct cg *cgp; in fs_mapinodes()
180 for (cg = 0; cg < sblock->fs_ncg; cg++) { in fs_mapinodes()
181 ino = cg * sblock->fs_ipg; in fs_mapinodes()
182 bread(FFS_FSBTODB(sblock, cgtod(sblock, cg)), (char *)cgp, in fs_mapinodes()
200 __func__, cg); in fs_mapinodes()
/netbsd-src/external/gpl3/binutils/dist/binutils/
H A Dresrc.c835 rc_group_cursor *cg; in define_cursor() local
837 cg = (rc_group_cursor *) res_alloc (sizeof (rc_group_cursor)); in define_cursor()
838 cg->next = NULL; in define_cursor()
839 cg->width = icondirs[i].width; in define_cursor()
840 cg->height = 2 * icondirs[i].height; in define_cursor()
843 cg->planes = 1; in define_cursor()
844 cg->bits = 1; in define_cursor()
846 cg->bytes = icondirs[i].bytes + 4; in define_cursor()
847 cg->index = first_cursor + i + 1; in define_cursor()
849 *pp = cg; in define_cursor()
[all …]
/netbsd-src/external/gpl3/binutils.old/dist/binutils/
H A Dresrc.c841 rc_group_cursor *cg; in define_cursor() local
843 cg = (rc_group_cursor *) res_alloc (sizeof (rc_group_cursor)); in define_cursor()
844 cg->next = NULL; in define_cursor()
845 cg->width = icondirs[i].width; in define_cursor()
846 cg->height = 2 * icondirs[i].height; in define_cursor()
849 cg->planes = 1; in define_cursor()
850 cg->bits = 1; in define_cursor()
852 cg->bytes = icondirs[i].bytes + 4; in define_cursor()
853 cg->index = first_cursor + i + 1; in define_cursor()
855 *pp = cg; in define_cursor()
[all …]
/netbsd-src/sbin/fsck_ext2fs/
H A Dsetup.c108 long cg, asked, i; in setup() local
164 for (cg = 1; cg < proto.e2fs_ncg; cg++) { in setup()
166 cg * proto.e2fs.e2fs_bpg + in setup()
171 if (cg >= proto.e2fs_ncg) { in setup()
275 for (numdirs = 0, cg = 0; cg < sblock.e2fs_ncg; cg++) { in setup()
276 numdirs += fs2h16(sblock.e2fs_gd[cg].ext2bgd_ndirs); in setup()

123456