/illumos-gate/usr/src/man/man3lgrp/ |
H A D | Makefile | 19 MANSECT= 3lgrp 21 MANFILES= lgrp_affinity_get.3lgrp \ 22 lgrp_children.3lgrp \ 23 lgrp_cookie_stale.3lgrp \ 24 lgrp_cpus.3lgrp \ 25 lgrp_fini.3lgrp \ 26 lgrp_home.3lgrp \ 27 lgrp_init.3lgrp \ 28 lgrp_latency.3lgrp \ 29 lgrp_mem_size.3lgrp \ [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | lgrp_topo.c | 119 lgrp_rsets_delete(lgrp_t *lgrp, lgrp_id_t lgrpid, int follow_parent) in lgrp_rsets_delete() argument 123 while (lgrp != NULL) { in lgrp_rsets_delete() 125 klgrpset_del(lgrp->lgrp_set[i], lgrpid); in lgrp_rsets_delete() 128 lgrp = lgrp->lgrp_parent; in lgrp_rsets_delete() 203 lgrp_rsets_replace(klgrpset_t *rset, int latency, lgrp_t *lgrp, int shift) in lgrp_rsets_replace() argument 211 cur = lgrp; in lgrp_rsets_replace() 482 lgrp_t *lgrp; in lgrp_collapse_dups() local 484 lgrp = lgrp_table[j]; in lgrp_collapse_dups() 491 if (!LGRP_EXISTS(lgrp) || in lgrp_collapse_dups() 492 lgrp->lgrp_childcnt == 0 || in lgrp_collapse_dups() [all …]
|
H A D | lgrp.c | 543 lgrp_t *lgrp; in lgrp_latency_change() local 547 lgrp = lgrp_table[i]; in lgrp_latency_change() 549 if (!LGRP_EXISTS(lgrp)) in lgrp_latency_change() 553 lgrp->lgrp_latency == oldtime) || in lgrp_latency_change() 554 (hand != LGRP_NULL_HANDLE && lgrp->lgrp_plathand == hand)) in lgrp_latency_change() 555 lgrp->lgrp_latency = (int)newtime; in lgrp_latency_change() 805 lgrp_t *lgrp; in lgrp_cpu_init() local 807 lgrp = lgrp_table[i]; in lgrp_cpu_init() 808 if (!LGRP_EXISTS(lgrp) || in lgrp_cpu_init() 809 !lgrp_rsets_member(lgrp->lgrp_set, lgrpid)) in lgrp_cpu_init() [all …]
|
/illumos-gate/usr/src/cmd/lgrpinfo/ |
H A D | lgrpinfo.pl | 245 foreach my $lgrp (@lgrp_list) { 246 my $is_leaf = $l->isleaf($lgrp); 249 my $prefix = ($lgrp == $root) ? 251 printf gettext("lgroup %d (%s):"), $lgrp, $prefix; 255 my @children = $l->children($lgrp); 260 my @parents = $l->parents($lgrp); 267 $cpus = lgrp_showcpus($lgrp, LGRP_CONTENT_HIERARCHY); 270 $memstr = lgrp_showmemory($lgrp, LGRP_CONTENT_HIERARCHY); 273 $rsrc = lgrp_showresources($lgrp); 281 print "\n\t$loads->{$lgrp}" if defined ($loads->{$lgrp}); [all …]
|
/illumos-gate/usr/src/pkg/manifests/ |
H A D | system-library.man3lgrp.inc | 17 file path=usr/share/man/man3lgrp/lgrp_affinity_get.3lgrp 18 link path=usr/share/man/man3lgrp/lgrp_affinity_set.3lgrp \ 19 target=lgrp_affinity_get.3lgrp 20 file path=usr/share/man/man3lgrp/lgrp_children.3lgrp 21 file path=usr/share/man/man3lgrp/lgrp_cookie_stale.3lgrp 22 file path=usr/share/man/man3lgrp/lgrp_cpus.3lgrp 23 file path=usr/share/man/man3lgrp/lgrp_fini.3lgrp 24 file path=usr/share/man/man3lgrp/lgrp_home.3lgrp 25 file path=usr/share/man/man3lgrp/lgrp_init.3lgrp 26 file path=usr/share/man/man3lgrp/lgrp_latency.3lgrp [all …]
|
/illumos-gate/usr/src/lib/liblgrp/common/ |
H A D | lgrp.c | 52 static int lgrp_cpus_hier(lgrp_snapshot_header_t *snap, lgrp_id_t lgrp, 82 lgrp_affinity_get(idtype_t idtype, id_t id, lgrp_id_t lgrp) in lgrp_affinity_get() argument 88 args.lgrp = lgrp; in lgrp_affinity_get() 97 lgrp_affinity_set(idtype_t idtype, id_t id, lgrp_id_t lgrp, in lgrp_affinity_set() argument 104 args.lgrp = lgrp; in lgrp_affinity_set() 210 prune_child(lgrp_snapshot_header_t *snap, lgrp_id_t lgrp) in prune_child() argument 216 if (snap == NULL || lgrp < 0 || lgrp > snap->ss_nlgrps_max) in prune_child() 219 lgrp_info = &snap->ss_info[lgrp]; in prune_child() 231 BT_CLEAR(lgrp_info->info_children, lgrp); in prune_child() 240 prune_cpus(lgrp_snapshot_header_t *snap, lgrp_id_t lgrp, processorid_t *cpus, in prune_cpus() argument [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | lgrp.c | 102 lgrp_t lgrp; in lgrp_cpulist_walk_init() local 106 if (mdb_vread(&lgrp, sizeof (struct lgrp), wsp->walk_addr) == -1) { in lgrp_cpulist_walk_init() 111 lcw->lcw_firstcpu = (uintptr_t)lgrp.lgrp_cpu; in lgrp_cpulist_walk_init() 112 lcw->lcw_cpusleft = lgrp.lgrp_cpucnt; in lgrp_cpulist_walk_init() 223 lgrp(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv) in lgrp() function 225 lgrp_t lgrp; in lgrp() local 299 if (mdb_vread(&lgrp, sizeof (struct lgrp), addr) == -1) { in lgrp() 307 if ((lgrp.lgrp_id == LGRP_NONE) && in lgrp() 317 parent != (uintptr_t)lgrp.lgrp_parent) in lgrp() 319 if ((s_index != NULL) && index != (uintptr_t)lgrp.lgrp_id) in lgrp() [all …]
|
H A D | lgrp.h | 49 extern int lgrp(uintptr_t, uint_t, int, const mdb_arg_t *);
|
H A D | Makefile.files | 62 lgrp.c \
|
/illumos-gate/usr/src/cmd/perl/contrib/Sun/Solaris/Lgrp/ |
H A D | Lgrp.xs | 88 #define LGRP_RESOURCES(c, lgrp, type) \ argument 99 #define LGRP_RESOURCES(c, lgrp, type) { \ argument 104 nr = lgrp_resources(c, lgrp, NULL, 0, type); \ 115 nr = lgrp_resources(c, lgrp, lgrps, nr, type); \ 209 lgrp_affinity_get(idtype, id, lgrp) 212 lgrp_id_t lgrp; variable 217 lgrp_affinity_set(idtype, id, lgrp, affinity) 220 lgrp_id_t lgrp; 252 lgrp_mem_size(cookie, lgrp, type, content) 254 lgrp_id_t lgrp [all …]
|
/illumos-gate/usr/src/uts/common/disp/ |
H A D | cmt.c | 509 cmt_lgrp_t *lgrp; in pg_cmt_cpu_init() local 622 if ((lgrp = pg_cmt_find_lgrp(lgrp_handle)) == NULL) in pg_cmt_cpu_init() 623 lgrp = pg_cmt_lgrp_create(lgrp_handle); in pg_cmt_cpu_init() 699 ASSERT(pg->cmt_siblings == &lgrp->cl_pgs || in pg_cmt_cpu_init() 708 pg->cmt_siblings = &lgrp->cl_pgs; in pg_cmt_cpu_init() 709 children = ++lgrp->cl_npgs; in pg_cmt_cpu_init() 710 if (cmt_root != lgrp) in pg_cmt_cpu_init() 753 cpu0_lgrp = lgrp; in pg_cmt_cpu_init() 775 cmt_lgrp_t *lgrp; in pg_cmt_cpu_fini() local 790 lgrp = pg_cmt_find_lgrp(lgrp_handle); in pg_cmt_cpu_fini() [all …]
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | lgrpsys.c | 62 lgrp_t *lgrp; in meminfo() local 180 lgrp = lgrp_pfn_to_lgrp(pfn); in meminfo() 181 if (lgrp) { in meminfo() 182 out_array[i] = lgrp->lgrp_id; in meminfo() 225 lgrp = lgrp_pfn_to_lgrp(pfn); in meminfo() 226 if (lgrp) { in meminfo() 228 lgrp->lgrp_id; in meminfo() 339 lgrp_affinity_get_thread(proc_t *p, id_t lwpid, lgrp_id_t lgrp) in lgrp_affinity_get_thread() argument 370 aff = t->t_lgrp_affinity[lgrp]; in lgrp_affinity_get_thread() 393 lgrp_id_t lgrp; in lgrp_affinity_get() local [all …]
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | lgrp_user.h | 96 lgrp_id_t lgrp; /* lgroup */ member 248 lgrp_affinity_t lgrp_affinity_get(idtype_t idtype, id_t id, lgrp_id_t lgrp); 250 int lgrp_affinity_set(idtype_t idtype, id_t id, lgrp_id_t lgrp, 253 int lgrp_children(lgrp_cookie_t cookie, lgrp_id_t lgrp, 258 int lgrp_cpus(lgrp_cookie_t cookie, lgrp_id_t lgrp, 272 lgrp_mem_size_t lgrp_mem_size(lgrp_cookie_t cookie, lgrp_id_t lgrp, 277 int lgrp_parents(lgrp_cookie_t cookie, lgrp_id_t lgrp, 280 int lgrp_resources(lgrp_cookie_t cookie, lgrp_id_t lgrp,
|
H A D | lgrp.h | 228 typedef struct lgrp { struct 233 struct lgrp *lgrp_parent; /* parent lgroup */ argument 479 #define LGRP_EXISTS(lgrp) \ argument 480 (lgrp != NULL && lgrp->lgrp_id != LGRP_NONE) 485 #define LGRP_CONTAINS_CPU(lgrp, cpu) \ argument 486 (klgrpset_ismember(lgrp->lgrp_set[LGRP_RSRC_CPU], \ 492 #define LGRP_MNODE_COOKIE_INIT(c, lgrp, scope) \ argument 495 (&(c))->lmc_lgrp = lgrp; \ 496 (&(c))->lmc_nodes = lgrp->lgrp_mnodes; \ 497 (&(c))->lmc_cnt = lgrp->lgrp_nmnodes; \
|
/illumos-gate/usr/src/cmd/perl/contrib/Sun/Solaris/Lgrp/pod/ |
H A D | Lgrp.pod | 49 lgrp_affinity_set(P_PID, $pid, $lgrp, 51 $l->affinity_set(P_PID, $pid, $lgrp, 54 my $affinity = lgrp_affinity_get(P_PID, $pid, $lgrp); 55 $affinity = $l->affinity_get(P_PID, $pid, $lgrp); 66 my @children = lgrp_children($cookie, $lgrp); 67 @children = l->children($lgrp); 69 my @parents = lgrp_parents($cookie, $lgrp); 70 @parents = l->parents($lgrp); 75 @lgrps = lgrp_lgrps($cookie, $lgrp); 76 @lgrps = l->lgrps($lgrp); [all …]
|
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_sam.c | 320 smb_group_t lgrp; in smb_sam_usr_groups() local 332 while (smb_lgrp_iterate(&gi, &lgrp) == SMB_LGRP_SUCCESS) { in smb_sam_usr_groups() 334 if (smb_lgrp_is_member(&lgrp, user_sid)) in smb_sam_usr_groups() 338 if (smb_lgrp_is_member(&lgrp, ids->i_sid)) { in smb_sam_usr_groups() 346 smb_lgrp_free(&lgrp); in smb_sam_usr_groups() 383 while (smb_lgrp_iterate(&gi, &lgrp) == SMB_LGRP_SUCCESS) { in smb_sam_usr_groups() 385 if (smb_lgrp_is_member(&lgrp, user_sid)) in smb_sam_usr_groups() 389 if (smb_lgrp_is_member(&lgrp, ids->i_sid)) { in smb_sam_usr_groups() 395 new_ids->i_sid = smb_sid_dup(lgrp.sg_id.gs_sid); in smb_sam_usr_groups() 397 smb_lgrp_free(&lgrp); in smb_sam_usr_groups() [all …]
|
/illumos-gate/usr/src/cmd/ptools/pmap/ |
H A D | pmap.c | 730 lgrp_id_t lgrp; in look_map() local 799 segment_end, pmp->pr_pagesize, &lgrp); in look_map() 806 lgrp2str(lgrp), lname); in look_map() 865 lgrp_id_t lgrp; in look_smap() local 941 segment_end, pmp->pr_pagesize, &lgrp); in look_smap() 946 lgrp2str(lgrp), lname); in look_smap() 1303 lgrp2str(lgrp_id_t lgrp) in lgrp2str() argument 1308 (void) sprintf(str, lgrp == LGRP_NONE ? " -" : "%4d", lgrp); in lgrp2str() 1596 lgrp_id_t lgrp; /* Lgroup of the region start */ in get_contiguous_region() local 1601 curr_lgrp = lgrp = addr_to_lgrp(mchunk, vaddr, &psz); in get_contiguous_region() [all …]
|
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | sched.d | 77 inline lgrp_id_t lgrp = curcpu->cpu_lgrp; variable 78 #pragma D attributes Stable/Stable/Common lgrp 79 #pragma D binding "1.0" lgrp
|
/illumos-gate/usr/src/cmd/perl/contrib/Sun/Solaris/Lgrp/t/ |
H A D | Lgrp_api.t | 146 my $lgrp = ($home == $root ? $leaf : $root); 148 $c->affinity_set(P_PID, P_MYID, $lgrp, LGRP_AFF_STRONG) or 152 is($home, $lgrp, 'Home lgrp should change after strong affinity is set'); 154 $c->affinity_set(P_PID, P_MYID, $lgrp, LGRP_AFF_NONE) or
|
/illumos-gate/usr/src/uts/sun4/os/ |
H A D | lgrpplat.c | 346 lgrp_t *lgrp; in lgrp_plat_alloc() local 348 lgrp = &lgrp_space[nlgrps_alloc++]; in lgrp_plat_alloc() 351 return (lgrp); in lgrp_plat_alloc()
|
/illumos-gate/usr/src/cmd/ptools/plgrp/ |
H A D | plgrp.c | 174 #define LGRP_VALID(lgrp) (lgrps_bitmap[lgrp] != 0) argument 663 lgrp_id_t lgrp) in Plgrp_affinity_get() argument 681 args.lgrp = lgrp; in Plgrp_affinity_get() 730 lgrp_id_t lgrp, lgrp_affinity_t aff) in Plgrp_affinity_set() argument 748 args.lgrp = lgrp; in Plgrp_affinity_set() 856 lgrp_id_t lgrp) in Plgrp_home_set() argument 858 return (Plgrp_affinity_set(Ph, idtype, id, lgrp, in Plgrp_home_set()
|
/illumos-gate/usr/src/uts/common/vm/ |
H A D | page.h | 681 struct lgrp; 735 caddr_t, size_t, uint_t, struct lgrp *); 738 caddr_t, uint_t, struct lgrp *); 837 int page_relocate(page_t **, page_t **, int, int, spgcnt_t *, struct lgrp *); 838 int do_page_relocate(page_t **, page_t **, int, spgcnt_t *, struct lgrp *); 839 page_t *page_get_replacement_page(page_t *, struct lgrp *, uint_t);
|
H A D | vm_pagelist.c | 3687 caddr_t vaddr, size_t size, uint_t flags, struct lgrp *lgrp) in page_get_freelist() argument 3704 if (!LGRP_EXISTS(lgrp)) in page_get_freelist() 3705 lgrp = lgrp_home_lgrp(); in page_get_freelist() 3748 LGRP_MNODE_COOKIE_INIT(lgrp_cookie, lgrp, LGRP_SRCH_LOCAL); in page_get_freelist() 3754 lgrp_t *, lgrp, in page_get_freelist() 3775 lgrp_stat_add(lgrp->lgrp_id, LGRP_NUM_ALLOC_FAIL, 1); in page_get_freelist() 3786 lgrp_t *, lgrp, in page_get_freelist() 3838 caddr_t vaddr, uint_t flags, struct lgrp *lgrp) in page_get_cachelist() argument 3852 if (!LGRP_EXISTS(lgrp)) in page_get_cachelist() 3853 lgrp = lgrp_home_lgrp(); in page_get_cachelist() [all …]
|
/illumos-gate/usr/src/cmd/pools/poold/libjlgrp/ |
H A D | jlgrp.c | 108 jobject lgrp; in Java_com_sun_solaris_service_locality_LocalityDomain_jl_1root() local 119 lgrp = (*env)->NewObject(env, clazz, mid, obj, root, NULL); in Java_com_sun_solaris_service_locality_LocalityDomain_jl_1root() 120 return (lgrp); in Java_com_sun_solaris_service_locality_LocalityDomain_jl_1root()
|
/illumos-gate/usr/src/lib/liblgrp/ |
H A D | Makefile.com | 29 OBJECTS= lgrp.o
|