/titanic_44/usr/src/cmd/dtrace/test/tst/common/aggs/ |
H A D | tst.neglquant.d | 70 this->i = 1; 71 this->val = (1 << 63) - 1; 73 @["f-market"] = lquantize(this->i, 0, 10, 1, this->val); 74 this->i++; 75 this->val = ((1 << 63) - 1) / this->i; 77 @["f-market"] = lquantize(this->i, 0, 10, 1, this->val); 78 this->i++; 79 this->val = ((1 << 63) - 1) / this->i; 81 @["f-market"] = lquantize(this->i, 0, 10, 1, this->val); 82 this->i++; [all …]
|
H A D | tst.negquant.d | 70 this->i = 1; 71 this->val = (1 << 63) - 1; 73 @["f-market"] = quantize(this->i, this->val); 74 this->i <<= 1; 75 this->val >>= 1; 77 @["f-market"] = quantize(this->i, this->val); 78 this->i <<= 1; 79 this->val >>= 1; 81 @["f-market"] = quantize(this->i, this->val); 82 this->i <<= 1; [all …]
|
/titanic_44/usr/src/lib/librstp/common/ |
H A D | port.c | 47 PORT_T* this; in STP_port_create() local 53 for (this = stpm->ports; this; this = this->next) { in STP_port_create() 54 if (this->port_index == port_index) { in STP_port_create() 59 STP_NEW_IN_LIST(this, PORT_T, stpm->ports, "port create"); in STP_port_create() 61 this->owner = stpm; in STP_port_create() 62 this->machines = NULL; in STP_port_create() 63 this->port_index = port_index; in STP_port_create() 64 this->port_name = strdup (STP_OUT_get_port_name (port_index)); in STP_port_create() 65 this->uptime = 0; in STP_port_create() 69 this->admin_non_stp = port_cfg.admin_non_stp; in STP_port_create() [all …]
|
H A D | stpm.c | 32 _stp_stpm_init_machine (STATE_MACH_T* this) in _stp_stpm_init_machine() argument 34 this->State = BEGIN; in _stp_stpm_init_machine() 35 (*(this->concreteEnterState)) (this); in _stp_stpm_init_machine() 40 _stp_stpm_iterate_machines (STPM_T* this, in _stp_stpm_iterate_machines() argument 49 for (stater = this->machines; stater; stater = stater->next) { in _stp_stpm_iterate_machines() 58 for (port = this->ports; port; port = port->next) { in _stp_stpm_iterate_machines() 72 _stp_stpm_init_data (STPM_T* this) in _stp_stpm_init_data() argument 74 STP_VECT_create (&this->rootPrio, in _stp_stpm_init_data() 75 &this->BrId, in _stp_stpm_init_data() 77 &this->BrId, in _stp_stpm_init_data() [all …]
|
H A D | statmch.c | 39 STATE_MACH_T *this; in STP_state_mach_create() local 41 STP_MALLOC(this, STATE_MACH_T, "state machine"); in STP_state_mach_create() 43 this->State = BEGIN; in STP_state_mach_create() 44 this->name = (char*) strdup (name); in STP_state_mach_create() 45 this->changeState = False; in STP_state_mach_create() 47 this->debug = False; in STP_state_mach_create() 48 this->ignoreHop2State = BEGIN; in STP_state_mach_create() 50 this->concreteEnterState = concreteEnterState; in STP_state_mach_create() 51 this->concreteCheckCondition = concreteCheckCondition; in STP_state_mach_create() 52 this->concreteGetStatName = concreteGetStatName; in STP_state_mach_create() [all …]
|
H A D | roletrns.c | 54 setSyncBridge (STATE_MACH_T *this) in setSyncBridge() argument 58 for (port = this->owner.port->owner->ports; port; port = port->next) { in setSyncBridge() 64 setReRootBridge (STATE_MACH_T *this) in setReRootBridge() argument 68 for (port = this->owner.port->owner->ports; port; port = port->next) { in setReRootBridge() 74 compute_all_synced (PORT_T* this) in compute_all_synced() argument 78 for (port = this->owner->ports; port; port = port->next) { in compute_all_synced() 79 if (port->port_index == this->port_index) continue; in compute_all_synced() 89 compute_re_rooted (PORT_T* this) in compute_re_rooted() argument 93 for (port = this->owner->ports; port; port = port->next) { in compute_re_rooted() 94 if (port->port_index == this->port_index) continue; in compute_re_rooted() [all …]
|
H A D | topoch.c | 55 flush (STATE_MACH_T *this, char* reason) /* 17.19.9 */ in flush() argument 57 register PORT_T* port = this->owner.port; in flush() 61 if (this->debug) { in flush() 74 setTcPropBridge (STATE_MACH_T* this, char* reason) /* 17.19.14 */ in setTcPropBridge() argument 76 register PORT_T* port = this->owner.port; in setTcPropBridge() 86 if (this->debug) { in setTcPropBridge() 99 newTcWhile (STATE_MACH_T* this) /* 17.19.7 */ in newTcWhile() argument 101 register PORT_T* port = this->owner.port; in newTcWhile() 110 STP_topoch_enter_state (STATE_MACH_T* this) in STP_topoch_enter_state() argument 112 register PORT_T* port = this->owner.port; in STP_topoch_enter_state() [all …]
|
H A D | stp_in.c | 37 register STPM_T* this; in stp_in_stpm_create() local 40 this = stpapi_stpm_find (vlan_id); in stp_in_stpm_create() 41 if (this) { /* it had just been created :( */ in stp_in_stpm_create() 43 return this; in stp_in_stpm_create() 46 this = STP_stpm_create (vlan_id, name); in stp_in_stpm_create() 47 if (! this) { /* can't create stpm :( */ in stp_in_stpm_create() 53 return this; in stp_in_stpm_create() 60 register STPM_T* this; in _stp_in_stpm_enable() local 65 this = stpapi_stpm_find (vlan_id); in _stp_in_stpm_enable() 80 if (! this) { /* it had not yet been created */ in _stp_in_stpm_enable() [all …]
|
H A D | transmit.c | 118 txTcn (STATE_MACH_T* this) in txTcn() argument 124 if (this->owner.port->skip_tx > 0) { in txTcn() 125 if (1 == this->owner.port->skip_tx) in txTcn() 127 this->owner.port->port_name); in txTcn() 128 this->owner.port->skip_tx--; in txTcn() 133 if (this->owner.port->admin_non_stp) return 1; in txTcn() 134 port_index = this->owner.port->port_index; in txTcn() 135 vlan_id = this->owner.port->owner->vlan_id; in txTcn() 142 if (this->debug) in txTcn() 143 stp_trace ("port %s txTcn", this->owner.port->port_name); in txTcn() [all …]
|
H A D | sttrans.c | 41 disableLearning (STATE_MACH_T *this) in disableLearning() argument 43 register PORT_T *port = this->owner.port; in disableLearning() 49 enableLearning (STATE_MACH_T *this) in enableLearning() argument 51 register PORT_T *port = this->owner.port; in enableLearning() 57 disableForwarding (STATE_MACH_T *this) in disableForwarding() argument 59 register PORT_T *port = this->owner.port; in disableForwarding() 65 enableForwarding (STATE_MACH_T *this) in enableForwarding() argument 67 register PORT_T *port = this->owner.port; in enableForwarding() 74 STP_sttrans_enter_state (STATE_MACH_T *this) in STP_sttrans_enter_state() argument 76 register PORT_T *port = this->owner.port; in STP_sttrans_enter_state() [all …]
|
H A D | portinfo.c | 61 rcvBpdu (STATE_MACH_T* this) in rcvBpdu() argument 64 register PORT_T* port = this->owner.port; in rcvBpdu() 68 if (this->debug) { in rcvBpdu() 91 if (this->debug) { in rcvBpdu() 105 if (this->debug) { in rcvBpdu() 119 if (this->debug) { in rcvBpdu() 127 if (this->debug) { in rcvBpdu() 148 recordProposed (STATE_MACH_T* this, char* reason) in recordProposed() argument 150 register PORT_T* port = this->owner.port; in recordProposed() 161 setTcFlags (STATE_MACH_T* this) in setTcFlags() argument [all …]
|
H A D | migrate.c | 42 STP_migrate_enter_state (STATE_MACH_T* this) in STP_migrate_enter_state() argument 44 register PORT_T* port = this->owner.port; in STP_migrate_enter_state() 46 switch (this->State) { in STP_migrate_enter_state() 72 STP_migrate_check_conditions (STATE_MACH_T* this) in STP_migrate_check_conditions() argument 74 register PORT_T* port = this->owner.port; in STP_migrate_check_conditions() 76 if ((!port->portEnabled && !port->initPm) || BEGIN == this->State) in STP_migrate_check_conditions() 77 return STP_hop_2_state (this, INIT); in STP_migrate_check_conditions() 79 switch (this->State) { in STP_migrate_check_conditions() 82 return STP_hop_2_state (this, (port->owner->ForceVersion >= 2) ? in STP_migrate_check_conditions() 87 return STP_hop_2_state (this, SENDING_RSTP); in STP_migrate_check_conditions() [all …]
|
H A D | stpmgmt.c | 34 register STPM_T* this; in STP_IN_stpm_create() local 45 this = stp_in_stpm_create (vlan_id, name, &err_code); in STP_IN_stpm_create() 46 if (this) { in STP_IN_stpm_create() 47 this->BrId.prio = init_cfg.bridge_priority; in STP_IN_stpm_create() 48 this->BrTimes.MaxAge = init_cfg.max_age; in STP_IN_stpm_create() 49 this->BrTimes.HelloTime = init_cfg.hello_time; in STP_IN_stpm_create() 50 this->BrTimes.ForwardDelay = init_cfg.forward_delay; in STP_IN_stpm_create() 51 this->ForceVersion = (PROTOCOL_VERSION_T) init_cfg.force_version; in STP_IN_stpm_create() 61 register STPM_T* this; in STP_IN_stpm_delete() local 65 this = stpapi_stpm_find (vlan_id); in STP_IN_stpm_delete() [all …]
|
/titanic_44/usr/src/lib/libresolv2/common/isc/ |
H A D | ev_waits.c | 108 evWait *this, *prev; in evUnwait() local 112 this = id.opaque; in evUnwait() 113 INSIST(this != NULL); in evUnwait() 114 wl = evGetWaitList(ctx, this->tag, 0); in evUnwait() 116 for (prev = NULL, this = wl->first; in evUnwait() 117 this != NULL; in evUnwait() 118 prev = this, this = this->next) in evUnwait() 119 if (this == (evWait *)id.opaque) { in evUnwait() 122 prev->next = this->next; in evUnwait() 124 wl->first = this->next; in evUnwait() [all …]
|
/titanic_44/usr/src/lib/libnisdb/ |
H A D | db_headers.h | 100 #define READLOCK(this, retval, msg) \ argument 101 LOCK(this->acqnonexcl, retval, msg) 102 #define READUNLOCK(this, retval, msg) \ argument 103 LOCK(this->relnonexcl, retval, msg) 106 #define READLOCKV(this, msg) \ argument 107 LOCKV(this->acqnonexcl, msg) 108 #define READUNLOCKV(this, msg) \ argument 109 LOCKV(this->relnonexcl, msg) 112 #define READLOCKNR(this, rescode, msg) \ argument 113 LOCKVAL(this->acqnonexcl, msg, rescode) [all …]
|
/titanic_44/usr/src/cmd/dtrace/test/tst/common/json/ |
H A D | tst.usdt.d | 28 this->value = (int *)alloca(sizeof (int)); 29 *this->value = 1; 30 copyout(this->value, arg0, sizeof (int)); 35 this->j = copyinstr(arg0); 39 /json(this->j, "finished") == NULL && json(this->j, "action") != "ignore"/ 41 this->index = strtoll(json(this->j, "index")); 42 this->size = json(this->j, "sizes[2]"); 43 this->odd = json(this->j, "facts.odd"); 44 this->even = json(this->j, "facts.even"); 45 printf("[%d] sz %s odd %s even %s\n", this->index, this->size, [all …]
|
/titanic_44/usr/src/cmd/dtrace/demo/sched/ |
H A D | whoqueue.d | 36 this->len = ++qlen[this->cpu = args[2]->cpu_id]; 41 /this->len > maxlen && spec[this->cpu]/ 47 discard(spec[this->cpu]); 51 /this->len > maxlen/ 57 maxlen = this->len; 58 longtime[this->cpu] = timestamp; 63 this->spec = spec[this->cpu] = speculation(); 64 speculate(this->spec); 65 printf("Run queue of length %d:\n", this->len); 69 /(this->in = in[args[0]->pr_addr]) && [all …]
|
/titanic_44/usr/src/cmd/latencytop/common/ |
H A D | latencytop.d | 88 this unsigned int priority; 89 this string cause; 154 this unsigned long long end; 155 this unsigned long long now; 159 this->end = lt_timestamps[curpsinfo->pr_pid, curlwpsinfo->pr_lwpid]; 160 this->now = timestamp; 162 this->end = (this->end != 0 && this->end != self->lt_sleep_start) 163 ? this->end : this->now; 165 self->lt_sch_delay = this->now - this->end; 166 self->lt_sleep_duration = this->end - self->lt_sleep_start; [all …]
|
/titanic_44/usr/src/cmd/dtrace/test/tst/common/print/ |
H A D | tst.array.d | 41 this->f = (foo_t *)alloca(sizeof (foo_t)); 43 this->f->a[0] = 1; 44 this->f->a[1] = 2; 45 this->f->a[2] = 3; 46 this->f->b[0] = 'a'; 47 this->f->b[1] = 'b'; 48 this->f->b[2] = 0; 49 this->f->c[0].alpha = 5; 50 this->f->c[1].alpha = 6; 51 this->f->c[2].alpha = 7; [all …]
|
/titanic_44/usr/src/cmd/dtrace/test/tst/common/funcs/ |
H A D | tst.ddi_pathname.d | 33 this->dev = (struct dev_info *)alloca(sizeof (struct dev_info)); 34 this->minor1 = 36 this->minor2 = 38 this->minor3 = 41 this->minor1->d_minor.dev = 0; 42 this->minor1->next = this->minor2; 44 this->minor2->d_minor.dev = 0; 45 this->minor2->next = this->minor3; 47 this->minor3->d_minor.dev = 0; 48 this->minor3->next = this->minor1; [all …]
|
H A D | tst.inet_ntop.d | 46 this->buf4a = alloca(sizeof (ipaddr_t)); 47 this->buf4b = alloca(sizeof (ipaddr_t)); 48 this->buf4c = alloca(sizeof (ipaddr_t)); 49 this->buf4d = alloca(sizeof (ipaddr_t)); 50 this->buf6a = alloca(sizeof (struct in6_addr)); 51 this->buf6b = alloca(sizeof (struct in6_addr)); 52 this->buf6c = alloca(sizeof (struct in6_addr)); 53 this->buf6d = alloca(sizeof (struct in6_addr)); 54 this->buf6e = alloca(sizeof (struct in6_addr)); 55 this->buf6f = alloca(sizeof (struct in6_addr)); [all …]
|
/titanic_44/usr/src/lib/libresolv2/common/irs/ |
H A D | gen_ho.c | 58 static void ho_close(struct irs_ho *this); 59 static struct hostent * ho_byname(struct irs_ho *this, const char *name); 60 static struct hostent * ho_byname2(struct irs_ho *this, const char *name, 62 static struct hostent * ho_byaddr(struct irs_ho *this, const void *addr, 64 static struct hostent * ho_next(struct irs_ho *this); 65 static void ho_rewind(struct irs_ho *this); 66 static void ho_minimize(struct irs_ho *this); 67 static struct __res_state * ho_res_get(struct irs_ho *this); 68 static void ho_res_set(struct irs_ho *this, 71 static struct addrinfo * ho_addrinfo(struct irs_ho *this, const char *name, [all …]
|
H A D | lcl_ho.c | 127 static void ho_close(struct irs_ho *this); 128 static struct hostent * ho_byname(struct irs_ho *this, const char *name); 129 static struct hostent * ho_byname2(struct irs_ho *this, const char *name, 131 static struct hostent * ho_byaddr(struct irs_ho *this, const void *addr, 133 static struct hostent * ho_next(struct irs_ho *this); 134 static void ho_rewind(struct irs_ho *this); 135 static void ho_minimize(struct irs_ho *this); 136 static struct __res_state * ho_res_get(struct irs_ho *this); 137 static void ho_res_set(struct irs_ho *this, 140 static struct addrinfo * ho_addrinfo(struct irs_ho *this, const char *name, [all …]
|
/titanic_44/usr/src/cmd/dtrace/test/tst/common/safety/ |
H A D | tst.shortstr.d | 34 this->str = ",,,Carrots,,Barley,Oatmeal,,,,,,,,,,,,,,,,,,Beans,"; 39 strtok(this->str, ","); 44 this->str = ",,,,,,,,,,,,,,,,,,,,,,Carrots,"; 45 strtok(this->str, ","); 50 strtok(this->str, "a"); 55 printf("%s\n", substr(this->str, 1, 40)); 60 printf("%s\n", strjoin(this->str, this->str)); 65 this->str1 = "........................................."; 66 printf("%d\n", index(this->str, this->str1)); 71 printf("%d\n", rindex(this->str, this->str1));
|
/titanic_44/usr/src/cmd/dtrace/test/tst/common/uctf/ |
H A D | tst.userlandkey.ksh | 52 this->t = (userland info_t *)arg0; 54 stringof(this->t->zi_gamename), this->t->zi_ndungeons, 55 stringof(this->t->zi_villain), this->t->zi_haszelda); 62 this->t = (userland info_t *)arg0; 64 stringof(this->t->zi_gamename), this->t->zi_ndungeons, 65 stringof(this->t->zi_villain), this->t->zi_haszelda); 72 this->t = (userland info_t *)arg0; 74 stringof(this->t->zi_gamename), this->t->zi_ndungeons, 75 stringof(this->t->zi_villain), this->t->zi_haszelda);
|