Searched refs:pset (Results 1 - 25 of 81) sorted by relevance

1234

/opensolaris-onvv-gate/usr/src/lib/libc/common/sys/
H A D_pset.s37 SYSCALL2_RVAL1(_pset,pset)
/opensolaris-onvv-gate/usr/src/lib/libc/port/sys/
H A Dpsetsys.c31 #include <sys/pset.h>
46 pset_destroy(psetid_t pset) argument
48 return (_pset(PSET_DESTROY, pset));
52 pset_assign(psetid_t pset, processorid_t cpu, psetid_t *opset) argument
54 return (_pset(PSET_ASSIGN, pset, cpu, opset));
58 pset_assign_forced(psetid_t pset, processorid_t cpu, psetid_t *opset) argument
60 return (_pset(PSET_ASSIGN_FORCED, pset, cpu, opset));
64 pset_info(psetid_t pset, int *type, uint_t *numcpus, processorid_t *cpulist) argument
66 return (_pset(PSET_INFO, pset, type, numcpus, cpulist));
70 pset_bind(psetid_t pset, idtype_ argument
76 pset_bind_lwp(psetid_t pset, id_t id, pid_t pid, psetid_t *opset) argument
85 pset_getloadavg(psetid_t pset, double loadavg[], int nelem) argument
108 pset_setattr(psetid_t pset, uint_t attr) argument
114 pset_getattr(psetid_t pset, uint_t *attr) argument
[all...]
H A Dppriv.c41 setppriv(priv_op_t op, priv_ptype_t type, const priv_set_t *pset) argument
50 return (syscall(SYS_privsys, PRIVSYS_SETPPRIV, op, set, (void *)pset,
55 getppriv(priv_ptype_t type, priv_set_t *pset) argument
64 return (syscall(SYS_privsys, PRIVSYS_GETPPRIV, 0, set, (void *)pset,
/opensolaris-onvv-gate/usr/src/cmd/psrset/
H A Dpsrset.c33 #include <sys/pset.h>
131 bind_err(psetid_t pset, id_t pid, id_t lwpid, int err) argument
135 switch (pset) {
158 create_out(psetid_t pset) argument
160 (void) printf("%s %d\n", gettext("created processor set"), pset);
190 query_out(id_t pid, id_t lwpid, psetid_t pset) argument
203 if (pset == PS_NONE)
207 (void) printf(gettext("%s id %s: %d\n"), proclwp, pidstr, pset);
214 info_out(psetid_t pset, int type, uint_t numcpus, processorid_t *cpus) argument
218 (void) printf(gettext("system processor set %d:"), pset);
236 print_out(processorid_t cpu, psetid_t pset) argument
279 bind_lwp(id_t pid, id_t lwpid, psetid_t pset) argument
296 do_cpu(psetid_t pset, processorid_t cpu, int print, int mustexist) argument
328 do_range(psetid_t pset, processorid_t first, processorid_t last, int print) argument
349 do_info(psetid_t pset) argument
373 do_destroy(psetid_t pset) argument
384 do_intr(psetid_t pset, int flag) argument
463 psetid_t pset; local
520 exec_cmd(psetid_t pset, char **argv) argument
558 do_lwps(id_t pid, const char *range, psetid_t pset) argument
637 psetid_t pset, old_pset; local
[all...]
/opensolaris-onvv-gate/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_main.c122 priv_set_t *pset = priv_allocset(); local
128 if (pset != NULL) {
129 priv_basicset(pset);
130 (void) priv_addset(pset, PRIV_PROC_AUDIT);
131 (void) priv_addset(pset, PRIV_PROC_SETID);
132 (void) priv_addset(pset, PRIV_PROC_OWNER);
133 (void) priv_addset(pset, PRIV_FILE_CHOWN);
134 (void) priv_addset(pset, PRIV_FILE_CHOWN_SELF);
135 (void) priv_addset(pset, PRIV_FILE_DAC_READ);
136 (void) priv_addset(pset, PRIV_FILE_DAC_SEARC
[all...]
/opensolaris-onvv-gate/usr/src/lib/libc/port/gen/
H A Dpriv_str_xlate.c84 priv_set_t *pset = NULL; local
92 (pset = priv_allocset()) == NULL) {
98 priv_emptyset(pset);
110 priv_union(basic, pset);
112 priv_emptyset(pset);
114 priv_fillset(pset);
116 priv_union(zone, pset);
127 priv_freeset(pset);
134 PRIV_DELSET(pset, privid);
136 PRIV_ADDSET(pset, privi
173 __priv_set_to_str( priv_data_t *d, const priv_set_t *pset, char separator, int flag) argument
340 priv_set_to_str(const priv_set_t *pset, char separator, int flag) argument
[all...]
H A Dsetpriority.c188 priv_set_t *pset = NULL; local
204 if ((pset = priv_allocset()) != NULL &&
205 getppriv(PRIV_EFFECTIVE, pset) == 0 &&
206 !priv_ismember(pset, "proc_priocntl"))
208 if (pset != NULL)
209 priv_freeset(pset);
H A Dklpdlib.c69 priv_set_t *pset; local
78 pset = KLH_PRIVSET(klh);
99 if (p->kd_callback(p->kd_user_cookie, pset, &ctx))
H A Dprivlib.c382 priv_set_t *pset = priv_allocset(); local
385 if (pset == NULL)
388 priv_emptyset(pset);
391 if (priv_addset(pset, priv) < 0) {
392 priv_freeset(pset);
396 return (pset);
410 priv_set_t *pset; local
415 pset = priv_vlist(ap);
419 if (pset == NULL)
431 set, (void *)pset,
[all...]
/opensolaris-onvv-gate/usr/src/cmd/pfexec/
H A Dpfexec.c97 char *pset = NULL; local
136 if (pset == NULL) {
137 pset = optarg;
150 if (pset != NULL) {
151 wanted = priv_str_to_set(pset, ",", NULL);
/opensolaris-onvv-gate/usr/src/uts/common/syscall/
H A Dpset.c35 #include <sys/pset.h>
47 static int pset(int, long, long, long, long);
52 (int (*)())pset,
61 &mod_syscallops32, "32-bit pset(2) syscall", &pset_sysent
117 pset_destroy(psetid_t pset) argument
129 error = cpupart_destroy(pset);
138 pset_assign(psetid_t pset, processorid_t cpuid, psetid_t *opset, int forced) argument
144 if (pset != PS_QUERY && secpolicy_pset(CRED()) != 0)
148 if (pset != PS_QUERY && pool_state == POOL_ENABLED) {
162 if (pset !
178 pset_info(psetid_t pset, int *typep, uint_t *numcpusp, processorid_t *cpulistp) argument
241 pset_bind_thread(kthread_t *tp, psetid_t pset, psetid_t *oldpset, void *projbuf, void *zonebuf) argument
298 pset_bind_process(proc_t *pp, psetid_t pset, psetid_t *oldpset, void *projbuf, void *zonebuf) argument
329 pset_bind_task(task_t *tk, psetid_t pset, psetid_t *oldpset, void *projbuf, void *zonebuf) argument
356 pset_bind_project(kproject_t *kpj, psetid_t pset, psetid_t *oldpset, void *projbuf, void *zonebuf) argument
381 pset_bind_zone(zone_t *zptr, psetid_t pset, psetid_t *oldpset, void *projbuf, void *zonebuf) argument
408 pset_unbind(psetid_t pset, void *projbuf, void *zonebuf, idtype_t idtype) argument
450 pset_bind_contract(cont_process_t *ctp, psetid_t pset, psetid_t *oldpset, void *projbuf, void *zonebuf) argument
476 pset_bind_lwp(psetid_t pset, id_t id, pid_t pid, psetid_t *opset) argument
533 pset_bind(psetid_t pset, idtype_t idtype, id_t id, psetid_t *opset) argument
708 pset_getloadavg(psetid_t pset, int *buf, int nelem) argument
804 pset_setattr(psetid_t pset, uint_t attr) argument
828 pset_getattr(psetid_t pset, uint_t *attrp) argument
843 pset(int subcode, long arg1, long arg2, long arg3, long arg4) function
[all...]
H A Dppriv.c57 priv_set_t pset, *target; local
65 if (copyin(in_pset, &pset, sizeof (priv_set_t)))
76 audit_setppriv(op, type, &pset, pcr);
90 !priv_issubset(&pset, &CR_LPRIV(pcr))) {
95 if (!priv_issubset(&pset, &CR_OPPRIV(pcr)) &&
96 !priv_issubset(&pset, priv_getset(pcr, type))) {
100 !priv_issubset(&pset, &CR_LPRIV(pcr)) ||
101 secpolicy_require_privs(CRED(), &pset) != 0) {
134 priv_union(&pset, target);
137 priv_inverse(&pset);
208 getppriv(priv_ptype_t type, priv_set_t *pset) argument
[all...]
/opensolaris-onvv-gate/usr/src/cmd/zonestat/zonestatd/
H A Dzonestatd.c60 #include <sys/pset.h>
156 /* Used to store a zone's usage of a pset */
168 boolean_t zsu_empty; /* no procs in pset in this interval */
169 time_t zsu_start; /* time when zone was found in pset */
170 hrtime_t zsu_hrstart; /* time when zone was found in pset */
176 /* Used to store a pset's utilization */
183 boolean_t zsp_found; /* pset found at end of interval */
184 boolean_t zsp_new; /* pset new in this interval */
185 boolean_t zsp_deleted; /* pset deleted in this interval */
186 boolean_t zsp_active; /* pset existe
924 zsd_mark_pset_usage_start(zsd_pset_t *pset) argument
943 zsd_pset_t *pset; local
956 zsd_mark_pset_found(zsd_pset_t *pset, uint_t type, uint64_t online, uint64_t size, uint64_t min, uint64_t max, int64_t importance) argument
991 zsd_pset_t *pset = usage->zsu_pset; local
1041 zsd_pset_t *pset = usage->zsu_pset; local
1053 zsd_pset_t *pset, *tmp; local
1085 zsd_pset_t *pset; local
1295 zsd_mark_cpu_found(zsd_cpu_t *cpu, zsd_pset_t *pset, psetid_t psetid) argument
1378 zsd_pset_t *pset; local
1391 zsd_pset_t *pset; local
1407 zsd_pset_t *pset; local
1434 zsd_pset_t *pset, *tmp; local
1453 zsd_lookup_usage(zsd_pset_t *pset, zsd_zone_t *zone) argument
1466 zsd_allocate_pset_usage(zsd_ctl_t *ctl, zsd_pset_t *pset, zsd_zone_t *zone) argument
1500 zsd_lookup_insert_usage(zsd_ctl_t *ctl, zsd_pset_t *pset, zsd_zone_t *zone) argument
1543 zsd_pset_t *pset; local
1676 pool_resource_t *pset; local
1882 zsd_pset_t *pset; local
2040 zsd_get_zone_pool_pset(zsd_ctl_t *ctl, zsd_zone_t *zone, char *pool, int poollen, char *pset, int psetlen, uint_t *cputype) argument
2627 zsd_pset_t *pset, *prev_pset; local
3568 zsd_pset_t *pset; local
3705 zs_pset_t *pset = NULL; local
3922 zsd_pset_t *pset; local
4232 zs_pset_t *pset, *cpset; local
[all...]
/opensolaris-onvv-gate/usr/src/cmd/ssh/libssh/common/
H A Duidswap.c187 priv_set_t *pset; local
232 if ((pset = priv_allocset()) == NULL)
234 if (getppriv(PRIV_INHERITABLE, pset) != 0)
239 priv_addset(pset, PRIV_PROC_CHROOT) == -1) {
243 if (priv_addset(pset, PRIV_PROC_FORK) == -1 ||
244 priv_addset(pset, PRIV_PROC_EXEC) == -1) {
249 if (setppriv(PRIV_SET, PRIV_PERMITTED, pset) == -1)
256 priv_freeset(pset);
/opensolaris-onvv-gate/usr/src/uts/common/os/
H A Dpool_pset.c59 * pset of the pool to which they are bound. This is accomplished by
64 * the pset the zone is currently bound to, and can read this value
84 pool_pset_t *pool_pset_default; /* default pset */
91 pool_pset_t *pset = pool_pset_default; local
95 for (pset = list_head(&pool_pset_list); pset;
96 pset = list_next(&pool_pset_list, pset)) {
97 if (pset->pset_id == psetid)
98 return (pset);
340 pool_pset_t *pset; local
367 pool_pset_t *pset; local
490 pool_pset_t *pset, *oldpset; local
721 pool_pset_t *pset; local
740 pool_pset_t *pset; local
846 pool_pset_t *pset; local
930 pool_pset_t *pset; local
[all...]
H A Dclock_highres.c36 #include <sys/pset.h>
110 int pset; local
198 pset = t->t_bind_pset;
202 cyclic_bind(cyc, cpu, pset == PS_NONE ? NULL : cpupart);
309 int pset; local
322 pset = t->t_bind_pset;
332 cyclic_bind(cyc, cpu, pset == PS_NONE ? NULL : cpupart);
/opensolaris-onvv-gate/usr/src/cmd/dlmgmtd/
H A Ddlmgmt_main.c368 priv_set_t *pset; local
373 if ((pset = priv_allocset()) == NULL)
386 priv_basicset(pset);
387 (void) priv_delset(pset, PRIV_PROC_EXEC);
388 (void) priv_delset(pset, PRIV_PROC_INFO);
389 (void) priv_delset(pset, PRIV_PROC_SESSION);
390 (void) priv_delset(pset, PRIV_FILE_LINK_ANY);
393 if (priv_addset(pset, PRIV_SYS_CONFIG) == -1 ||
394 priv_addset(pset, PRIV_SYS_DL_CONFIG) == -1)
397 (void) priv_delset(pset, PRIV_PROC_FOR
[all...]
/opensolaris-onvv-gate/usr/src/cmd/pools/poold/
H A Dpoold.properties34 pset.objectives= com.sun.solaris.domain.pools.LocalityObjective, com.sun.solaris.domain.pools.UtilizationObjective
/opensolaris-onvv-gate/usr/src/lib/libzonestat/common/
H A Dlibzonestat.c368 * all pset usages that exist in the new pset.
412 /* Add pset's time so far to the zone usage */
427 * pset. Leave pset_zone in old interval, but do not
430 * For total utilization, add pset time to zone that
431 * has run in this pset before.
434 /* Add new pset time to the zone usage */
445 * Zone is using pset in both start and end interval. Compute
469 * If pset usage has been destroyed and re-created
497 /* No need to add new pset zon
943 zs_pset_name(zs_pset_t *pset, char *name, size_t len) argument
949 zs_pset_id(zs_pset_t *pset) argument
955 zs_pset_size(zs_pset_t *pset) argument
961 zs_pset_online(zs_pset_t *pset) argument
967 zs_pset_min(zs_pset_t *pset) argument
973 zs_pset_max(zs_pset_t *pset) argument
979 zs_pset_schedulers(zs_pset_t *pset) argument
991 zs_pset_cpu_shares(zs_pset_t *pset) argument
1009 zs_pset_cputype(zs_pset_t *pset) argument
1015 zs_pset_usage_all(zs_pset_t *pset, timestruc_t *ts) argument
1025 zs_pset_usage_idle(zs_pset_t *pset, timestruc_t *ts) argument
1037 zs_pset_usage_kernel(zs_pset_t *pset, timestruc_t *ts) argument
1043 zs_pset_usage_zones(zs_pset_t *pset, timestruc_t *ts) argument
1049 zs_pset_usage_all_pct(zs_pset_t *pset) argument
1060 zs_pset_usage_idle_pct(zs_pset_t *pset) argument
1072 zs_pset_usage_kernel_pct(zs_pset_t *pset) argument
1079 zs_pset_usage_zones_pct(zs_pset_t *pset) argument
1086 zs_pset_usage_all_cpus(zs_pset_t *pset) argument
1097 zs_pset_usage_idle_cpus(zs_pset_t *pset) argument
1110 zs_pset_usage_kernel_cpus(zs_pset_t *pset) argument
1117 zs_pset_usage_zones_cpus(zs_pset_t *pset) argument
1167 zs_pset_t *pset = pz->zspz_pset; local
2063 zs_pset_t *pset = NULL; local
2466 zs_pset_t *pset, *ptmp; local
3807 zs_pset_t *pset, *tmp; local
3835 zs_pset_next(zs_usage_t *usage, zs_pset_t *pset) argument
3844 zs_pset_property(zs_pset_t *pset, int prop, zs_property_t *p) argument
3906 zs_pset_total_time(zs_pset_t *pset, timestruc_t *t) argument
3912 zs_pset_total_cpus(zs_pset_t *pset) argument
3921 zs_pset_used_time(zs_pset_t *pset, int user, timestruc_t *t) argument
3949 zs_pset_used_cpus(zs_pset_t *pset, int user) argument
3975 zs_pset_used_pct(zs_pset_t *pset, int user) argument
3999 zs_pset_zone_list(zs_pset_t *pset, zs_pset_zone_t **zonelist, int num) argument
4024 zs_pset_zone_first(zs_pset_t *pset) argument
4030 zs_pset_zone_next(zs_pset_t *pset, zs_pset_zone_t *pz) argument
[all...]
/opensolaris-onvv-gate/usr/src/uts/intel/pset/
H A DMakefile23 # uts/intel/pset/Makefile
30 # This makefile drives the production of the pset syscall module.
43 MODULE = pset
/opensolaris-onvv-gate/usr/src/uts/sparc/pset/
H A DMakefile23 # uts/sparc/pset/Makefile
29 # This makefile drives the production of the pset system call module.
42 MODULE = pset
/opensolaris-onvv-gate/usr/src/lib/libdtrace/common/
H A Dsched.d71 inline psetid_t pset = curcpu->cpu_pset;
72 #pragma D attributes Stable/Stable/Common pset
73 #pragma D binding "1.0" pset
/opensolaris-onvv-gate/usr/src/cmd/smbsrv/smbd/
H A Dsmbd_main.c394 priv_set_t *pset; local
406 pset = priv_allocset();
407 if (pset == NULL)
410 priv_basicset(pset);
413 (void) priv_addset(pset, PRIV_NET_MAC_AWARE);
414 (void) priv_addset(pset, PRIV_NET_PRIVADDR);
415 (void) priv_addset(pset, PRIV_PROC_AUDIT);
416 (void) priv_addset(pset, PRIV_SYS_DEVICES);
417 (void) priv_addset(pset, PRIV_SYS_SMB);
418 (void) priv_addset(pset, PRIV_SYS_MOUN
[all...]
/opensolaris-onvv-gate/usr/src/cmd/stat/common/
H A Dwalkers.c200 int *pset = (int *)data; local
204 if (*pset && c1->cs_pset_id != c2->cs_pset_id) {
205 (void) printf("<<processor %d moved from pset: %d to: %d>>\n",
227 (void) printf("<<pset destroyed: %u>>\n", p1->ps_id);
232 (void) printf("<<pset created: %u>>\n", p2->ps_id);
334 int pset; local
342 pset = old->s_types & SNAP_PSETS;
348 (void) snapshot_walk(SNAP_CPUS, old, new, cpu_report, &pset);
358 if (pset) {
/opensolaris-onvv-gate/usr/src/lib/libproc/common/
H A Dpr_pbind.c29 #include <sys/pset.h>

Completed in 265 milliseconds

1234