| /netbsd/src/external/gpl3/binutils/dist/gprof/ |
| D | cg_arcs.c | 71 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 …]
|
| D | cg_print.c | 120 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 …]
|
| D | cg_dfn.c | 65 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 …]
|
| D | utils.c | 91 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()
|
| D | gprof.c | 189 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()
|
| D | symtab.c | 44 sym->cg.child_time = 0.0; in sym_init() 45 sym->cg.prop.fract = 0.0; in sym_init() 46 sym->cg.prop.self = 0.0; in sym_init() 47 sym->cg.prop.child = 0.0; in sym_init()
|
| D | mips.c | 55 indirect_child.cg.prop.fract = 1.0; in mips_find_call() 56 indirect_child.cg.cyc.head = &indirect_child; in mips_find_call()
|
| /netbsd/src/sys/ufs/ext2fs/ |
| D | ext2fs_alloc.c | 122 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/ |
| D | ffs_alloc.c | 75 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 …]
|
| D | ffs_extern.h | 56 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/ |
| D | ffs_alloc.c | 118 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 …]
|
| D | ffs_extern.h | 63 struct cg; 198 void ffs_cg_swap(struct cg *, struct cg *, struct fs *); 212 void ffs_clusteracct(struct fs *, struct cg *, int32_t, int);
|
| D | ffs_wapbl.c | 775 struct cg *cgp; in wapbl_find_log_start() 781 int bpcg, cg, error, fixedsize, indir_blks, n, s; in wapbl_find_log_start() local 864 for (cg = fs->fs_ncg / 2, s = 0, n = 1; in wapbl_find_log_start() 865 best_blks < desired_blks && cg >= 0 && cg < fs->fs_ncg; in wapbl_find_log_start() 866 s++, n = -n, cg += n * s) { in wapbl_find_log_start() 867 DPRINTF("check cg %d of %d\n", cg, fs->fs_ncg); in wapbl_find_log_start() 868 error = bread(devvp, FFS_FSBTODB(fs, cgtod(fs, cg)), in wapbl_find_log_start() 873 cgp = (struct cg *)bp->b_data; in wapbl_find_log_start() 901 cgbase(fs, cg); in wapbl_find_log_start()
|
| D | ffs_snapshot.c | 426 int error, n, len, loc, cg; 535 for (cg = 0; cg < fs->fs_ncg; cg++) { 536 error = ffs_balloc(vp, ffs_lfragtosize(fs, cgtod(fs, cg)), 660 int cg, error = 0, len, loc; 741 for (cg = 0; cg < fs->fs_ncg; cg++) { 742 if (ffs_fragstoblks(fs, cgtod(fs, cg)) > blkno) 744 *blkp++ = ffs_fragstoblks(fs, cgtod(fs, cg)); 749 for (; cg < fs->fs_ncg; cg++) 750 *blkp++ = ffs_fragstoblks(fs, cgtod(fs, cg)); 919 int cg, error = 0; [all …]
|
| D | fs.h | 460 #define ACTIVECG_SET(fs, cg) \ argument 463 setbit((fs)->fs_active, (cg)); \ 465 #define ACTIVECG_CLR(fs, cg) \ argument 468 clrbit((fs)->fs_active, (cg)); \ 470 #define ACTIVECG_ISSET(fs, cg) \ argument 471 ((fs)->fs_active != NULL && isset((fs)->fs_active, (cg))) 480 /* base cg */ (sizeof(struct cg) + sizeof(int32_t) + \ 506 struct cg { struct
|
| /netbsd/src/sbin/resize_ffs/ |
| D | resize_ffs.c | 113 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/ |
| D | pass4.c | 67 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 …]
|
| D | pass5.c | 76 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 …]
|
| D | inode.c | 716 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/ |
| D | badsect.c | 79 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/ |
| D | ffs_inode.c | 172 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/ |
| D | resrc.c | 835 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/sbin/fsck_ext2fs/ |
| D | setup.c | 108 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()
|
| /netbsd/src/usr.sbin/quotacheck/ |
| D | quotacheck.c | 323 uint32_t cg; in chkquota() local 325 struct cg *cgp; in chkquota() 419 for (cg = 0; cg < sblock.fs_ncg; cg++) { in chkquota() 420 ino = cg * sblock.fs_ipg; in chkquota() 424 bread(FFS_FSBTODB(&sblock, cgtod(&sblock, cg)), (char *)cgp, in chkquota() 436 fsname, cg, sblock.fs_ncg, in chkquota() 437 cg * 100 / sblock.fs_ncg); in chkquota()
|
| /netbsd/src/usr.sbin/makefs/ |
| D | ffs.c | 1065 struct cg *cgp; in ffs_write_inode() 1067 uint32_t cg, cgino, i; in ffs_write_inode() local 1079 cg = ino_to_cg(fs, ino); in ffs_write_inode() 1083 dp, ino, cg, cgino); in ffs_write_inode() 1085 ffs_rdfs(FFS_FSBTODB(fs, cgtod(fs, cg)), (int)fs->fs_cgsize, &sbbuf, in ffs_write_inode() 1087 cgp = (struct cg *)sbbuf; in ffs_write_inode() 1090 "ffs_write_inode: cg %d: bad magic number", cg); in ffs_write_inode() 1101 if (fs->fs_cs(fs, cg).cs_nifree == 0) in ffs_write_inode() 1104 cg, ino); in ffs_write_inode() 1108 fs->fs_cs(fs, cg).cs_nifree--; in ffs_write_inode() [all …]
|