/illumos-gate/usr/src/cmd/pools/poold/libjlgrp/ |
H A D | jlgrp.c | 65 * Obtain an lgrp cookie for an lgrp snapshot which contains details 111 jobject lgrp; local 122 lgrp = (*env)->NewObject(env, clazz, mid, obj, root, NULL); 123 return (lgrp);
|
/illumos-gate/usr/src/uts/sun4/os/ |
H A D | lgrpplat.c | 28 #include <sys/lgrp.h> 60 * Allocate lgrp and lgrp stat arrays statically. 346 lgrp_t *lgrp; local 348 lgrp = &lgrp_space[nlgrps_alloc++]; 351 return (lgrp);
|
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_sam.c | 318 smb_group_t lgrp; local 330 while (smb_lgrp_iterate(&gi, &lgrp) == SMB_LGRP_SUCCESS) { 332 if (smb_lgrp_is_member(&lgrp, user_sid)) 336 if (smb_lgrp_is_member(&lgrp, ids->i_sid)) { 341 /* Careful: only count lgrp once */ 344 smb_lgrp_free(&lgrp); 381 while (smb_lgrp_iterate(&gi, &lgrp) == SMB_LGRP_SUCCESS) { 383 if (smb_lgrp_is_member(&lgrp, user_sid)) 387 if (smb_lgrp_is_member(&lgrp, ids->i_sid)) { 393 new_ids->i_sid = smb_sid_dup(lgrp [all...] |
/illumos-gate/usr/src/lib/liblgrp/common/ |
H A D | lgrp.c | 55 static int lgrp_cpus_hier(lgrp_snapshot_header_t *snap, lgrp_id_t lgrp, 85 lgrp_affinity_get(idtype_t idtype, id_t id, lgrp_id_t lgrp) argument 91 args.lgrp = lgrp; 100 lgrp_affinity_set(idtype_t idtype, id_t id, lgrp_id_t lgrp, argument 107 args.lgrp = lgrp; 213 prune_child(lgrp_snapshot_header_t *snap, lgrp_id_t lgrp) argument 219 if (snap == NULL || lgrp < 0 || lgrp > sna 243 prune_cpus(lgrp_snapshot_header_t *snap, lgrp_id_t lgrp, processorid_t *cpus, int ncpus) argument 611 lgrp_parents(lgrp_cookie_t cookie, lgrp_id_t lgrp, lgrp_id_t *parents, uint_t count) argument 688 lgrp_children(lgrp_cookie_t cookie, lgrp_id_t lgrp, lgrp_id_t *children, uint_t count) argument 762 lgrp_cpus_hier(lgrp_snapshot_header_t *snap, lgrp_id_t lgrp, processorid_t **cpuids, uint_t *count) argument 834 lgrp_cpus(lgrp_cookie_t cookie, lgrp_id_t lgrp, processorid_t *cpuids, uint_t count, lgrp_content_t content) argument 911 lgrp_mem_size(lgrp_cookie_t cookie, lgrp_id_t lgrp, lgrp_mem_size_flag_t type, lgrp_content_t content) argument 1021 lgrp_resources(lgrp_cookie_t cookie, lgrp_id_t lgrp, lgrp_id_t *lgrps, uint_t count, lgrp_rsrc_t type) argument [all...] |
/illumos-gate/usr/src/uts/common/sys/ |
H A D | lgrp_user.h | 42 #include <sys/lgrp.h> 95 lgrp_id_t lgrp; /* lgroup */ member in struct:lgrp_affinity_args 247 lgrp_affinity_t lgrp_affinity_get(idtype_t idtype, id_t id, lgrp_id_t lgrp); 249 int lgrp_affinity_set(idtype_t idtype, id_t id, lgrp_id_t lgrp, 252 int lgrp_children(lgrp_cookie_t cookie, lgrp_id_t lgrp, 257 int lgrp_cpus(lgrp_cookie_t cookie, lgrp_id_t lgrp, 271 lgrp_mem_size_t lgrp_mem_size(lgrp_cookie_t cookie, lgrp_id_t lgrp, 276 int lgrp_parents(lgrp_cookie_t cookie, lgrp_id_t lgrp, 279 int lgrp_resources(lgrp_cookie_t cookie, lgrp_id_t lgrp,
|
H A D | lgrp.h | 56 typedef uintptr_t lgrp_handle_t; /* lgrp handle */ 135 * Define all of the statistics that are kept for lgrp kstats, 140 LGRP_NUM_MIGR, /* # migrations away from this lgrp */ 141 LGRP_NUM_ALLOC_FAIL, /* # times alloc fails for chosen lgrp */ 142 LGRP_PM_SRC_PGS, /* # pages migrated from this lgrp */ 143 LGRP_PM_DEST_PGS, /* # pages migrated to this lgrp */ 144 LGRP_PM_FAIL_ALLOC_PGS, /* # pages failed to migrate to this lgrp */ 145 LGRP_PM_FAIL_LOCK_PGS, /* # pages failed to migrate from this lgrp */ 146 LGRP_PMM_PGS, /* # pages marked to migrate from this lgrp */ 147 LGRP_PMM_FAIL_PGS, /* # pages marked to migrate from this lgrp */ 226 typedef struct lgrp { struct [all...] |
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | lgrp.c | 29 #include "lgrp.h" 33 #include <sys/lgrp.h> 104 lgrp_t lgrp; local 108 if (mdb_vread(&lgrp, sizeof (struct lgrp), wsp->walk_addr) == -1) { 109 mdb_warn("couldn't read 'lgrp' at %p", wsp->walk_addr); 113 lcw->lcw_firstcpu = (uintptr_t)lgrp.lgrp_cpu; 114 lcw->lcw_cpusleft = lgrp.lgrp_cpucnt; 176 * each lgrp by processor set. 225 lgrp(uintptr_ function 227 lgrp_t lgrp; local 481 lgrp_t lgrp; local 540 lgrp_t lgrp; local 690 lgrp_t lgrp; local [all...] |
H A D | gcore.c | 47 #include <sys/lgrp.h> 1016 mdb_lpl_t lgrp; local 1059 if (mdb_ctf_vread(&lgrp, "lpl_t", "mdb_lpl_t", t->t_lpl, 0) == -1) { 1062 psp->pr_lgrp = lgrp.lpl_lgrpid;
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | lgrp_topo.c | 30 #include <sys/lgrp.h> 119 lgrp_rsets_delete(lgrp_t *lgrp, lgrp_id_t lgrpid, int follow_parent) argument 123 while (lgrp != NULL) { 125 klgrpset_del(lgrp->lgrp_set[i], lgrpid); 128 lgrp = lgrp->lgrp_parent; 203 lgrp_rsets_replace(klgrpset_t *rset, int latency, lgrp_t *lgrp, int shift) argument 211 cur = lgrp; 306 " lgrp %d at 0x%p\n", 386 "lgrp 482 lgrp_t *lgrp; local 718 lgrp_t *lgrp; local 807 lgrp_topo_height(lgrp_t *lgrp) argument 1196 lgrp_t *lgrp; local 1253 lgrp_t *lgrp; local 1345 lgrp_t *lgrp; local 1464 lgrp_t *lgrp; local 1538 lgrp_print(lgrp_t *lgrp) argument 1581 lgrp_t *lgrp; local [all...] |
H A D | lgrp.c | 69 #include <sys/lgrp.h> 111 extern struct lgrp_stats lgrp_stats[]; /* table of per-lgrp stats */ 138 * During system bootstrap cp_default does not contain the list of lgrp load 147 * The lpl_bootstrap_list is maintained by the code in lgrp.c. Every other 152 * lgrp will use lpl_bootstrap as a default lpl. This is necessary because 164 * an lgrp. lgrp_mem_choose() uses this macro to detect the case where 165 * a thread is trying to allocate memory close to a CPU that has no lgrp. 422 * true when lgrp initialization has been completed. 427 * True when lgrp topology is constructed. 474 * Notify the PG subsystem that the CPU's lgrp 539 lgrp_t *lgrp; local 801 lgrp_t *lgrp; local 915 lgrp_destroy(lgrp_t *lgrp) argument 1080 lgrp_t *lgrp; local 1107 lgrp_t *lgrp; local 1334 lgrp_t *lgrp; local 1422 lgrp_t *lgrp = lgrp_table[i]; local 1492 lgrp_t *lgrp; local 1514 lgrp_t *lgrp; local 1541 lgrp_t *lgrp; local 1565 lgrp_id_t lgrp; local 1596 lgrp_t *lgrp; local 1616 lgrp_t *lgrp; local 1649 lgrp_sum_loadavgs(lgrp_t *lgrp) argument 1733 lgrp_t *lgrp; local 2022 lpl_init(lpl_t *lpl, lpl_t *lpl_leaf, lgrp_t *lgrp) argument 2076 lgrp_t *lgrp; local 3630 lgrp_t *lgrp; local 3880 lgrp_t *lgrp; local [all...] |
/illumos-gate/usr/src/cmd/ptools/plgrp/ |
H A D | plgrp.c | 174 * Macro LGRP_VALID returns true when lgrp is present in the system. 176 #define LGRP_VALID(lgrp) (lgrps_bitmap[lgrp] != 0) 665 lgrp_id_t lgrp) 683 args.lgrp = lgrp; 732 lgrp_id_t lgrp, lgrp_affinity_t aff) 750 args.lgrp = lgrp; 858 lgrp_id_t lgrp) 664 Plgrp_affinity_get(struct ps_prochandle *Ph, idtype_t idtype, id_t id, lgrp_id_t lgrp) argument 731 Plgrp_affinity_set(struct ps_prochandle *Ph, idtype_t idtype, id_t id, lgrp_id_t lgrp, lgrp_affinity_t aff) argument 857 Plgrp_home_set(struct ps_prochandle *Ph, idtype_t idtype, id_t id, lgrp_id_t lgrp) argument [all...] |
/illumos-gate/usr/src/uts/common/disp/ |
H A D | cmt.c | 39 #include <sys/lgrp.h> 87 static cmt_lgrp_t *cpu0_lgrp = NULL; /* boot CPU's initial lgrp */ 509 cmt_lgrp_t *lgrp; local 619 * Find the lgrp that encapsulates this CPU's CMT hierarchy 622 if ((lgrp = pg_cmt_find_lgrp(lgrp_handle)) == NULL) 623 lgrp = pg_cmt_lgrp_create(lgrp_handle); 699 ASSERT(pg->cmt_siblings == &lgrp->cl_pgs || 708 pg->cmt_siblings = &lgrp->cl_pgs; 709 children = ++lgrp->cl_npgs; 710 if (cmt_root != lgrp) 775 cmt_lgrp_t *lgrp; local 1216 cmt_lgrp_t *lgrp; local 1235 cmt_lgrp_t *lgrp; local 1747 lgrp_handle_t lgrp; local [all...] |
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | lgrpsys.c | 38 #include <sys/lgrp.h> 62 lgrp_t *lgrp; local 180 lgrp = lgrp_pfn_to_lgrp(pfn); 181 if (lgrp) { 182 out_array[i] = lgrp->lgrp_id; 225 lgrp = lgrp_pfn_to_lgrp(pfn); 226 if (lgrp) { 228 lgrp->lgrp_id; 339 lgrp_affinity_get_thread(proc_t *p, id_t lwpid, lgrp_id_t lgrp) argument 370 aff = t->t_lgrp_affinity[lgrp]; 393 lgrp_id_t lgrp; local 586 lgrp_affinity_set_thread(kthread_t *t, lgrp_id_t lgrp, lgrp_affinity_t aff, lgrp_affinity_t **aff_buf) argument 652 lgrp_affinity_set_proc(proc_t *p, lgrp_id_t lgrp, lgrp_affinity_t aff, lgrp_affinity_t **aff_buf_array) argument 709 lgrp_id_t lgrp; local 1431 lgrp_t *lgrp; local [all...] |
/illumos-gate/usr/src/cmd/ptools/pmap/ |
H A D | pmap.c | 692 lgrp_id_t lgrp; local 761 segment_end, pmp->pr_pagesize, &lgrp); 768 lgrp2str(lgrp), lname); 830 lgrp_id_t lgrp; local 906 segment_end, pmp->pr_pagesize, &lgrp); 911 lgrp2str(lgrp), lname); 1276 lgrp2str(lgrp_id_t lgrp) argument 1281 (void) sprintf(str, lgrp == LGRP_NONE ? " -" : "%4d", lgrp); 1569 lgrp_id_t lgrp; /* Lgrou local 1614 lgrp_id_t lgrp = LGRP_NONE; local [all...] |
/illumos-gate/usr/src/uts/common/vm/ |
H A D | vm_anon.c | 111 #include <sys/lgrp.h> 2865 lgrp_t *lgrp; local 2970 lgrp = lgrp_mem_choose(seg, addr, pgsz); 2974 addr, pgsz, 0, lgrp);
|
H A D | vm_pagelist.c | 60 #include <sys/lgrp.h> 3733 caddr_t vaddr, size_t size, uint_t flags, struct lgrp *lgrp) 3747 * If we aren't passed a specific lgroup, or passed a freed lgrp 3750 if (!LGRP_EXISTS(lgrp)) 3751 lgrp = lgrp_home_lgrp(); 3794 LGRP_MNODE_COOKIE_INIT(lgrp_cookie, lgrp, LGRP_SRCH_LOCAL); 3800 lgrp_t *, lgrp, 3821 lgrp_stat_add(lgrp->lgrp_id, LGRP_NUM_ALLOC_FAIL, 1); 3832 lgrp_t *, lgrp, 3732 page_get_freelist(struct vnode *vp, u_offset_t off, struct seg *seg, caddr_t vaddr, size_t size, uint_t flags, struct lgrp *lgrp) argument 3883 page_get_cachelist(struct vnode *vp, u_offset_t off, struct seg *seg, caddr_t vaddr, uint_t flags, struct lgrp *lgrp) argument 4148 lgrp_t *lgrp; local [all...] |
H A D | vm_page.c | 69 #include <sys/lgrp.h> 1760 lgrp_t *lgrp; local 1846 lgrp = lgrp_mem_choose(seg, vaddr, PAGESIZE); 1850 flags, lgrp); 1853 flags, lgrp); 1992 lgrp_t *lgrp; local 2036 lgrp = lgrp_mem_choose(seg, addr, pgsz); 2039 pgflags, lgrp); 2042 0, lgrp); 2046 0, lgrp); 2133 lgrp_t *lgrp; local 2261 lgrp_t *lgrp; local 4744 do_page_relocate( page_t **target, page_t **replacement, int grouplock, spgcnt_t *nrelocp, lgrp_t *lgrp) argument 4965 page_relocate( page_t **target, page_t **replacement, int grouplock, int freetarget, spgcnt_t *nrelocp, lgrp_t *lgrp) argument [all...] |
/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | lgrpplat.c | 125 * be continuous with other memory connected to the same lgrp node. In other 126 * words, memory addresses may get interleaved among lgrp nodes after memory 128 * relationship between lgrp node and memory node from 1:1 map to 1:N map, 129 * that means there may be multiple memory nodes associated with a lgrp node 140 * 3) For hot-added memory, the relationship between lgrp ID and memnode ID have 163 #include <sys/lgrp.h> 338 * Whether lgrp topology has been flattened to 2 levels. 743 lgrp_t *lgrp; local 745 lgrp = &lgrp_space[nlgrps_alloc++]; 748 return (lgrp); [all...] |
/illumos-gate/usr/src/uts/i86pc/vm/ |
H A D | vm_machdep.c | 51 #include <sys/lgrp.h> 3317 size_t size, uint_t flags, ddi_dma_attr_t *dma_attr, lgrp_t *lgrp) 3340 if (!LGRP_EXISTS(lgrp)) 3341 lgrp = lgrp_home_lgrp(); 3390 LGRP_MNODE_COOKIE_INIT(lgrp_cookie, lgrp, LGRP_SRCH_HIER); 3416 lgrp_stat_add(lgrp->lgrp_id, LGRP_NUM_ALLOC_FAIL, 1); 3316 page_get_anylist(struct vnode *vp, u_offset_t off, struct as *as, caddr_t vaddr, size_t size, uint_t flags, ddi_dma_attr_t *dma_attr, lgrp_t *lgrp) argument
|