/illumos-gate/usr/src/cmd/dtrace/demo/ip/ |
H A D | tcprst.d | 111 laddr[self->conn_id] = self->i_laddr; 112 faddr[self->conn_id] = self->i_faddr; 113 lport[self->conn_id] = self->i_lport; 133 seqno[self->conn_id, self->pcount] = ntohl(self->tcph->tha_seq); 134 ack[self->conn_id, self->pcount] = ntohl(self->tcph->tha_ack); 135 datalen[self->conn_id, self->pcount] = ntohs(self->iph->ipha_length); 136 wnd[self->conn_id, self->pcount] = ntohs(self->tcph->tha_win); 140 flags[self->conn_id, self->pcount] = self->tcph->tha_flags; 141 self->flags = self->tcph->tha_flags; 161 self->i = (end_ptr[self->conn_id] + MAX_RECORDS - num[self->conn_id] [all …]
|
/illumos-gate/usr/src/lib/libc/port/threads/ |
H A D | cancel.c | 127 self->ul_cancel_async && self->ul_cancel_pending) { in pthread_setcancelstate() 173 self->ul_save_async = self->ul_cancel_async; in pthread_setcanceltype() 180 self->ul_cancel_pending && !self->ul_cancel_disabled) { in pthread_setcanceltype() 185 exit_critical(self); in pthread_setcanceltype() 207 if (self->ul_cancel_pending && !self->ul_cancel_disabled) in pthread_testcancel() 221 ASSERT(!(self->ul_cancelable && self->ul_cancel_disabled)); in _cancelon() 239 ASSERT(!(self->ul_cancelable && self->ul_cancel_disabled)); in _canceloff() 257 ASSERT(!(self->ul_cancelable && self->ul_cancel_disabled)); in _canceloff_nocancel() 315 if (self->ul_vfork | self->ul_nocancel) in set_cancel_pending_flag() 322 else if (self->ul_cancel_pending && !self->ul_cancel_disabled) in set_cancel_pending_flag() [all …]
|
H A D | thr.c | 627 ulwp->ul_pri = (self->ul_epri? self->ul_epri : self->ul_pri); in _thrp_create() 824 self->ul_forw = self->ul_back = NULL; in _thrp_exit() 870 udp->all_zombies = self->ul_forw = self->ul_back = self; in _thrp_exit() 874 self->ul_back->ul_forw = self; in _thrp_exit() 875 self->ul_forw->ul_back = self; in _thrp_exit() 1354 self->ul_stk = (caddr_t)(self->ul_stktop - self->ul_stksiz); in libc_init() 1356 self->ul_forw = self->ul_back = self; in libc_init() 1361 self->ul_self = self; in libc_init() 1456 self->ul_ustack.ss_sp = self->ul_stk; in libc_init() 1731 self->ul_forw = self->ul_back = udp->all_lwps = self; in postfork1_child() [all …]
|
H A D | sigaction.c | 119 if (self->ul_vfork || in call_user_handler() 250 ASSERT((self->ul_critical | self->ul_sigdefer | self->ul_cursig) == 0); in take_deferred_signal() 301 self->ul_sp = 0; in sigacthandler() 303 self->ul_cancel_async = self->ul_save_async; in sigacthandler() 320 if ((self->ul_critical + self->ul_sigdefer) == 0) { in sigacthandler() 381 if (!self->ul_vfork) in sigaction() 459 if (!self->ul_vfork) in sigaction() 496 enter_critical(self); in block_all_signals() 502 exit_critical(self); in block_all_signals() 553 ASSERT(self->ul_critical + self->ul_sigdefer != 0); in setcontext() [all …]
|
H A D | synch.c | 963 qp = queue_lock(self->ul_wchan, self->ul_qtype); in unsleep_self() 1232 ASSERT(self->ul_preempt == 1 && self->ul_critical > 0); in preempt_unpark() 1234 (self->ul_curplease && self->ul_critical == 1)) { in preempt_unpark() 1726 sigon(self); in mutex_unlock_queue() 1767 sigon(self); in mutex_unlock_process() 2074 if (self->ul_cid != self->ul_rtclassid) { in mutex_lock_internal() 2079 myprio = self->ul_epri? self->ul_epri : self->ul_pri; in mutex_lock_internal() 2825 !(self->ul_vfork | self->ul_nocancel | in cancel_safe_mutex_unlock() 2826 self->ul_critical | self->ul_sigdefer) && in cancel_safe_mutex_unlock() 2964 ASSERT(!self->ul_critical || self->ul_bindflags); in pthread_spin_lock() [all …]
|
H A D | scalls.c | 354 (self->ul_vfork | self->ul_nocancel | self->ul_libc_locks | \ 355 self->ul_critical | self->ul_sigdefer); \ 358 self->ul_save_async = self->ul_cancel_async; \ 374 self->ul_cancel_async = self->ul_save_async; \ 414 (self->ul_vfork | self->ul_nocancel | self->ul_libc_locks | \ 415 self->ul_critical | self->ul_sigdefer); \ 424 self->ul_save_async = self->ul_cancel_async; \ 448 self->ul_cancel_async = self->ul_save_async; \ 466 (self->ul_vfork | self->ul_nocancel | self->ul_libc_locks | in _cancel_prologue() 469 self->ul_save_async = self->ul_cancel_async; in _cancel_prologue() [all …]
|
H A D | rwlock.c | 58 ASSERT((self->ul_critical + self->ul_sigdefer) != 0); in rwl_entry() 171 preempt(self); in rw_read_held() 196 preempt(self); in rw_write_held() 212 sigoff(self); in rwlock_init() 214 sigon(self); in rwlock_init() 247 sigoff(self); in rwlock_destroy() 249 sigon(self); in rwlock_destroy() 297 preempt(self); in read_lock_try() 734 sigon(self); in rw_rdlock_impl() 942 sigon(self); in rw_tryrdlock() [all …]
|
H A D | sema.c | 117 (self->ul_cancelable && self->ul_cancel_pending)) in sema_wait_impl() 129 sigoff(self); in sema_wait_impl() 131 sigon(self); in sema_wait_impl() 153 (self->ul_cancelable && self->ul_cancel_pending)) in sema_wait_impl() 174 preempt(self); in sema_wait_impl() 179 self->ul_sp = 0; in sema_wait_impl() 244 sigoff(self); in sema_trywait() 249 sigon(self); in sema_trywait() 269 preempt(self); in sema_trywait() 311 sigoff(self); in sema_post() [all …]
|
H A D | assfail.c | 67 ulwp_t *self; in Abort() local 86 ulwp_t *self; in common_panic() local 162 ulwp_t *self; in lock_error() local 183 self = NULL; in lock_error() 236 if (self != NULL) in lock_error() 253 ulwp_t *self; in rwlock_error() local 275 self = NULL; in rwlock_error() 340 ulwp_t *self; in thread_error() local 353 self = NULL; in thread_error() 389 ulwp_t *self; in __assfail() local [all …]
|
/illumos-gate/usr/src/tools/onbld/Checks/ |
H A D | Comments_test.py | 47 def lookup(self, buglist): argument 48 return { bug: self.db[bug] for bug in buglist if bug in self.db } 52 def test_isBug(self): argument 94 def setUp(self): argument 95 self.bugs = {} 96 self.bugdb = fake_bug_db() 98 def split_input(self, str): argument 107 self.assertEqual(0, Comments.comchk(self.split_input(input), 116 self.assertEqual(1, Comments.comchk(self.split_input(input), 120 def test_comchk_newline(self): argument [all …]
|
/illumos-gate/usr/src/test/test-runner/cmd/ |
H A D | run | 191 ''' % (self.pathname, self.identifier, self.outputdir, self.timeout, self.user) 255 privcmd = self.update_cmd_privs(self.pathname, self.user) 384 ''' % (self.pathname, self.identifier, self.outputdir, self.timeout, self.user, 385 self.pre, pre_user, self.post, post_user, self.tags) 392 files = [self.pre, self.pathname, self.post] 393 users = [self.pre_user, self.user, self.post_user] 465 ''' % (self.pathname, self.identifier, self.outputdir, self.tests, 466 self.timeout, self.user, self.pre, pre_user, self.post, post_user, 481 self.pre = os.path.join(self.pathname, self.pre) 483 self.post = os.path.join(self.pathname, self.post) [all …]
|
/illumos-gate/usr/src/cmd/latencytop/common/ |
H A D | latencytop.d | 194 self->lt_cause[self->lt_stackp - 1] : ""; 196 self->lt_prio[self->lt_stackp - 1] : 0; 334 self->lt_timestamp = timestamp - self->lt_timestamp; 356 self->lt_cause[self->lt_stackp - 1] : ""; 358 self->lt_prio[self->lt_stackp - 1] : 0; 378 self->lt_cause[self->lt_stackp - 1] : ""; 380 self->lt_prio[self->lt_stackp - 1] : 0; 402 self->lt_prio[self->lt_stackp] = priority; \ 403 self->lt_cause[self->lt_stackp] = cause; \ 408 self->lt_cause[self->lt_stackp - 1] == cause) \ [all …]
|
/illumos-gate/usr/src/cmd/perl/contrib/Sun/Solaris/Kstat/ |
H A D | Kstat.xs | 307 SAVE_INT32(self, varp, v_buf); in save_var() 308 SAVE_INT32(self, varp, v_call); in save_var() 420 hv_store(self, "read_srtt", 9, in save_nfs() 658 hash = (HV *)SvRV(self); in get_tie() 732 hash1 = (HV *)SvRV(self); in apply_to_ties() 778 set_valid(HV *self, void *arg) in set_valid() argument 805 hash1 = (HV *)SvRV(self); in prune_invalid() 1186 update(self) 1187 SV* self; 1357 DESTROY(self) [all …]
|
/illumos-gate/usr/src/tools/smatch/src/smatch_scripts/implicit_dependencies/ |
H A D | parser.py | 19 self, argument 36 self.verbose = verbose 37 self.pretty = pretty 106 def parse(self): argument 137 def write(self): argument 140 if self.verbose: 142 if self.pretty: 143 pprint.pprint(dict(self.implicit_dependencies), self.pretty_output_file) 144 pprint.pprint(dict(self.verbose_impl_dep), self.pretty_output_file_verbose) 148 def close(self): argument [all …]
|
/illumos-gate/usr/src/tools/scripts/ |
H A D | validate_pkg.py | 87 def __init__(self): argument 98 def name(self): argument 101 if self.isdir: 104 if self.target: 119 t = self.name() 123 o = self.owner 124 p = self.path 295 return "Error in '%s': %s" % (self.action, self.error) 365 return '%s: unsupported S_IFMT %07o' % (self.path, self.mode) 389 self.hash = self.path [all …]
|
/illumos-gate/usr/src/cmd/device_remap/ |
H A D | device_remap.pl | 48 my $self = {}; 49 $self->{FILE} = undef; 50 $self->{MAJOR} = undef; 57 $self->{DATA} = undef; 58 bless($self, $class); 59 return $self; 63 my $self = shift; 79 ($self->{MAJOR}, $self->{MINOR}, 84 $size = read(MD, $self->{NODES}, $self->{NODE_SEC_SZ}); 85 $size = read(MD, $self->{NAMES}, $self->{NAME_SEC_SZ}); [all …]
|
/illumos-gate/usr/src/lib/pyzfs/common/ |
H A D | dataset.py | 52 self.name = t[0] 53 self.number = t[1] 54 self.type = t[2] 56 self.default = t[3] 58 self.default = t[4] 59 self.attr = t[5] 61 self.values = t[7] 62 self.colname = t[8] 121 self.name = name 152 def parent(self): argument [all …]
|
H A D | table.py | 34 self.fields = fields 37 self.lines = list() 39 def __updatemax(self, k, v): argument 40 self.maxfieldlen[k] = max(self.maxfieldlen.get(k, None), v) 46 for f in self.fields: 49 self.__updatemax(f, len(v)) 57 self.addline(None, d) 59 self.lines.sort() 60 for (k, va) in self.lines: 67 if self.fields[i] in self.rjustfields: [all …]
|
H A D | util.py | 49 if self.__slots__: 56 (self.__class__.__name__, repr(self.__dict__)) 75 self.errno = eno 76 self.task = task 77 self.why = why 79 def __str__(self): argument 81 if self.task: 83 if self.why: 84 s += self.why 112 def strerror(self): argument [all …]
|
/illumos-gate/usr/src/cmd/dtrace/demo/sched/ |
H A D | whatfor.d | 33 self->sobj = curlwpsinfo->pr_stype; 34 self->bedtime = timestamp; 40 self->bedtime = timestamp; 44 /self->bedtime && !self->sobj/ 47 self->bedtime = 0; 51 /self->sobj/ 54 self->sobj == SOBJ_RWLOCK ? "rwlock" : 56 self->sobj == SOBJ_SEMA ? "semaphore" : 60 quantize(timestamp - self->bedtime); 62 self->sobj = 0; [all …]
|
/illumos-gate/usr/src/test/smbsrv-tests/cmd/ |
H A D | run_smbtorture.py | 61 def __str__(self): argument 62 return self.name 64 def __len__(self): argument 65 return len(self.name) 72 def __init__(self, name): argument 73 self.name = name 76 def __str__(self): argument 93 cmd[-1] = self.name 121 self.excluded = 0 140 def __iter__(self): argument [all …]
|
/illumos-gate/usr/src/cmd/perl/contrib/Sun/Solaris/Pg/ |
H A D | Pg.pm | 120 if ($self) { 125 return ($self); 144 my $self = shift; 158 my $self = shift; 171 my $self = shift; 173 _walk_depth_first($self, $self->root()); 182 my $self = shift; 184 _walk_breadth_first($self, $self->root()); 256 my $self = shift; 258 return (grep { is_leaf($self, $_) } $self->all()); [all …]
|
/illumos-gate/usr/src/uts/common/io/scsi/impl/ |
H A D | scsi_hba.c | 557 if (self) { in scsi_hba_log() 1643 ASSERT(self && DEVI_BUSY_OWNED(self) && addr); in smp_findchild() 2260 ddi_driver_name(self), ddi_get_instance(self), in iport_busctl_reportdev() 2267 ddi_driver_name(self), ddi_get_instance(self), in iport_busctl_reportdev() 3356 if (self) in scsi_hba_ioctl() 4920 ASSERT(self && DEVI_BUSY_OWNED(self)); in scsi_findchild() 6071 ASSERT(self && addr && DEVI_BUSY_OWNED(self)); in scsi_device_config() 6722 ASSERT(self && addr && DEVI_BUSY_OWNED(self)); in scsi_device_unconfig() 8051 ddi_driver_name(self), ddi_get_instance(self), in scsi_hba_bus_config_tgtmap() 8219 ddi_driver_name(self), ddi_get_instance(self), in scsi_hba_bus_config_iportmap() [all …]
|
/illumos-gate/usr/src/lib/libc/sparc/threads/ |
H A D | machdep.c | 95 _thrp_setup(ulwp_t *self) in _thrp_setup() argument 102 self->ul_ustack.ss_sp = (void *)(self->ul_stktop - self->ul_stksiz); in _thrp_setup() 103 self->ul_ustack.ss_size = self->ul_stksiz; in _thrp_setup() 107 update_sched(self); in _thrp_setup() 111 sigon(self); in _thrp_setup() 113 if (self->ul_cancel_pending == 2 && !self->ul_cancel_disabled) in _thrp_setup() 115 return (self->ul_startpc(self->ul_startarg)); in _thrp_setup() 185 ulwp_t *self = curthread; in __csigsetjmp() local 198 (void *)(self->ul_stktop - self->ul_stksiz); in __csigsetjmp() 204 enter_critical(self); in __csigsetjmp() [all …]
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/speculation/ |
H A D | tst.DataRecAftDiscard.d | 39 self->speculateFlag = 0; 40 self->discardFlag = 0; 41 self->spec = speculation(); 45 /self->spec/ 47 speculate(self->spec); 49 self->speculateFlag++; 53 /(self->spec) && (self->speculateFlag)/ 55 discard(self->spec); 56 self->discardFlag++; 61 /self->discardFlag/ [all …]
|