/titanic_44/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 …]
|
/titanic_44/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 | 539 lgrp_t *lgrp; in lgrp_latency_change() local 543 lgrp = lgrp_table[i]; in lgrp_latency_change() 545 if (!LGRP_EXISTS(lgrp)) in lgrp_latency_change() 549 lgrp->lgrp_latency == oldtime) || in lgrp_latency_change() 550 (hand != LGRP_NULL_HANDLE && lgrp->lgrp_plathand == hand)) in lgrp_latency_change() 551 lgrp->lgrp_latency = (int)newtime; in lgrp_latency_change() 801 lgrp_t *lgrp; in lgrp_cpu_init() local 803 lgrp = lgrp_table[i]; in lgrp_cpu_init() 804 if (!LGRP_EXISTS(lgrp) || in lgrp_cpu_init() 805 !lgrp_rsets_member(lgrp->lgrp_set, lgrpid)) in lgrp_cpu_init() [all …]
|
/titanic_44/usr/src/pkg/manifests/ |
H A D | system-library.man3lgrp.inc | 17 file path=usr/share/man/man3lgrp/lgrp_affinity_get.3lgrp 18 file path=usr/share/man/man3lgrp/lgrp_children.3lgrp 19 file path=usr/share/man/man3lgrp/lgrp_cookie_stale.3lgrp 20 file path=usr/share/man/man3lgrp/lgrp_cpus.3lgrp 21 file path=usr/share/man/man3lgrp/lgrp_fini.3lgrp 22 file path=usr/share/man/man3lgrp/lgrp_home.3lgrp 23 file path=usr/share/man/man3lgrp/lgrp_init.3lgrp 24 file path=usr/share/man/man3lgrp/lgrp_latency.3lgrp 25 file path=usr/share/man/man3lgrp/lgrp_mem_size.3lgrp 26 file path=usr/share/man/man3lgrp/lgrp_nlgrps.3lgrp [all …]
|
/titanic_44/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 …]
|
/titanic_44/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) in lgrp_affinity_get() argument 91 args.lgrp = lgrp; in lgrp_affinity_get() 100 lgrp_affinity_set(idtype_t idtype, id_t id, lgrp_id_t lgrp, in lgrp_affinity_set() argument 107 args.lgrp = lgrp; in lgrp_affinity_set() 213 prune_child(lgrp_snapshot_header_t *snap, lgrp_id_t lgrp) in prune_child() argument 219 if (snap == NULL || lgrp < 0 || lgrp > snap->ss_nlgrps_max) in prune_child() 222 lgrp_info = &snap->ss_info[lgrp]; in prune_child() 234 BT_CLEAR(lgrp_info->info_children, lgrp); in prune_child() 243 prune_cpus(lgrp_snapshot_header_t *snap, lgrp_id_t lgrp, processorid_t *cpus, in prune_cpus() argument [all …]
|
/titanic_44/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | lgrp.c | 104 lgrp_t lgrp; in lgrp_cpulist_walk_init() local 108 if (mdb_vread(&lgrp, sizeof (struct lgrp), wsp->walk_addr) == -1) { in lgrp_cpulist_walk_init() 113 lcw->lcw_firstcpu = (uintptr_t)lgrp.lgrp_cpu; in lgrp_cpulist_walk_init() 114 lcw->lcw_cpusleft = lgrp.lgrp_cpucnt; in lgrp_cpulist_walk_init() 225 lgrp(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv) in lgrp() function 227 lgrp_t lgrp; in lgrp() local 301 if (mdb_vread(&lgrp, sizeof (struct lgrp), addr) == -1) { in lgrp() 309 if ((lgrp.lgrp_id == LGRP_NONE) && in lgrp() 319 parent != (uintptr_t)lgrp.lgrp_parent) in lgrp() 321 if ((s_index != NULL) && index != (uintptr_t)lgrp.lgrp_id) in lgrp() [all …]
|
H A D | lgrp.h | 51 extern int lgrp(uintptr_t, uint_t, int, const mdb_arg_t *);
|
H A D | Makefile.files | 61 lgrp.c \
|
/titanic_44/usr/src/cmd/perl/contrib/Sun/Solaris/Lgrp/ |
H A D | Lgrp.xs | 90 #define LGRP_RESOURCES(c, lgrp, type) \ argument 101 #define LGRP_RESOURCES(c, lgrp, type) { \ argument 106 nr = lgrp_resources(c, lgrp, NULL, 0, type); \ 117 nr = lgrp_resources(c, lgrp, lgrps, nr, type); \ 211 lgrp_affinity_get(idtype, id, lgrp) 214 lgrp_id_t lgrp; variable 219 lgrp_affinity_set(idtype, id, lgrp, affinity) 222 lgrp_id_t lgrp; 254 lgrp_mem_size(cookie, lgrp, type, content) 256 lgrp_id_t lgrp [all …]
|
/titanic_44/usr/src/uts/common/sys/ |
H A D | lgrp_user.h | 95 lgrp_id_t lgrp; /* lgroup */ member 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 | 226 typedef struct lgrp { struct 231 struct lgrp *lgrp_parent; /* parent lgroup */ argument 477 #define LGRP_EXISTS(lgrp) \ argument 478 (lgrp != NULL && lgrp->lgrp_id != LGRP_NONE) 483 #define LGRP_CONTAINS_CPU(lgrp, cpu) \ argument 484 (klgrpset_ismember(lgrp->lgrp_set[LGRP_RSRC_CPU], \ 490 #define LGRP_MNODE_COOKIE_INIT(c, lgrp, scope) \ argument 493 (&(c))->lmc_lgrp = lgrp; \ 494 (&(c))->lmc_nodes = lgrp->lgrp_mnodes; \ 495 (&(c))->lmc_cnt = lgrp->lgrp_nmnodes; \
|
/titanic_44/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 …]
|
/titanic_44/usr/src/uts/common/syscall/ |
H A D | lgrpsys.c | 62 lgrp_t *lgrp; in meminfo() local 162 lgrp = lgrp_pfn_to_lgrp(pfn); in meminfo() 163 if (lgrp) { in meminfo() 164 out_array[i] = lgrp->lgrp_id; in meminfo() 207 lgrp = lgrp_pfn_to_lgrp(pfn); in meminfo() 208 if (lgrp) { in meminfo() 210 lgrp->lgrp_id; in meminfo() 321 lgrp_affinity_get_thread(proc_t *p, id_t lwpid, lgrp_id_t lgrp) in lgrp_affinity_get_thread() argument 352 aff = t->t_lgrp_affinity[lgrp]; in lgrp_affinity_get_thread() 375 lgrp_id_t lgrp; in lgrp_affinity_get() local [all …]
|
/titanic_44/usr/src/cmd/perl/contrib/Sun/Solaris/Lgrp/pod/ |
H A D | Lgrp.pod | 51 lgrp_affinity_set(P_PID, $pid, $lgrp, 53 $l->affinity_set(P_PID, $pid, $lgrp, 56 my $affinity = lgrp_affinity_get(P_PID, $pid, $lgrp); 57 $affinity = $l->affinity_get(P_PID, $pid, $lgrp); 68 my @children = lgrp_children($cookie, $lgrp); 69 @children = l->children($lgrp); 71 my @parents = lgrp_parents($cookie, $lgrp); 72 @parents = l->parents($lgrp); 77 @lgrps = lgrp_lgrps($cookie, $lgrp); 78 @lgrps = l->lgrps($lgrp); [all …]
|
/titanic_44/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_sam.c | 318 smb_group_t lgrp; in smb_sam_usr_groups() local 330 while (smb_lgrp_iterate(&gi, &lgrp) == SMB_LGRP_SUCCESS) { in smb_sam_usr_groups() 332 if (smb_lgrp_is_member(&lgrp, user_sid)) in smb_sam_usr_groups() 336 if (smb_lgrp_is_member(&lgrp, ids->i_sid)) { in smb_sam_usr_groups() 344 smb_lgrp_free(&lgrp); in smb_sam_usr_groups() 381 while (smb_lgrp_iterate(&gi, &lgrp) == SMB_LGRP_SUCCESS) { in smb_sam_usr_groups() 383 if (smb_lgrp_is_member(&lgrp, user_sid)) in smb_sam_usr_groups() 387 if (smb_lgrp_is_member(&lgrp, ids->i_sid)) { in smb_sam_usr_groups() 393 new_ids->i_sid = smb_sid_dup(lgrp.sg_id.gs_sid); in smb_sam_usr_groups() 395 smb_lgrp_free(&lgrp); in smb_sam_usr_groups() [all …]
|
/titanic_44/usr/src/lib/libdtrace/common/ |
H A D | sched.d | 79 inline lgrp_id_t lgrp = curcpu->cpu_lgrp; variable 80 #pragma D attributes Stable/Stable/Common lgrp 81 #pragma D binding "1.0" lgrp
|
/titanic_44/usr/src/cmd/ptools/pmap/ |
H A D | pmap.c | 692 lgrp_id_t lgrp; in look_map() local 761 segment_end, pmp->pr_pagesize, &lgrp); in look_map() 768 lgrp2str(lgrp), lname); in look_map() 830 lgrp_id_t lgrp; in look_smap() local 906 segment_end, pmp->pr_pagesize, &lgrp); in look_smap() 911 lgrp2str(lgrp), lname); in look_smap() 1276 lgrp2str(lgrp_id_t lgrp) in lgrp2str() argument 1281 (void) sprintf(str, lgrp == LGRP_NONE ? " -" : "%4d", lgrp); in lgrp2str() 1569 lgrp_id_t lgrp; /* Lgroup of the region start */ in get_contiguous_region() local 1574 curr_lgrp = lgrp = addr_to_lgrp(mchunk, vaddr, &psz); in get_contiguous_region() [all …]
|
/titanic_44/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
|
/titanic_44/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()
|
/titanic_44/usr/src/cmd/ptools/plgrp/ |
H A D | plgrp.c | 176 #define LGRP_VALID(lgrp) (lgrps_bitmap[lgrp] != 0) argument 665 lgrp_id_t lgrp) in Plgrp_affinity_get() argument 683 args.lgrp = lgrp; in Plgrp_affinity_get() 732 lgrp_id_t lgrp, lgrp_affinity_t aff) in Plgrp_affinity_set() argument 750 args.lgrp = lgrp; in Plgrp_affinity_set() 858 lgrp_id_t lgrp) in Plgrp_home_set() argument 860 return (Plgrp_affinity_set(Ph, idtype, id, lgrp, in Plgrp_home_set()
|
/titanic_44/usr/src/cmd/pools/poold/libjlgrp/ |
H A D | jlgrp.c | 111 jobject lgrp; in Java_com_sun_solaris_service_locality_LocalityDomain_jl_1root() local 122 lgrp = (*env)->NewObject(env, clazz, mid, obj, root, NULL); in Java_com_sun_solaris_service_locality_LocalityDomain_jl_1root() 123 return (lgrp); in Java_com_sun_solaris_service_locality_LocalityDomain_jl_1root()
|
/titanic_44/usr/src/uts/common/vm/ |
H A D | page.h | 680 struct lgrp; 734 caddr_t, size_t, uint_t, struct lgrp *); 737 caddr_t, uint_t, struct lgrp *); 835 int page_relocate(page_t **, page_t **, int, int, spgcnt_t *, struct lgrp *); 836 int do_page_relocate(page_t **, page_t **, int, spgcnt_t *, struct lgrp *); 837 page_t *page_get_replacement_page(page_t *, struct lgrp *, uint_t);
|
H A D | vm_pagelist.c | 3733 caddr_t vaddr, size_t size, uint_t flags, struct lgrp *lgrp) in page_get_freelist() argument 3750 if (!LGRP_EXISTS(lgrp)) in page_get_freelist() 3751 lgrp = lgrp_home_lgrp(); in page_get_freelist() 3794 LGRP_MNODE_COOKIE_INIT(lgrp_cookie, lgrp, LGRP_SRCH_LOCAL); in page_get_freelist() 3800 lgrp_t *, lgrp, in page_get_freelist() 3821 lgrp_stat_add(lgrp->lgrp_id, LGRP_NUM_ALLOC_FAIL, 1); in page_get_freelist() 3832 lgrp_t *, lgrp, in page_get_freelist() 3884 caddr_t vaddr, uint_t flags, struct lgrp *lgrp) in page_get_cachelist() argument 3898 if (!LGRP_EXISTS(lgrp)) in page_get_cachelist() 3899 lgrp = lgrp_home_lgrp(); in page_get_cachelist() [all …]
|
/titanic_44/usr/src/lib/liblgrp/ |
H A D | Makefile.com | 31 OBJECTS= lgrp.o
|